gerhardhziegler Posted March 16, 2021 Share Posted March 16, 2021 Good evening, is there a reason that UnimButton1.JSInterface.JSCall('element.setText', ['NewText']); should not work. I would like to use it to change the text of a button after clicking it (maybe also disable it, so the user might not click again). Any ideas what I did wrong (again)? Gery Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 16, 2021 Share Posted March 16, 2021 5 hours ago, gerhardhziegler said: is there a reason that UnimButton1.JSInterface.JSCall('element.setText', ['NewText']); should not work. Hello, Simply use the Caption property. 5 hours ago, gerhardhziegler said: maybe also disable it, so the user might not click again Use the ScreenMask property. UnimButton -> ScreenMask -> Enabled = True Quote Link to comment Share on other sites More sharing options...
gerhardhziegler Posted March 17, 2021 Author Share Posted March 17, 2021 9 hours ago, Sherzod said: Hello, Simply use the Caption property. >>its just executed after the end of the following code. Too late. Use the ScreenMask property. UnimButton -> ScreenMask -> Enabled = True Quote Link to comment Share on other sites More sharing options...
gerhardhziegler Posted March 17, 2021 Author Share Posted March 17, 2021 I would just like to change the state of the button, before the function is doing some things, that need time (the user could click again) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 17, 2021 Share Posted March 17, 2021 Just now, gerhardhziegler said: I would just like to change the state of the button, before the function is doing some things, that need time (the user could click again) 10 hours ago, Sherzod said: Use the ScreenMask property. UnimButton -> ScreenMask -> Enabled = True ? Quote Link to comment Share on other sites More sharing options...
gerhardhziegler Posted March 17, 2021 Author Share Posted March 17, 2021 The button state will be synchonized after executing of the procedure, that I started. Quote Link to comment Share on other sites More sharing options...
gerhardhziegler Posted March 17, 2021 Author Share Posted March 17, 2021 I just want the button state to change and to continue with my procedure (thats connects to another database and those procedure needs some seconds). Meanwhile the button should be disabled. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 17, 2021 Share Posted March 17, 2021 3 minutes ago, gerhardhziegler said: I just want the button state to change and to continue with my procedure (thats connects to another database and those procedure needs some seconds). Meanwhile the button should be disabled. You can also try to use this code: UnimButton -> ClientEvents -> ExtEvents -> function tap(sender, e, eOpts) { this.showMask(); } Quote Link to comment Share on other sites More sharing options...
gerhardhziegler Posted March 17, 2021 Author Share Posted March 17, 2021 8 minutes ago, Sherzod said: You can also try to use this code: UnimButton -> ClientEvents -> ExtEvents -> function tap(sender, e, eOpts) { this.showMask(); } great! Thanks! and how to unmask, of the mask is set? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 17, 2021 Share Posted March 17, 2021 10 minutes ago, gerhardhziegler said: and how to unmask, of the mask is set? Does the mask remain after the response from the server side? Quote Link to comment Share on other sites More sharing options...
gerhardhziegler Posted March 17, 2021 Author Share Posted March 17, 2021 6 hours ago, Sherzod said: Does the mask remain after the response from the server side? probably not, but maybe i can adaptthis 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.