cancel
Showing results for 
Search instead for 
Did you mean: 

How to change component's attributes during execution?

danilo_henriques
Explorer
0 Kudos

Hello everyone,

I have an input field with property readOnly = X.

What i want to do is to change this property during the execution of my WD app.

e.g.When user clicks a button, all my input fields change the property readOnly to not readOnly.

Regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Danilo

Bind one of the context attribute of type boolean to Read only property in the layout.

Now at runtime you can set this property to ' ' or 'X'.

wd_context->set_attribute( exporting name = 'INP_FIELDS' value = ' ').

in this case INP_FIELDS is bind to the the read only attribute of the input field.

Regards

Naresh

danilo_henriques
Explorer
0 Kudos

Hey Naresh,

Thanks, my problem is solved.

Regards

Answers (0)