on 02-17-2011 1:36 AM
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
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,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.