Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (35 sloc) 841 Bytes
metadata:
title: Table for dictionary
short title: Table
documentation: "https://docassemble.org/docs/template.html#table"
example start: 2
example end: 4
---
objects:
- income: DADict.using(object_type=DAObject,
keys=['employment', 'benefits', 'interest'],
gathered=True)
---
mandatory: True
code: |
income['employment'].receives = True
income['employment'].amount = 237
income['benefits'].receives = False
income['interest'].receives = True
income['interest'].amount = 23
---
table: income.table
rows: income
columns:
- Type: |
row_index
- Receives: |
'Yes' if row_item.receives else 'No'
- Amount: |
currency(row_item.amount) if row_item.receives else ''
---
mandatory: True
question: |
Summary of income
subquestion: |
${ income.table }
You can’t perform that action at this time.