docassemble icon indicating copy to clipboard operation
docassemble copied to clipboard

One cannot add DADict items to a table with `show incomplete`

Open fkohrt opened this issue 9 months ago • 1 comments

If I try to add items using an editable table to a DADict, this fails if show incomplete is enabled. It does work with a table populated by a DAList, so I'm suspecting this is a bug.

---
objects:
  - income: DADict.using(object_type = DAObject)
---
table: income.table
rows: income
show incomplete: true
columns:
  - Type: row_index
  - A: row_item.a
  - B: row_item.b
edit:
  - a
  - b
---
event: review_table
question: |
  Summary of income
review:
  - note: |
      ${ income.table }
    
      ${ income.add_action() }
continue button field: show_review_screen
skip undefined: False
---
question: |
  Add another income?
yesno: income.there_is_another
---
question: |
  Income name?
fields:
  - Income: income.new_item_name
---
question: |
  A?
yesno: income[i].a
---
question: |
  B?
fields:
  - B: income[i].b
    datatype: number
---
question: |
  Any?
yesno: income.there_are_any
---
mandatory: True
question: Test
subquestion: |
  [Review your answers](${ url_action('review_table')})

fkohrt avatar Feb 03 '25 21:02 fkohrt