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

How to remove "SUPPRESS" in graphical mapping

Hey,

I have a problem in a graphical mapping and need to remove a "SUPPRESS" entry in the queue. There are several entries in the queue and one of them is "SUPPRESS", and this entry causes a wrong result of the mapping. I have tried several possibilities, but I haven't found a fitting solution yet.

Does anyone know how to handle this issue?

Thanks a lot!!

Sebastian

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on May 31, 2013 at 02:02 PM

    Hi Sebastin,

    Try this UDF

    public void removeSUPPRESS(String []Input,ResultList result,Container container) throws StreamTransformationException

    {

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

    {

    if(!(Input<i>.equals(ResultList.SUPPRESS)))

    {

    result.addValue(Input<i>);

    }

    }

    }

    It simply removes all the SUPPRESS entries that you have in your display queue and will pass only the non SUPPRESS values to the output.

    modify the code according to your requirement.

    Or

    You can use remove context, followed by the Split by value.

    Hope it will helpful..😊

    Regards

    Bhargava krishna


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 01, 2013 at 02:46 AM

    Hi Sebastian,

    You can try removeContext/split by Value but if the source queue has variable values in the contexts, it won't work else try with the UDF suggested in other posts to check ResultList.SUPPRESS and that should work.

    Ambrish

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 31, 2013 at 02:23 PM

    Hi Sabastian,

    Using the following UDF should clear your issue...

    public void RemoveSuppress(String[] a,ResultList result,Container container){

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

    {

    if (!a<i>.equalsIgnoreCase(ResultList.SUPPRESS))

    {

    result.addValue(a<i>);

    }

    }

    Regards,

    DNK Siddhardha.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 31, 2013 at 03:21 PM

    Hi Sebastian,

    You can use below UDF to achieve your requirement:

    public void removeSuppress(String[] contextValues, ResultList result, Container container)

    {

    if (contextValues != null && contextValues.length > 0)

    {

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

    {

    if (contextValues[i] != null && !ResultList.SUPPRESS.equalsIgnoreCase(contextValues[i]))

    {

    result.addValue(contextValues[i]);

    }

    }

    }

    }

    Thanks

    Rakesh Sharma

    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.