cancel
Showing results for 
Search instead for 
Did you mean: 

Personas 3.0: Checking attribute "enabled" from controls

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

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

Former Member
0 Kudos

Hi Sushant,

thanks for your message.

We instructed already our IT to do the kernel upgrade.

Once it's done I will check it and post the result here.

Best regards,

Christian

Former Member
0 Kudos

Hi Sushant,

we did the kernel patch upgrade and the if-condition is still not working.

We are going to create a message.

Best regards,

Christian

0 Kudos

please do so. Also make sure that you provide system connections.....

Answers (0)