We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
code
depends on
list collect
If I have a table displaying a DAList of Things (with properties a and b), I can automatically update b if a changes:
DAList
Thing
a
b
variable name: "test" data: object: Thing module: docassemble.base.util items: - name: object: Name module: docassemble.base.util item: text: "First" a: 2 b: 4 c: 6 - name: object: Name module: docassemble.base.util item: text: "Second" a: 2 b: 4 c: 6 use objects: objects --- mandatory: True code: | test.set_object_type(Thing) test.there_is_another = False --- table: test.table rows: test columns: - A: row_item.a - B: row_item.b edit: - a - b --- question: | What is A? fields: - A: test[i].a datatype: number --- code: | test[i].b = test[i].a depends on: - test[i].a --- mandatory: True question: Table subquestion: | ${ test.table }
However, if I use list collect: True to update the property a of multiple objects at the same time, only one b is updated:
list collect: True
variable name: "test" data: object: Thing module: docassemble.base.util items: - name: object: Name module: docassemble.base.util item: text: "First" a: 2 b: 4 c: 6 - name: object: Name module: docassemble.base.util item: text: "Second" a: 2 b: 4 c: 6 use objects: objects --- mandatory: True code: | test.set_object_type(Thing) test.there_is_another = False --- table: test.table rows: test columns: - A: row_item.a - B: row_item.b edit: - a - b --- question: | What is A? fields: - A: test[i].a datatype: number list collect: True --- code: | test[i].b = test[i].a depends on: - test[i].a --- mandatory: True question: Table subquestion: | ${ test.table }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If I have a table displaying a
DAList
ofThing
s (with propertiesa
andb
), I can automatically updateb
ifa
changes:However, if I use
list collect: True
to update the propertya
of multiple objects at the same time, only oneb
is updated:The text was updated successfully, but these errors were encountered: