Skip to Content
avatar image
Former Member

How to remove <null> from queue context !!

Hi Folks,

One small clarification please, Can we remove '<null> or [] or SUPPRESS' from queue contexts? is yes, can any one answer how to do that please?

from source side if the condition is not fulfill then the 'null'/Suppress' is passing to the target. I want to remove 'null/Suppress' any where in a queue context.

Your response will be much appreciates!!

Many Thanks in Advance

Regards

San

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 22, 2010 at 06:01 PM

    First use RemoveContext function and then use below UDF code.

    Use "Queue" radio button while creating the UDF..

    for(int i = 0; i < a.length; i++)
    {
    if(! a<i>.equals(u201Du201D))
    
    result.addValue( a<i> );
    }

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Good you were able to solve your problem.

      Now about quantity.. What exactly is the problem which you are facing here... can you show is via screen shot.

      I guess the sorting is not correct and because of that entries are not coming correctly? If this is the case then you have to use the SortByKey function..

  • Aug 23, 2010 at 07:11 AM

    > One small clarification please, Can we remove '<null> or [] or SUPPRESS' from queue contexts? is yes, can any one answer how to do that please?

    Everything in grey is a context change and the values displayed in grey are not really existing.

    So you need not replace <null>

    Edited by: Stefan Grube on Aug 23, 2010 9:13 AM

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Stefen,

      Thanks for clarification. Not in grey color values, I am talking the values in one Context, which are [],MS02030D_20100304,MS050455_20100505_20100904 etc., I need to remove the first blank value.

      Any idea pls.

      Regards

      San