How to import free text invoice in ax 2012 static void importFreeTextInvoice(Args _args) { SysExcelApplication application; SysExcelWorkbooks workbooks; SysExcelWorkbook workbook; SysExcelWorksheets worksheets; SysExcelWorksheet worksheet; SysExcelCells cells; COMVariantType type; Dialog dialog; Filename filename; DialogField dialogFilename; container conFilter = ["Microsoft Excel Worksheets (.xlsx)" ,"*.xlsx"]; int row = 1; LineNum lineNum; CustTable custTable; CustInvoiceTable custInvoiceTable; CustInvoiceLine custInvoiceLine; str description = ""; //int i; CustPostInvoice custPostInvoice; int iPos; int
Posts
Showing posts from March, 2020
How to add financial dimensions on form in ax 2012
- Get link
- Other Apps
How to add financial dimensions on form in ax 2012 · Add TabPage called FinancialDimensionsTabPage which should have the property AutoDeclaration set to Yes · In classdeclaration declared the DimensionDefaultingController : class FormRun extends ObjectRun { DimensionDefaultingController dimensionDefaultingController; } · In the form’s override Init method: public void init() { super(); dimensionDefaultingController = DimensionDefaultingController::constructInTabWithValues(true, true, true, 0, this, FinancialDimensionsTabPage, "@SYS138487"); dimensionDefaultingController.parmAttributeValueSetDataSource(TableName_ds, fieldStr(TableName, DefaultDimension)); dimensionDefaultingController.pageActivated(); } · In the datasource override active() method: public int active() { int ret; ret = super(); dimensionDefaultingC