After Selection How to close Current page.

181deepak181deepak Member Posts: 95
edited 2014-07-21 in NAV Three Tier
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.??

Comments

  • lubostlubost Member Posts: 626
    Hi,

    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.
Sign In or Register to comment.