on 08-30-2011 5:21 AM
Hi
i have to create a group dynamically and inside two transparent containers..each transparent container again have some ui elemnts...for this im using flow layout for group and matrix for transparent contianers ...but im getting an error as 'Error in FLOW_LAYOUT "_03" of view "ZWD_DYNAMIC_VIEW3.MAIN": LayoutData type "MATRIX_DATA" for child element "TC" is not permitted'.can any 1 suggest me how to resolve it..any sample code related to this kind of scenarios ..
Hi Vasavi,
This is code to create group dynamically...
IF FIRST_TIME EQ ABAP_TRUE.
DATA: lr_root TYPE REF TO cl_wd_uielement_container,
lr_flow_layout type ref to cl_wd_flow_layout,
lr_groupbox TYPE REF TO cl_wd_group.
lr_root ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
lr_groupbox ?= cl_wd_group=>new_group( id = 'GROUP' ).
CALL METHOD CL_WD_FLOW_LAYOUT=>NEW_FLOW_LAYOUT
EXPORTING
CONTAINER = lr_groupbox
RECEIVING
CONTROL = lr_flow_layout.
lr_groupbox->set_layout( lr_flow_layout ).
cl_wd_flow_data=>new_flow_data( lr_groupbox ).
lr_root->add_child( lr_groupbox ).
ENDIF.
Check where you are getting error? and kindly paste your code.
cheers,
Kris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
can you show us your code?
Regards,
Trond
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.