cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic ui properties

0 Kudos

Hi Experts,

I am creating radio button group by key during runtime with below code:

cl_wd_radiobutton_group_by_key=>new_radiobutton_group_by_key( bind_read_only = 'X'

BIND_ENABLED = '-'

bind_selected_key = lv_text ).

I want to make it readonly/ enable false while creating it. Can some one please tell how to use "BIND_Enabled" property of the same.

Advance thanks

Chandan

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

If you want to bind the Properties of UI element through the Dynamic Programming. Use the context path.attribute name.

For Eg if u want to bind the Read-only Property and You are maintaining a Context Node say UI_RADIO_KEY and Attribute READ_ONLY type wdy_boolean.

while creating in the Program

CL_WD_RADIOBUTTON_GROUP_BY_KEY=>NEW_RADIOBUTTON_GROUP_BY_KEY

EXPORTING

id = 'RAD1'

BIND_READ_ONLY = 'UI_RADIO_KEY.READ_ONLY'.

Now u can control the READ_ONLY propoperty by maintaining abap_true or abap_false.