cancel
Showing results for 
Search instead for 
Did you mean: 

Dump in adding a ui element to group dynamically

Former Member
0 Kudos

hi all,

I have a group which has a dropdown ,my requirement is when i click a button

a dropdown should be created dynamically below the dropdown created at design time.

My code in wddomodifyview()

cl_wd_dropdown_by_idx=>new_dropdown_by_idx(

EXPORTING

bind_texts = 'CN_RULEBUILDER.CA_CONDITION'

RECEIVING

control = lr_input ).

lr_group ?= view->get_element( 'GRP_BUILDER' ).

lr_group->add_child( lr_input ).

when i run this i get dump

Adapter error in MATRIX_LAYOUT "_03" of view "ZMCPTS_RULES_SCREEN.V_MAIN": No LayoutData exists for child element "_10" of the UIElementContainer

Can someone please help me with this

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

This is because you need to set the Layout for the new element added as below:

data LR_FLOW_DATA type ref to CL_WD_FLOW_DATA.

LR_FLOW_DATA = CL_WD_FLOW_DATA=>NEW_FLOW_DATA( element = lr_input ).

Thanks,

Answers (0)