Hi,
I have a list with two orders
order 1 - item 1,item2,item 3
order 2 - item 2,item 3, item 4
how to remove only item 3 from order 2 of list
Thanks
Hi,
I have a list with two orders
order 1 - item 1,item2,item 3
order 2 - item 2,item 3, item 4
how to remove only item 3 from order 2 of list
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Aravind GovindarajPosted Nov 27, 2022, 10:22 AM
please follow steps to do generic soln.
var removalItem(s);
For loop Order
{
Mention the removal item in removalItem collection;
if removalItem is null or empty {
return order;
else
return order.item.except(removalItem);
}
Sachin SinghPosted Nov 27, 2022, 8:00 AM
If you are compaing List then use below
If you are comparing two Complex type then use below