JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Skip to content
AddRow to B and Reference in A
Pages
AddRow to B and Reference in A
Test Race Conditions
AddRow to B and Reference in A
/
AddRow to B and Reference in A
Share
Explore
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
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 ··· in the right corner or using a keyboard shortcut (
Ctrl
P
) instead.