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

Help on Mapping Requirement

Hi All,

We have a requirement where say we have 3 contexts.. each context has 4 values 2 blank and 2 non-blank fields having values.. i need only 2 non-blank values in each context.

Can you please help on this.

Issue.jpg (79.1 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Dec 31, 2013 at 07:48 AM

    Hello,

    I am not sure how u are creating your target structure but u can use If WithoutElse instead of If Then Else function. So in case of of false boolean value the output of IfWithoutElse will be SUPPRESS (instead of blank).

    Anyway, in case u want the output queue only needs to have non blank values then u can use a simple UDF.

    Use it just after IfThenElse function:

    Execution type: All values of a context

    Input: var1

    for(int i=0;i<var1.length;i++)

    {

    if(!var1[i].equals(""))

    {

    result.addValue(var1[i]);

    }

    }

    Thanks

    Amit Srivastava

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 31, 2013 at 08:11 AM

    Hi Prasad,

    Implement the below logic .It will suffice your requirement aptly.

    Pass the o/p of the above to the below logic.

    Regards

    Venkat


    Logic.JPG (65.2 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 01, 2014 at 02:02 AM

    Prasad,

    I suggest you share the root node mapping requirement also along with field level mapping. It will help forum members give you the right solution.

    Ambrish

    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.