Jump to content

Recommended Posts

Posted

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.

Posted

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?

Posted

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.

Posted
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.

Posted

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.

×
×
  • Create New...