Skip to Content
0
Former Member
Feb 17, 2011 at 01:36 AM

Dump in adding a ui element to group dynamically

111 Views

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