Ctrl-S with x++ syntax


How can i do the save functionality with the x++ syntax?

The problem i have is that when i create a release order the new purchase order record doesn’t get the Requisitioner update.

But when i press the Ctrl-S it somhow update the table with this value.

So i’m thinking of forcing the ctrl-s on the table.

Is there other solution that you can suggest ?



Hi Yaniv,

Good question - I have not come across save command in X++. It is either insert or update.


it is likely to be the .write() command on the datasource. You can also run the task() method to simulate the save command (I can’t remember the code of the save task but, if any, it will be some where in the #Task macro or something like that).

Hope this helps,