on 03-02-2006 12:16 PM
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........................
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
IWDGridData dataGrid = (IWDGridData) input1.createLayoutData(IWDGridData.class);
//now u can dataGrid to set the properties like padding, width etc.
regards,
Piyush.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.