cancel
Showing results for 
Search instead for 
Did you mean: 

placing fields in a position

Former Member
0 Kudos

hi everyone,

U had given right answer but the thing is how can i place these dynamically created input fields in the required position just like (x,y)co-ordinates.

example: top of the screen or bottom of the screen or some other place on the browser. see the below code.

if(firstTime)

{

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

IWDGridLayout layout=(IWDGridLayout)con.createLayout(IWDGridLayout.class);

layout.setColCount(1);

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);

}

//@@end

-


KYAN........................

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You can't specify the (x,y)co-ordinates while placing the UIElements in webDynpro.

You can make use of different kinds of layouts like Grid ,Matrix,Row to arrange your UIElements.

Please go through the help in SDN on different layouts.

Regards, Anilkumar

Former Member
0 Kudos

Hi,

IWDGridData dataGrid = (IWDGridData) input1.createLayoutData(IWDGridData.class);

//now u can dataGrid to set the properties like padding, width etc.

regards,

Piyush.