cancel
Showing results for 
Search instead for 
Did you mean: 

Loading CheckBoxGroup boxes from text fields

Former Member
0 Kudos

I am making a new ESS screen for Race Codes. The codes (you can have more than one) are a series of text fields (R1, R2, etc.). I want to convert these text fields to checkboxes on my ESS screen. That is, if the employee record contains R1, I want a check to appear in the corresponding checkbox on the ESS screen. I have the text fields in my view context and the CheckBoxGroup is defined in my view layout. I assume I need to modify my view WDDOINIT with logic to read the text fields and SET_SELECTED the corresponding CheckBoxGroup boxes. Does anyone have some example code to do this? Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi mike,

u can use tihs code block in wddoinit.

              • zdev is context node

data:

node_node_ztalep type ref to if_wd_context_node.

node_node_ztalep = wd_context->get_child_node( name = 'ZDEV' ).

node_node_ztalep->SET_SELECTED( flag = abap_true index = 1 ).

node_node_ztalep->SET_SELECTED( flag = abap_true index = 2 ).

have a nice day,

Serkan Çivici