Reopen Document After Adding
How can I reopen a sales order form after adding it. Normally, B1 closes the form after adding. How can I have it reopen the data? Possibly with easyfunction?
You could create a rule with this two line:
MenuItem.GetFromUID("1289").Activate(); // Return to the last data record set
You have to place it behind the ItemPressed Event for Item "1" (aka the Add Button) and Form 149, Inner Event and Add Modus.
If you do that, the fresh added Data Set will be shown after Adding.
I tried this but it activates before the form fully adds: "Unsaved data will be lost. Do you want to continue without saving?"
please try to choose the FormDataAdd Event without Item ID instead of the "ItemPressed" Event of Item 1
I've tried that but it executes before the form is finished adding. How can I wait to make sure the form is fully added before running that code?