Problem with Getview on a page

majormarcell1988majormarcell1988 Member Posts: 20
edited 2013-08-15 in NAV Three Tier
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!

Comments

  • KishormKishorm Member Posts: 921
    Try using COPYFILTERS instead - this should work with marked records.
Sign In or Register to comment.