There are times when I’d like to be able to create multiple rows all at once in a model. Further to this, I’d like the quantity to have the ability to take data from another model.
Is this not possible with the Action Framework using Multiple Actions and the prototype pattern? Take a look at the Action Framework Deep Dive video.
I know I can create multiple actions in the action framework, but I’d like the number of rows to be dynamic.
When you say dynamic, do you mean the user would specify that they want to N number rows created (and populated from another model)?
Yes. N number of rows based on a specified amount or an amount from another model. As for the default values, that would work the same as it does now.
Multiple actions can iterate over a set of source rows and create a new row in a model where the data is sourced from another model e.g. $Model.ProtoLineItem.data.0.UnitPrice. This does not completely satisfy your use case, however.
I am thinking that you may have to go “custom” with a snippet.
I haven’t had a big need for it yet so I won’t go through the trouble.
Thanks for the ideas guys. This idea is under consideration…