Hi everyone,
I have a page that should show only the latest currency rates of each currency.
However the page shows all currecy exchange rate records, not the ones that i have marked.
My code is on the OnOpenPage trigger:
CLEAR(Currency);
CLEAR(CurrExcRate);
IF Currency.FIND('-') THEN
REPEAT
CurrExcRate.SETRANGE("Currency Code",Currency.Code);
CurrExcRate.SETFILTER("Starting Date",'..%1',TODAY);
IF CurrExcRate.FINDLAST THEN
CurrExcRate.MARK(TRUE);
UNTIL Currency.NEXT = 0;
CurrExcRate.SETRANGE("Currency Code");
CurrExcRate.SETRANGE("Starting Date");
CurrExcRate.MARKEDONLY(TRUE);
SETVIEW(CurrExcRate.GETVIEW);
CurrExcRate.CLEARMARKS;
Am I missing something?
Thanks in advance!
0
Comments