How to clear cache in Microsoft Dynamics 365 for Operation and finance Get link Facebook Twitter Pinterest Email Other Apps - January 11, 2023 Write the below URL:https://[D365fo url]/?mi=SysclassRunner&cls=SysFlushData Get link Facebook Twitter Pinterest Email Other Apps Comments
How to loop through enum in dynamics ax 2012 using x++ - November 12, 2020 Method 1: SysDictEnum sysDictEnum = new SysDictEnum(enumnum(InventTransType)); InventTransType currentElement; currentElement= sysDictEnum.firstValue(); do { info(strFmt("%1",currentElement)); currentElement= sysDictEnum.nextValue(currentElement); } while (currentElement != sysDictEnum.firstValue()); Method 2: SysDictEnum sysDictEnum = new SysDictEnum(enumnum(InventTransType)); InventTransType currentElement; int iLoop; for (iLoop=0 ; iLoop < SysDictEnum.values(); iLoop++) { info(SysDictEnum.index2Label(iLoop)); } Read more
How to read from csv file in Dynamics AX 2012 Through X++ - February 10, 2019 How to read from csv file in Dynamics AX 2012 Through X++ static void readFromCSV(Args _args) { #File CommaTextIO csvFile; container readCon; Dialog dialog; DialogField dfFileName; FileName fileName; int row; CustAccount custAccount; ItemId itemId; Qty qty; dialog = new Dialog("Read data from csv file"); dfFileName = dialog.addField(extendedTypeStr("FilenameOpen")); dialog.filenameLookupFilter(['csv','*.csv']); if (dialog.run()) { csvFile = new CommaTextIo(dfFileName.value(), 'r'); csvFile.inFieldDelimiter(','); readCon = csvFile.read(); ttsBegin; while(csvFile.status() == IO_Status::OK) { readCon = csvFile.read(); Read more
How to get field label in dynamics ax 2012 using x++ - December 16, 2020 display FieldLabel fieldLabel() { FieldLabel ret; DictField dictField; TableId tableId = tableNum(PurchLine); FieldId fieldId = fieldName2id(tableId,"Field Name"); if(tableId && fieldId) { dictField = new DictField(tableId,fieldId); ret = dictField.label(); } return ret; } Read more
Comments
Post a Comment