|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
// Create an Axapta record for the StateAddress table. axRecord = ax.CreateAxaptaRecord(tableName); // Execute a query to retrieve an editable record where the name is MyState. axRecord.ExecuteStmt(\"select forupdate * from %1 where %1.Name == \'MyState\'\"); // If the record is found then update the name. if (axRecord.Found) { // Start a transaction that can be committed. ax.TTSBegin(); axRecord.set_Field(\"Name\", \"MyStateUpdated\"); axRecord.Update(); // Commit the transaction. ax.TTSCommit(); } |
AX Update Example
This entry was posted in C# Development. Bookmark the permalink.