โ06-10-2020 08:13 AM
Hi, often I have a need to calculate a value and then use it several places throughout the pipeline. It gets a little ugly, because using pass-through, I often end up with something like $original.original.original.original.THISTERM. Is there any better way to do that?..some syntax to reference THISTERM wherever it is in the hierarchy? Like with XML, I can use โ//THISTERMโ
โ06-10-2020 09:20 AM
Well, if I have this in one Mapper Snap:
, and then I have that Mapper Snap followed by a second Mapper Snap, in which I have this:
,then in the output view of the second Mapper Snap I get this:
Iโm not sure thatโs what you needed, but I guess, FWIW ๐
BR,
Dimitri
โ06-10-2020 12:05 PM
Thatโs helpful. Thanks!
โ06-10-2020 10:55 AM
Sometimes itโs useful to have a parent pipeline that executes a child pipeline and passes some values like these as parameters to the child. Then the child can reference them anytime (_parm) without having to keep passing the value along from one snap to the next. Especially useful when pipeline is doing things like document-to-binary where you canโt easily pass the values along.
โ06-10-2020 12:04 PM
Yes, I do that when I can.