cancel
Showing results for 
Search instead for 
Did you mean: 

GridLayOut

Former Member
0 Kudos

hi everyone,

i want gridlayout but it getting flowlayout how can i get this here is the code i written in wdModifyView()

if(firstTime)

{

IWDTransparentContainer con=(IWDTransparentContainer)view.getElement("RootUIElementContainer");

// CREATION OF TEXTVIEW

IWDAttributeInfo attinfo=wdContext.getNodeInfo().addAttribute("sample","ddic:com.sap.dictionary.string");

IWDInputField input=(IWDInputField)view.createElement(IWDInputField.class,"textview");

IWDInputField input1=(IWDInputField)view.createElement(IWDInputField.class,"textview1");

input.setEnabled(true);

input1.setEnabled(true);

input.bindValue(attinfo);

input1.bindValue(attinfo);

con.addChild(input);

con.addChild(input1);

}

I am creating two input fields dynamically but it getting

flowlayout give me coding for grid layout

KYAN----


Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

Ex: IWDMatrixLayout matrixLayout=(IWDMatrixLayout)container.createLayout(IWDMatrixLayout.class);

Regards, Anilkumar

Message was edited by: Anilkumar Vippagunta

Former Member
0 Kudos

Kyan,

Also please read this https://www.sdn.sap.com/irj/sdn/crphelp

You have ~13 topics opened, and most of them contains correct answers.

VS

Former Member
0 Kudos

Hi

Give the following code in the wdDoModifyView().

IWDlayout layout =(IWDLayout)con.createLayout(IWDGridlayout.class);

Regards,

Rathna

Former Member
0 Kudos

Kyan,

Open "Layout" tab in view designer and set layout of RootUIElementContainer to GridLayout.

VS