Hello,
I have a reactive app where i add information to a temporary list. I would like to be able to remove information on this temporary list based on a condition (example seqno = 50). I have explored with listfilter client action and listclear but it doesnt work as its clearing the newly generated list from listfilter. Any suggestions on this? Thank you!
Hi @Low Nico
You can use ListIndex and ListRemove client action to remove a specific element from a list based on list position.
Use ur condition (example seqno = 50) in ListIndex action it'll return position of that element in list then pass the output position in ListRemove action.
Thank you Deepsagar! This was very helpful!
After your ListFilter, you need to have a foreach and loop through your ListFilter List.
Then inside the loop, drag a ListindexOf to get the position of the current item in the temporary list. Then drag a ListRemove after that to remove the item in the ListIndexOf output from the temporary list. Would be something like this:
Regards,Bryan
Thanks Bryan, this method worked well as I needed to remove multiple from the list!
Hi Low,
You can use foreach loop also and in that you can check with if condition you can match if it satisfy your condition than put in that local list if not than continue your loop without adding that record inside that list.
As per Deepsagar reply you can use list index and list remove also.
There is many ways to do the changes.
Regards,
Rajat
Thank you again Rajat, the foreach loop method worked well!