I've checked other solutions, but they all are missing some of the complexities of mine. I have a collection "Productlist" of items (Dropdown/Lookup) for an order based on 8 "rows" (Item, Qty, ItemPrice, ItemTotal). I need to filter the Collection to exclude quantities that are blank.
I tried adding the Filter option first, and then tried ForAll, but I can't get it right on either. I think my complication compared to the other solutions I've seen is that they are usually using a list, whereas I'm using multiple fields. So I need to evaluate the exclusion for each quantity field in the collection (Item1Qty, Item2Qty, Item3Qty, etc.)
My working collection script is below.
ClearCollect(
ProductList,
{ColItem: Item1Label.Selected.Title, ColQty: Item1Qty, ColItemPrice: Price1Label, ColItemTotal: Total1Label},
{ColItem: Item2Label.Selected.Title, ColQty: Item2Qty, ColItemPrice: Price2Label, ColItemTotal: Total2Label},,
{ColItem: Item3Label.Selected.Title, ColQty: Item3Qty, ColItemPrice: Price3Label, ColItemTotal: Total3Label},,
{ColItem: Item4Label.Selected.Title, ColQty: Item4Qty, ColItemPrice: Price4Label, ColItemTotal: Total4Label},},
{ColItem: Item5Label.Selected.Title, ColQty: Item5Qty, ColItemPrice: Price5Label, ColItemTotal: Total5Label},},
{ColItem: Item6Label.Selected.Title, ColQty: Item6Qty, ColItemPrice: Price6Label, ColItemTotal: Total6Label},},
{ColItem: Item7Label.Selected.Title, ColQty: Item7Qty, ColItemPrice: Price7Label, ColItemTotal: Total7Label},},
{{ColItem: Item8Label.Selected.Title, ColQty: Item8Qty, ColItemPrice: Price8Label, ColItemTotal: Total8Label},}
);
Any help is appreciated