Skip to Content
avatar image
Former Member

Dump in adding a ui element to group dynamically

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()





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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Feb 17, 2011 at 01:52 AM

    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 ).


    Add comment
    10|10000 characters needed characters exceeded