on 06-17-2015 7:29 AM
Hi guys,
I'm trying to write a toggle function for enabeling and disabeling controls.
If I use the commands static in my code like
session.findById("wnd[0]/usr/txtPersonas_1434372629594").enabled = true;
or
session.findById("wnd[0]/usr/txtPersonas_1434372629594").enabled = false;
it's working without any problems and the textfield is either enabled or disabled.
But if I want to check the value of the attribute, it's all the time "false".
if(session.findById("wnd[0]/usr/txtPersonas_1434372629594").enabled == true) { ... }
I checked the value after setting it to "true" with the object-selector in personas and it's "false" as well.
If I try the same procedure with the attribute "text", it's working fine.
Is this a bug or I do something wrong?
Thanks,
Christian
just checked with latest notes and kernel patch level 121 and it works as expected..
if(session.findById("wnd[0]/usr/txtPersonas_1434548092248").enabled)
alert("yeah");
if you are on same level and not working, then please create a message.
Regards,
Sushant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.