|
12.12.2023, 15:11 | #1 |
Участник
|
a33ik: AX 2012 Number sequence DataTypeName
Источник: http://daxonline.org/1933-ax-2012-nu...atypename.html
============== Use the following code to add DataTypeName to a Number sequence references export from AX 2012: static void VKTest(Args _args){ #File IO iO; FilenameOpen filename = "c:\\_temp\\number seq references v2.csv"; FilenameOpen filenameWrite = "c:\\_temp\\number seq references v2 extended.csv"; Container record; Container recordWrite; int recordCounter = 0; int dataType; str dataTypeName = 'DATATYPENAME'; CommaTextIo fileWrite; FileIoPermission perm; ; iO = new CommaTextIo(filename,#IO_Read); if (!iO || iO.status() != IO_Status::Ok) { throw error("@SYS19358"); } perm = new FileIoPermission(filenameWrite, #io_write); perm.assert(); fileWrite = new CommaTextIo(filenameWrite, #io_write); if (!fileWrite || fileWrite.status() != IO_Status::Ok) { throw error("@SYS19358"); } while (iO.status() == IO_Status::Ok) { record = iO.read(); //To read file if (recordCounter) { dataType = conpeek(record, 9); dataTypeName = extendedTypeId2Name(dataType); } recordWrite = record + dataTypeName; fileWrite.writeExp(recordWrite); recordCounter++; } //info(strFmt("%1", extendedTypeId2Name(1295))); } AX 2012 Read / Write CSV file Источник: http://daxonline.org/1933-ax-2012-nu...atypename.html |
|
|
Опции темы | Поиск в этой теме |
Опции просмотра | |
|