put following code on class method     void initFromArgs(Args args)    {    ;    if (args && args.dataset() == tablenum(abcform))    {    abcForm = args.record();    salesOrder = abcForm.SalesId;    qty = abcForm.Qty;    }    }    then you can call this method to main method.   
Microsoft Dynamics Ax,AIF,Axapta, Enterprise portal,,Microsoft , United State,U.S., SharePoint , BI Tools, Performance Tuning, SSRS,Business Logic,Ax ERP Errors and solution,Dynamics 365 Errors Solution,Business software .