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.