Skip to Content
avatar image
Former Member

Dynamic colSpan

Hi,

Please teach the method of the setting to

Group that dynamically makes colSpan.

I want to specify colSpan for the one that

Group was dynamically made.

<CODE>

public static void wdDoModifyView(){

....

....

....

IWDGroup group = (IWDGroup)view.createElement(IWDGroup.class,"Group" );

group.setDesign(WDGroupDesign.SAPCOLOR);

group.createLayout(IWDMatrixLayout.class);

tras.addChild(group);

...

...

...

}

</CODE>

Please teach the setting method.

Regards.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jul 27, 2006 at 08:09 AM

    BESS,

    Overall, call span is a property of cell within layout, not a layout itself. So please show code where you are adding elements -- this way it will be simpler to show how to set colSpan on cell.

    VS

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 27, 2006 at 08:02 AM

    Hi,

    Create Proper layout and set the UIElements accordingly

    Importantly use the Colspan property of Group

    RootGroup - MatrixLayout, colCount=1, width=600px,Colspan=2

    ChildGroup1 - AnyLayout, colSpan=1, width=300 px.Layoutdata="matrixdata"

    ChildGroup2 - AnyLayout, colSpan=1, width=300 px Layoutdata="matrixdata"

    Regards,

    Saravanan K

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 27, 2006 at 08:10 AM

    Hi,

    You can try this way to create Transparant Container inside of MatrixLayout. Through this method also you can achive colspan. The Transparant Container also in MatrixLayout. If you want to put two values into single column then create one Transparant Container and put it two values.

    Kind Regards,

    S.Saravanan.

    Add comment
    10|10000 characters needed characters exceeded