cristianotestai Posted July 22, 2011 Posted July 22, 2011 Hello Farshad, How can I set a value for a variable to a JS Object in Delphi? Example: I have a "UniPanel" and in the event afterrender i declare a property to the UniPanel. OnAfterrender function (sender) { sender.UsuId = 0; } In my home, after the user presses the login button, I need to update the property UsuId of UniPanel, which will be used later in clientside scripting .. How to accomplish this? Thanks again. Quote
Administrators Farshad Mohajeri Posted July 22, 2011 Administrators Posted July 22, 2011 UniSession.AddJS('MainForm.UniPanel1.UsuId=123;'); Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.