Hey Guys,
i'm working on my first report, to provide informations about salescredit-memos for our sales-representatives.
Now I'm trying to add a filter to the report.
Our NAV supplier added an custom option field named "Return Operation" to the table 115 (sc-credit memolines), which
shows if the return is accepted or refused.
So I've added a CAL Global (boolean) and also an option field to the request page. (show only accepted)
Now I have to write some CAL Code so that the report will only print / display all lines (accepted and refused) or just the accepted.
I'm pretty sure that I've have to put it in the OnAfterGetRecord-Trigger, but I have no idea about the syntax.
pls help
Answers
IF showAccept THEN BEGIN
IF NOT "Sales Cr.Memo Line"."Return Operation"::Approved
CurrReport.SKIP;
END;
END ELSE
CurrReport.SKIP;
i think you get the error, because of the second line:
Try that:
IF NOT ("Sales Cr.Memo Line"."Return Operation" = "Sales Cr.Memo Line"."Return Operation"::Approved)
Question:
Do you just need to filter for the Return Operation Field?
thanks that worked fine.
I have some more "hard" filters like (Type = Item) etc, but Return Operation is the only boolean filter on the request page