If I have two “Create new row” actions in sequence, will the context for the second action be the row that I created with the first?
Yes, it will. The “Context” for actions is almost always the “parent”, e.g. if you have a Row Action on a Table, then the context is the Table Row, or if you have a Table within a Drawer, the Drawer’s context is the row in the Table that’s opened — but there’s one Action type that “changes context”: Create new row. When a “Create new row” action is run, the new row created becomes the new context row for any subsequent actions in that action sequence.
We are looking in to ways in the future to allow the “original” context to be maintained and accessed via merge syntax while still allowing “new” context to be added in and accessed via merge syntax. At present, though, think of it as “there can only be one”. There’s only one immediate context row and model — any other Models / Rows must be accessed via Global merge syntax, e.g. {{$Model.OtherModelName.data.0.Name}}
Perfect. That was the answer I was hoping to hear. Thanks!
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.