Skip to Content
author's profile photo Former Member
Former Member

third value in the context

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...



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Aug 08, 2016 at 12:35 PM

    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


    countmap1.JPG (84.1 kB)
    countmap2.JPG (73.1 kB)
    countmap3.JPG (72.3 kB)
    countmap4.JPG (84.9 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 08, 2016 at 01:09 PM

    Hi Lalrem!

    You can do it using standard functions "Index" and "IfWithoutElse".

    Regards, Evgeniy.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 08, 2016 at 02:42 PM

    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


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 08, 2016 at 12:04 PM

    Hi Lalrem Singh,

    Based on city or code you can put the condition through Boolean functions.

    then you will get result .

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.