hi
I want update few selected lines in sub page from Header (main page) from action area.
as per the forum suggestion I have created function as global with paremeter as shown below
[External] CallLinesfromCard(krishna : Record "Sales Line")
CurrPage.SETSELECTIONFILTER(krishna);
PSaleslines:=krishna;
MESSAGE('Psaleslines '+FORMAT(krishna.COUNT));
On main page in Action button 'Start' have created code as hwon below
Start - OnAction()
CurrPage.SalesLines.PAGE.CallLinesfromCard(lSalesLine);
//MESSAGE(FORMAT(lSalesLine.COUNT));
IF lSalesLine.FINDSET THEN
BEGIN
REPEAT
lSalesLine."Starting Time":=TIME;
lSalesLine."Salon action":=lSalesLine."Salon action"::Start;
lSalesLine.MODIFY;
UNTIL lSalesLine.NEXT = 0;
END;
CurrPage.UPDATE;
when I see the result at sub page , i can see selected records but in action page I am not getting same records. Instead whole table records are getting update.
Can help me please
Kris