Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Webdynpro Dynamically change UI Attributes

Former Member
0 Likes
304

Hi,

I want to change UI attribute of portal i.e I want to disable a checkbox on portal webpage depending on a condition at runtime.

I am new to webdynpro. I am using a class ZCL_IM_DPR_ATTRIBUTES to implement the functionality .

Please let me know how to change attributes by coding in this class.

Thanks.

1 REPLY 1
Read only

Former Member
0 Likes
248

Hi Hemant,

1.Declare one attribute say 'attr1' , in the context of the view.

2.double click the check box in the layout, in the properties window , there is one property called enabled ,remove the tick from that property,

3. Click on the binding button ,(to the right of enabled) select the attribute attr1.

4.in the methods tab,select the appropriate method.

5. set the value of the attribute to 'X' using the set attribute method or reset to space .

Regards,

Charumathi.B