AL icon indicating copy to clipboard operation
AL copied to clipboard

How to trigger different action after click "OK" or "Cancel" for page type StandardDialog

Open RuiningFan opened this issue 8 years ago • 0 comments

  • AL Extension Version: 0.16.19969

Hi All,

I have create a StandardDialog type page and I want to trigger different functions after click OK and Cancel. I did not find suitable trigger or it should be other way to do that. Below is the code and screen shut.

page 50133 TRCShipmentAutomation
{
    PageType = StandardDialog;
   
    Editable = true;
    layout
    {
        area(content)
        {
            group(Detail)
            {
                field(OderNoStart; OderNoStart)
                {
                    ApplicationArea = All;
                    Lookup = true;
                    TableRelation = "Sales Header"."No." where ("Document Type" = filter ('Order'));
                    Editable = true;
                }
                field(OrderNoEnd; OrderNoEnd)
                {
                    ApplicationArea = All;
                    Lookup = true;
                    Editable = true;
                    TableRelation = "Sales Header"."No." where ("Document Type" = filter ('Order'));
                }
                field(AutoPack; AutoPack)
                {
                    DrillDown = true;
                    ApplicationArea = All;
                    Editable = true;
                }


            }
        }
    }
    var
        OderNoStart: Code[30];
        OrderNoEnd: code[30];
        AutoPack: Option Yes,No;
}

wechat screenshot_20180820200135

RuiningFan avatar Aug 20 '18 12:08 RuiningFan