cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Programming ...

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

can you show us your code?

Regards,

Trond