Bektas Posted May 9, 2021 Share Posted May 9, 2021 I have a public integer variable named myval in TMainForm . how can I use it in a function of ExtEvents? I tried it below it works but I don't want myval to update every time. Self.WebForm.JSInterface.JSAssign('myval', [2356]); Is there a command that works like the following? I tried the UniSession.AddJS('TMainForm.myval') but it didnot work because I am new I dont know how to use it . This question has been asked a lot, but I could not find any clearly answer. Thanks Bektas Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 9, 2021 Share Posted May 9, 2021 Hello, First of all, adjust your forum email address if you are not using the trial version: Quote Link to comment Share on other sites More sharing options...
Bektas Posted May 9, 2021 Author Share Posted May 9, 2021 I am not using trial version. I dont understant why my profile is important. This is a question whoever answers I will be very pleased. Thanks Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 9, 2021 Share Posted May 9, 2021 7 minutes ago, Bektas said: I am not using trial version. I dont understant why my profile is important. Thank you. Once again if you own a uniGUI subscription please make the above adjustment so you will gain full access to forums. Quote Link to comment Share on other sites More sharing options...
Bektas Posted May 9, 2021 Author Share Posted May 9, 2021 I now get it why I can't download some attached files. Thanks for warning Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 10, 2021 Share Posted May 10, 2021 12 hours ago, Bektas said: I now get it why I can't download some attached files. Thanks for warning Thank you for adjusting your forum email. 14 hours ago, Bektas said: I have a public integer variable named myval in TMainForm . how can I use it in a function of UniEventStrings? I tried it below it works but I don't want myval to update every time. Self.WebForm.JSInterface.JSAssign('myval', [2356]); Is there a command that works like the following? I tried the UniSession.AddJS('TMainForm.myval') but it didnot work because I am new I dont know how to use it . This question has been asked a lot, but I could not find any clearly answer. Thanks Can you please clarify your question once again? Quote Link to comment Share on other sites More sharing options...
Bektas Posted May 10, 2021 Author Share Posted May 10, 2021 var W=MainForm.UniPanel1.getWidth() - MainForm.UniSpeedButton1.getWidth(); I can get objects MainForm in functions of extevents but I can not get variables of MainForm or UniServerModule .why? I use that UniSession.AddJS('var i'); Self.WebForm.JSInterface.JSAssign('i', [125]); I don't want to use it that way. I'm constantly updating the variables when changing values Quote Link to comment Share on other sites More sharing options...
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.