cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove a row from context list based on the constant value.

former_member213558
Active Participant
0 Kudos

Hi All.

I want to remove some queues which has a value of  “END” from the queue, can I have a UDF to achieve this,

Actual Queue list

Expected Queue list

Regards

Ramesh

Accepted Solutions (1)

Accepted Solutions (1)

former_member186851
Active Contributor
0 Kudos

Hello Ramesh,

No need of UDF,Try the below logic.

former_member213558
Active Participant
0 Kudos

Thank for your reply.

but here my value is quite strange, i want to remove "END" and i need to keep "Split By each value by value change"

i tired already but ...  i need to remove "END" and need to maintain queue also.

please suggest .

Regards

Ramesh

manoj_khavatkopp
Active Contributor
0 Kudos

Ramesh,

Try this:   

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

        {

            if(!(inp[i].equals("END")))

            result.addValue(inp[i]);

        }

take input as queue.

former_member186851
Active Contributor
0 Kudos

Hello Ramesh,

Then after Removecontexts  introduce a split By value at the end.

If its not working let us know.

former_member190293
Active Contributor
0 Kudos

Hi Ramesh!

Regards, Evgeniy.

former_member186851
Active Contributor
0 Kudos

Yes,Exactly the same.

The same I mentioned add Split by value at the end.

Thanks Eve for the screenshot.

former_member190293
Active Contributor
0 Kudos

Just to clarify your suggestion 🙂

Regards, Evgeniy.

Answers (0)