Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to change component's attributes during execution?

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

Former Member
Former Member replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question