Skip to main content

Posts

Show All table types in Axapta

These are All table types in Axapta 2012. You can get all table type on import form. If you want to export data for only master tables then you need to create definition group of master table type then export data. 1. Framework Tables 2. Group Tables 3. Main 4. Miscellaneous 5. Parameter 6. Reference 7. Transaction 8. TransactionHeader 9. TransactionLine 10. Worksheet 11. WorksheetHeader 12. WorksheetLine Same way you can get transaction type data by creating definition group of transaction type tables.

Set Focus on Form control in Ax 2012

To Set Focus on Form control in Ax 2012 you can take help from below code. Args args; FormRun _formRun; FormControl _formControl; ; args = new Args(formStr(CustTable)); _formRun = classFactory.formRunClass(args); _formRun.run(); _formRun.detach(); _formControl = _formRun.design().controlName(identifierStr(Desc)); _formControl.setFocus();

Left Outer Join in Ax 2012

You can use Left Outer Join in Ax 2012 following way. There is no Right Outer join  in Ax 2012. Default outer joint is left outer join so there is not left keyword is used in query. while select AccountNum from LedgerTable order by AccountNum outer join * from LedgerTrans where LedgerTrans.AccountNum == LedgerTable.AccountNum { info(strfmt("%1-%2", LedgerTable.AccountNum, LedgerTrans.AmountMst)); }

Add dimension in Range in ax 2012

This is a code to add filter for dimension in axapta 2012.