Hi to all,
I have add a new page Action in P 31: Item List (picture 1).
When I call Action it is open a new page like picture 2.
I want when I select Item No from picture 2, to be selected in P: Item List.
Here is code that I have in Action in P 31:"Item List"
IF PAGE.RUNMODAL(50005,ItemAttributesFilters)=ACTION::LookupOK THEN
BEGIN
Item.GET(ItemAttributesFilters."Item No.");
// CurrPage.GETRECORD(Item);
// CurrPage.SETRECORD(Item);
CurrPage.SETSELECTIONFILTER(Item);
CurrPage.UPDATE;
END;
I try with, GETRECORD,SETRECORD,SETSELECTIONFILTER but still it doesen't work
I use NAV 2016.
Any advice,
Thanks a lot,
I have add a new page Action in P 31: Item List (picture 1).
When I call Action it is open a new page like picture 2.
I want when I select Item No from picture 2, to be selected in P: Item List.
Here is code that I have in Action in P 31:"Item List"
IF PAGE.RUNMODAL(50005,ItemAttributesFilters)=ACTION::LookupOK THEN
BEGIN
Item.GET(ItemAttributesFilters."Item No.");
// CurrPage.GETRECORD(Item);
// CurrPage.SETRECORD(Item);
CurrPage.SETSELECTIONFILTER(Item);
CurrPage.UPDATE;
END;
I try with, GETRECORD,SETRECORD,SETSELECTIONFILTER but still it doesen't work
I use NAV 2016.
Any advice,
Thanks a lot,