on 06-21-2007 11:30 AM
Hi,
How I can to align label or fields or other object in a view of Webdynpro?
Thanks,
Hi,
You have the various layouts to do the alignment. If you choose a grid layout, you can specify how many fields or UI elements you want to be displayed in a single row, by giving the col count. You can adjust the cell padding to determine the spacing between elements.
In a matrix layout, for every new line of elements, you give the data type as Matrix head data. and all other elements will be Matrix data. A row layout also works similarly.
Try creating views with different layouts and you can see the results better. Hope this helps.
Regards,
Nithya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
if your container width is 100% and you only have like 2 fields (two columns)
in combination with the parameter stretched horizontally, you will spread them around,
if you don't spread, the colums will be aligned on the left side of your screen
with normal dimensions if you leave the container width blank
grtz,
koen
Hi Guillermo,
what exactly do you mean by "you are not able to align them", what is it that you are trying to achieve, please elaborate your problem. The solution provided by Nithya makes sense, did you try the various layouts ?
also go through the documentation at the below link for further clarity on various layouts
http://help.sap.com/saphelp_nw04s/helpdata/en/eb/128841e8231709e10000000a155106/frameset.htm
Regards,
Shweta
One way to do this would be as follows';
Set the rootuielement container's Layout as flow layout. The elements will come one below the other.
For each row of input you want, have a transparent container. So if you want 3 rows, essentially your root should have 3 transparent containers. Inside each trans container, have your labels and input fields.
In the first container, set the layout as grid will col count = 4. Keep the width of the container as 100% so that it spans the whole screen. In the second container, keep the col count as 6. In the 3rd one, col count = 2. If all the widths are 100%, the input field sizes would get automatically adjusted.
Regards,
Nithya
Hi Guilermo,
in this case go for a Matrix layout and whenever you want to display a UI element say a label in the next row make its layout data as "MATRIXHEADDATA" instead of "MATRIXDATA".
Eg: you want to show 2 input field with label in first row and 3 input field and their labels in the next row.
all you need to do is to place them in a Transparent container or a group.Make the Layout property of it as MATRIXLAYOUT.
Then make the 1st label as MATRIXHEADDATA leave 1st inputfield 2nd label 2nd inputfield as MATRIXDATA....
again make 3rd label as MATRIXHEADDATA and remaining labels and inputfield of that line as MATRIXDATA....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
alternatively you can custom design by setting the no of pixels in the "width" property to change its display on the screen.Eg: 1200px will make the UI element 1200 px long.You will have to do trial and error to see what works best for your screen.hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.