Announcements
No record found.
Hi,
I have a requirement of Closing the form after button click in the action pane, if we click the button it will open the Runbase batch processing dialog and if I click on "OK" or "cancel" button form is closing automatically since I have added the code element.close() in clciked method.
My target is like form has to close only when we click on "OK" and to remain running if I click on "cancel " button.
The normal look&feel in the systems doesn't work like that. I recommend to consider sticking to the normal look&feel. This would mean that the caller form is not closed automatically if the user clicks OK on the batch dialog.
However it's possible to achieve it.
You need something like that in the main method of your RunBaseBatch class (usual disclaimer: this is an illustration only, not real code that you should expect to work in your scenario without changes):
public static void (Args _args) { Object caller = _args.caller(); FormRun callerForm; MyRunBaseClass myRunBaseClass = MyRunBaseClass::construct(); if (caller is FormRun) { callerForm = _args.caller(); } if (myRunBaseClass.prompt()) { callerForm.close(); myRunBaseClass.run(); } }
Hi Nikolaos,
I will change the code accordingly and check my scenario.
Thanks!
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 657
André Arnaud de Cal... 615 Super User 2026 Season 1
CP04-islander 356