Updated: 2025-03-18
Throughout TaxCycle, you will find expanding tables for data entry and review. They start out as a single row and expand to add new rows at you enter data. You can use the field codes from cells in these tables to display data in templates.
In the example, [0], [1] and [2] correspond to the rows of the medical expenses table. Counting starts at zero.
The empty row at the bottom of the table, indicated by a [-1], will change when you start typing in a field. Avoid using codes containing [-1] in templates or conditions.
{{CurrentClient.MedicalExpenses.ExpensesDetails[0].Amount}}
{{CurrentClient.MedicalExpenses.ExpensesDetails[1].Amount}}
{{CurrentClient.MedicalExpenses.ExpensesDetails[2].Amount}}
{{CurrentClient.MedicalExpenses.ExpensesDetails[-1].Amount}}
It’s crucial to understand that the sequential numbering corresponds to the presentation order of the table’s rows. If you rearrange the rows, the field code will change.
When accessing tabular data, it is wise to avoid referencing a specific row by its number. Instead, break down the field code and use functions to filter and display the results.
To list all the medical expense amounts entered in a template:
CurrentClient
context.MedicalExpenses.ExpensesDetails
portion of the field code, removing the row number.Amount
on its own to pull the data.