cancel
Showing results for 
Search instead for 
Did you mean: 

In matrix layout

Former Member
0 Kudos

How keep only one element in first row and two element in second row.

can u send detail about this arrange ment of elements in web dynpro

Regards,

H.V.Swathi

Edited by: H.V Swathi on Oct 17, 2008 7:48 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

for this you have two options.

Firstly add all the three elements which so ever u want like b1 , b2 , b3.

Now

-> change the RootUIElementContainer property -> LayoutData to Matrix Layout.

and then Change the LayoutData property of b2 to Matrix head Data.

You can even go for Row Layout.

-> Change the RootUIElementContainer property ->LayoutData to Row Layout.

and then Change the Layout property of b2 to Row head Data.

I hope this will solve your problem.

Thanx.

Former Member
0 Kudos

if for grid layout if we want to set like this. what can be done

Former Member
0 Kudos

use colcount(container) and colspan properties(element)

former_member205363
Contributor
0 Kudos

Hi Swathi,

If you want to show this pattern in grid layout.Mens you have to display five elements.

Create TransparentContainer with ColCount 3.

For the first element make colspan=3 align=left.

For the second,third,fourth values Colspan=1 align= center

For the fifth element make colspan=3 align=left.

Regards,

Lakshmi Prasad.

Former Member
0 Kudos

hi,

For Grid Layout , you have to change the ColCount Property to the maximum number of elements you want in a row.

Suppose you want 3 elements in first row , 2 in second and 1 in third row Then go like this.

Change the ColCount to 3 ->

Add 1 invisible UIElement in second row and 2 invisible UIElement in third row.

So you have to add invisible elements for GridLayout.

You have to proceed in this way for Grid Layout.

Thanx.

Answers (4)

Answers (4)

Former Member
0 Kudos

Namaste Swati,

To obtain fields as you mentioned, first of all, create a group with 'Layout' set to MatrixLayout.

I'm considering the fields to be text fields (just for example)

Create a field T1.1 and T1.2 with default layout Matrix. This will create 2 fields next to each other.

Now create field T2.1 with layout set to MatrixHeaderData. This will create a field in the next row. Whatever fields you create from now on will be in the second row, with default layout set to Matrix. Create as many fields, such as T2.2, T2.3 and so on.

For the third row, create a field T3.1 with layout MatrixHeaderData.

I hope you have got what you want!!

Krishna Murthy

Former Member
0 Kudos

Hi,

when you using MatrixLayout in container.

for each element in it have "layoutdata" property.Default is "matrixdata".

if you want to bring it next line set this property to "matrixHeaddata".

if you have three elements ,for your requirement set matrixheaddata to second element.

hope it helps you.

Regards,

ramesh

Former Member
0 Kudos

Hi,

Can u give more details of your requirement. What i think is you want one element in first row, two elements in second row and three elements in third row so on..... For this you can set nulls for the remaining places like

for(int i=node.size();i>0;i--)

{

if (i==node.size()

{

element.setxxx

//set all the elements

}

if(i==nodesize()-1)

{

element.setxxx

//set one less element

}

and so on...

Regards

Raghu

former_member205363
Contributor
0 Kudos

Hi Swathi,

You can try like this, Make the Cell visibility as a variable , create Context nodevalue with type Visibility and map Cell visibility to the Context Variable.

while setting the value you can set the visibility also.

If you want to set inivisible -- Visibility.None

If you want to set visible -- Visibility.Visible.

Regards,

Lakshmi Prasad.

Former Member
0 Kudos

but only visibility of cell can be "blank or none or visible"

former_member205363
Contributor
0 Kudos

Hi Swath,

Pls explain where exactly problem is coming and how exactly you want to show.

Regards,

Lakshmi Prasad.

Former Member
0 Kudos

i want to show one field

on top row

next row three element and

last row only one element

how can i set it using matrix lay out

I have done stretched horizontally

Stretched vertically to false