Command: PopFormStack

Previous  Next |  Direct link to this topic

Go to list of all Commands

Syntax: PopFormStack();

 

This command is quite complex but can be used if you open multiple windows in a macro but need to shift the parent/child relationship one back.

Sample: In a macro you are on a Sales order and open a Purchase order. From the purchase order you also open a new window and do some macro logic. Now after this logic you wish the sales order as parent and purchase order as child (at the moment the 3rd window is child and purchase order is parent). If you at this point in your macro call the PopFormStack command you can shift the forms back getting the correct parent /child relationship as before the 3rd window opened.

An example of one of the use-cases for the PopFormStack command can be seen in this video

 


Similar/Related Commands:
- Activate
- Close
- CloseParent
- OpenForm
- SwitchToUpdateMode