Enable debugger for AX 2012


1. Log in to Administrator user in local(client) computer 




2. Type  lusrmgr.msc in Run  or search:  user and choose edit local user and groups.

  or 




Find the user name to add here.


















Go to your own user and test.




Dialogue box for Yes or No prompt in AX 2012 R3 D365fo

 

 
    Class           classBuffer;
    Table           table;
    boolean         canImport = true;
   
    if(table.ExcelImported)     //ExcelImported is the Table field(Enum NoYes)
    {
        if(Box::yesNo('Do you want to import.', DialogButton::Yes,'Import Record') == DialogButton::Yes)
        {
            canImport = true;
        }
        else
        {
            canImport = false;
        }
    }
 
    //if(canImport)
    //{
        //if(classBuffer.prompt())
        //{
            //try
            //{
                //classBuffer.run(); //is the method
            //}
            //catch(Exception::Error)
            //{
                //classBuffer.closeExcelAppl(); //is the method
            //}
        //}
    //}
    //else
    //{
        //warning('Operation cancelled.');
    //}


Get Current Record or Active line in AX 2012 R3 D365fo

public static void main(Args args)
{
    SalesTable                         salesTable;
    ;
 
    if(args.record().TableId == tableNum(SalesTable))
    {
        salesTable = args.record();
    }
    else
    {
        throw error('Class is called with incorrect parameters.');
    }

Table Browser in Dynamics 365FO

Copy D365FO Table Browser URL /?cmp=usmf&mi=SysTableBrowser&tablename= URL :  https://usnconeboxax1aos.cloud.onebox.dynamics.com...