Skip to Content
avatar image
Former Member

In matrix layout

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 17, 2008 at 06:05 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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.

  • Oct 17, 2008 at 05:55 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Lakshmi Prasad

      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

  • avatar image
    Former Member
    Oct 17, 2008 at 06:03 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 17, 2008 at 06:10 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 18, 2008 at 09:20 AM

    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

    Add comment
    10|10000 characters needed characters exceeded