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

Mapping answer

Hello experts I have a requirement where my source and target fileds are almost same.

source:

<A>

<B>

<C>

<E>

<F> 0...unbounded

<G>

<H>

Target:

<I>

<J>

<K>

<M>

<N> 0...unbounded

<O>

<P>

My requirement is if B = X then O = first occurance of G. and its the same for all N unbounded occurances.

I tried using an if condition and copy of value(0) for my putput , but for exmaple say i have three occurences of N I see my desired output only in the first occurance , the other two occurances don't have the O filed.

Any Mapping tips

Thanks

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 16, 2008 at 05:07 PM

    Hi Sudheer,

    Your requirement is not clear. Can you try to explain it using some example ?

    Thanks,

    Pooja

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 16, 2008 at 04:34 PM

    I don't get exactly what you're trying to do, but I guess you should work with different contexts there. Right-click the attribute in your graphical mapping and follow the contexts option. Try a little bit, maybe you'll get the solution quickly.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 16, 2008 at 04:41 PM

    Hi,

    you can try with node functions like removeContext or spitByValue. or provide more detail on requirement.

    thanks.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 18, 2008 at 02:40 PM

    I just need a little tweak for my requirement .

    What rohit suggested with UDF works fine with the IF condition , I need to make an else as well , i want to assign REASON_REJ as it is if the condition is not met.

    Any ideas

    Thank you .

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 18, 2008 at 04:40 PM

    Thank you

    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.