Skip to Content
0
Former Member
Mar 02, 2006 at 12:16 PM

placing fields in a position

8 Views

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........................