cancel
Showing results for 
Search instead for 
Did you mean: 

Disbale fields on triggering an Event.

Former Member
0 Kudos

Hi Experts,

I have a scenario, where an user makes a Check on a Checkbox, it should disable the few fields in the screen of another component. How to achieve this...?

Regards / Guru

Accepted Solutions (1)

Accepted Solutions (1)

yevgen_trukhin
Advisor
Advisor
0 Kudos

Hello,

One of way of doing this is changing GET_I* methods of the fields you need.

Best Regards,

Yevgen

Former Member
0 Kudos

Hi Yevgen,

Thanks for your quick prompt, but how should I write the logic, as I am completely new for WebUI, can you guide me how to read the value from the context node and check the required condition to disable fields in other component.

Regards / Guru

yevgen_trukhin
Advisor
Advisor
0 Kudos

Hello,

You mentioned the fields should be disabled in the other component. It means the other component should know what happened in the other one. It can be achieved by creating a value node in both component controllers to share a flag whether fields are disabled or not. You have to enable binding between these two value nodes. When the user selects checkbox, you set the flag in this value node and it should be visible in the other component.

Then in GET_I*:

* Get the component controller instance
  lr_controller ?= me->controller_owner.

  lr_comp_controller ?= lr_controller->component_controller.

  CHECK lr_comp_controller IS BOUND.

*now retreive the flag from the comp controller
...

Hope this helps,

Yevgen

Answers (1)

Answers (1)

Former Member
0 Kudos

It is resolved by myself, by maintaining a global attibute.