I Am trying to filter within a lookup for purchase lines. I want to say if there is only 1 record after the filter, open up the card page, if there are multiple, open up a listpage with the results.
How can i count the records after the filter. I thought this would work
IF recPurchLine.COUNT = 1 THEN BEGIN;
PAGE.RUN(PAGE::"G/L Receipt Line Receipt Card", recPurchLine);
END ELSE BEGIN
GLLinesFilter(recPurchLine);
PAGE.RUN(PAGE::"G/L Receipt Lines List", recPurchLine);
END;
*This post is locked for comments