Ario.Paxaz Posted June 10, 2025 Posted June 10, 2025 Hello How do I close an unimform using UnimButton and client events? The following code did not work. function tap(sender, e, eOpts) { //sender.close(); //this.up('form').close(); //frmCalc.close(); } Regards.
Sherzod Posted June 10, 2025 Posted June 10, 2025 Hello, May I ask why you're trying to close the UnimForm specifically from the client side? Is there a particular reason you're avoiding a server-side solution?
Ario.Paxaz Posted June 12, 2025 Author Posted June 12, 2025 Hello, The user didn't want to leave the PWA space. He asked for a calculator and I did it server-side, which was a lot, then I created the calculator with js functions. Now I have a unimbutton that returns the results to an unimedit in the main form and closes the calculator form, the server-side for this unimbutton seems slow to the user. Regards.
Ario.Paxaz Posted June 12, 2025 Author Posted June 12, 2025 On 6/10/2025 at 9:21 PM, Sherzod said: close the UnimForm specifically from the client side This is slow from the user's perspective. Of course, he is filling in the price, quantity, etc. fields on the warehouse receipt. And the slowness in closing the form and calculating the result is important to him.
Sherzod Posted June 12, 2025 Posted June 12, 2025 Hello, Yes, I understand your point — client-side speed is important, especially in PWA scenarios where every millisecond matters for the user experience. However, in uniGUI, forms (including UnimForm) are managed on the server side. So even though we can trigger certain UI effects with JavaScript, a proper close/dispose of a form still requires server-side involvement to clean up resources, release memory, and maintain application state.
Ario.Paxaz Posted June 12, 2025 Author Posted June 12, 2025 4 hours ago, Sherzod said: forms (including UnimForm) are managed on the server side Thank you for the guidance, Sherzod. With your explanation, I tried to solve it in a different way. Regards. VID_20250613_013038_793.mp4 1
Recommended Posts