Reopen Document After Adding

ally

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?


martinsalo

You could create a rule with this two line:



MenuItem.GetFromUID("1289").Activate(); // Return to the last data record set
return true;

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.


ally

I  tried this but it activates before the form fully adds: "Unsaved data will be lost. Do you want to continue without saving?"


ChristianB

Hi,


 


please try to choose the FormDataAdd Event without Item ID instead of the "ItemPressed" Event of Item 1


ally

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?


0

Comments

0 comments

Please sign in to leave a comment.

Didn't find what you were looking for?

New post