02.02.2023, 12:41 | #1 |
Участник
|
ChatGPT
Ну что
Код не работает, скоолько у нас еще время? " Sure, here's an example of X++ code to select records from the InventTable in Microsoft Dynamics AX: static void selectInventTableRecords(Args _args) { InventTable inventTable; Select inventTableSelect = new Select(); inventTableSelect.addDataSource(inventTable); while (inventTableSelect.next()) { info(strFmt("Item Id: %1, Item Name: %2", inventTable.ItemId, inventTable.ItemName)); } } This code uses a Select statement to retrieve all records from the InventTable and loop through each record using the next method. For each record, it outputs the ItemId and ItemName to the infolog using the info method. Note that this code is just a simple example and may need to be modified or expanded depending on the specific requirements of your project. " |
|