Small query in graphical mapping... value occurs in source four times... the sequence is dynamic.. but I need only one particular occurrence in output..
<Details>
<City>singapore</City>
<Code>1234<Code>
<City>malaysia</City>
<Code>1236<Code>
<City>bangkok</City>
<Code>1235<Code>
<City>jakarta</City>
<Code>1237<Code>
</Details>
Output only get value for
<City>bangkok</City>
<Code>1235<Code>
UDF is required? With remove context I am getting only first value...
Hi Lalrem,
Please try this mapping. I have used standard functions available in graphical mapping within esr.
output
with change in occurrence as per your post
-----------------------------------------------------------------
Regards
Anupam
Hi Lalrem!
You can do it using standard functions "Index" and "IfWithoutElse".
Regards, Evgeniy.
Hello Lalrem.
Yo need to right click on the element and then change the context une level up,
In the immage there is a sample, you neet to click the second row.
Then your UDF receive all the elements, not just the first
on the udf definition you need to use "All values of a context"
regards
Juan
Hi Lalrem Singh,
Based on city or code you can put the condition through Boolean functions.
then you will get result .
Add a comment