Hi Experts
On card page action I am writing below code..
"R&DHdr".RESET;
"R&DHdr".SETRANGE("R&DHdr"."Document Type","Document Type");
"R&DHdr".SETRANGE("R&DHdr"."No.","No.");
IF "R&DHdr".FINDSET THEN
BEGIN
"R&DList".SETTABLEVIEW("R&DHdr");
"R&DList".RUNMODAL;
CurrPage.CLOSE;
END;
Here on action I am opening a list page that is "R&DList". and on list page when I double click any row I go to corresponding card page ,
but the list page is still remains open ... How I can close this list page after selection.??
0
Comments
try this:
"R&DHdr".RESET;
"R&DHdr".SETRANGE("R&DHdr"."Document Type","Document Type");
"R&DHdr".SETRANGE("R&DHdr"."No.","No.");
IF Page.RUNMODAL(0, "R&DHdr") = Action::LookupOK then BEGIN
<do needed code with selected record>
END;
this code need setting LookupPage in "R&DHdr" table.