Bernie07 Posted August 7, 2020 Posted August 7, 2020 Hello, Is it possible to get values which are handled from javascript code. For Example : In Pascal I do the following : MyButton.JSInterface.JSProperty('MyProperty', ['Test']); In the Click Event of ExtEvents I'm changing the value like : function click(sender, e, eOpts) { sender.MyProperty = 'Test 2'; } Now I want in my Pascal code return the changed Value for MyProperty. Is this possible? Best wishes Bernhard Quote
Hayri ASLAN Posted August 8, 2020 Posted August 8, 2020 Hi, You can try this : function click(sender, e, eOpts) { sender.MyProperty = 'Test 2'; ajaxRequest(sender,"myevent", {myproperty:sender.MyProperty}); } and in Button.OnAjaxEvent if EventName='myevent' then // params['myproperty'].asstring 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.