I am trying to find the right order here. I am using Rec.Setrange to exclude Blocked items, and also want to use item.setview to allow the user to use aditional filters.
it seems to me that setview is reversing prior setrange calls?
what is the right order here?
a)
Items.SetView(MyConfigTable.ItemView); // Set filter from Text input
Items.SetRange(Blocked, false); // always exclude blocked items
Items.SetRange("Purchasing Blocked", false); // always exclude blocked items
b)
Items.SetRange(Blocked, false); // always exclude blocked items
Items.SetRange("Purchasing Blocked", false); // always exclude blocked items
Items.SetView(MyConfigTable.ItemView); // Set filter from Text input
Bonus:
how, and should
Items.SetFilter(Blocked, '%1', false);
be used here?