One simple approach commonly used is to set the Tag property of an action. Obviously, for each action this should be different. Then you change the execution handler as follows:
procedure TMISMainFrm.ActiSalesInvoiceExecute(Sender: TObject); begin if CheckMdiList('Sales Invoice') then BEGIN SalesInvFrm := tSalesInvFrm.Create(Self,(Sender as TAction).Tag,UserIdNo,1,1); SalesInvFrm.Show; END; end;
source share