AL
AL copied to clipboard
How to trigger different action after click "OK" or "Cancel" for page type StandardDialog
- 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;
}
