JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Gallery
AddRow to B and Reference in A
Share
Explore
Gallery
AddRow to B and Reference in A
AddRow to B and Reference in A
Test Race Conditions
AddRow to B and Reference in A
Connor McCormick
You can see that the nested approach results in
Reference B
containing an Action:
But the
Last()
approach works:
Nested Approach
TargetRowNested.ModifyRows(
[Table A].[Reference B],
TargetRowNested.[Reference B].Splice(0, 0, [Table B].AddRow())
)
Last() Approach
RunActions(
[Table B].AddRow(),
[TargetRowLast()].ModifyRows([Table A].[Reference B],
[TargetRowLast()].[Reference B].Splice(0, 0, [Table B].Last())
)
)
Table A
Table A
1
2
Name
Reference B
Name
Reference B
TargetRowNested
TargetRowLast()
There are no rows in this table
Table B
Table B
Name
Name
There are no rows in this table
Gallery
Share
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
Ctrl
P
) instead.