Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Jun 11, 2008 at 05:28 PM

    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

    Add comment
    10|10000 characters needed characters exceeded