on 12-12-2014 3:14 AM
Hi Ming,
You have to create transparent container TC_MAIN and set its layout has MATRIX layout.
Inside it, create another transparent container TC_line1, and set layout as matrix layout, and its layout data to MATRIX HEAD data.
Add the elements of BP NO. ( layout data - matrix head data ) & BP NAME ( layout data - matrix data ) into TC_LINE1
Similarly add TC_LINE2, TC_LINE3, etc and include the ui elements as required.
To bring into new line, you have to set the MATRIX HEAD data as layout data.
To bring beside to an ui element, set the layout data with MATRIX DATA
Refer the below snap shot
Hope this helps you.
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ming,
You need not define multiple transparent containers, set group layout property as 'MATRIX LAYOUT'.
your requirement will be solved. if the length of the input fields needs to be increased or decreased, then set the the length of the input field or set width of the UI element.
Note: Unnecessary creation of UI elements leads to performance issues. you can remove all the transparent containers and try.
It should work.
Thanks & Regards,
Sankar Gelivi
Hi Ming,
While working with layout you need to know how different layout works in web dynpro.
The flow layout placed all your UI elements sequentially (i.e one after another. ). Once it covered the entire width of the window it placed the next element in the next line. Also you can do some wrapping.
The row or matrix layout works differently. Here you can explicitly specify which element to be placed in the new line ( by using row head data / matrix head data). So you have more control then the flow layout.
Define the layout type in the parent container & the child elements will follow them. So if you have a context node link this node to your group and keep the layout as "Matrix Layout'. Now you can decide which group child to appear as matrix head data or matrix data.
For more understanding check this below video tutorial.
Regards,
Monishankar C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.