Hi BC community,
Looking for some advice on how to filter a List page based on a procedure calculation. (main goal is to filter a list for everything that will = 0 for the field i am showing on the page /rdy to ship qty/)
field(/rdy to Ship qty/; Rec.CalcOutstandingQty())
{
ApplicationArea = all;
Caption = 'rdy to Ship';
ToolTip = 'rdy to Ship.';
}
I have a boolean on the page
ShowReadytoShip = true then
this doesnt work
rec.SetRange(CalcOutstandingQty(), 0)
this also doesnt work
rec.SetRange(/rdy to Ship qty/,0)
Table extension for the procedure
procedure CalcOutstandingQty(): Decimal;
var
ReservedQty: Decimal;
begin
ReservedQty := CalcReservedInvQuantity();
exit(Rec./Outstanding Quantity/ - ReservedQty);
end;