on 12-27-2007 7:06 AM
hi,
i want to create an input field in my domodifyview() method.
can anyone plz suggest the necessary coding?
thanx.
regards,
ankita
Hi,
IWDInputField inputField = (IWDInputField) view.createElement(IWDInputField.class, "<ID for your input>")
inputField.bindValue("<Attribute to which this should be bound>");
and finally add this to a container
Ex:
IWDTransparentContainer container = (IWDTransparentContainer)view.getElement("<RootUIElementContainer>");
IWDInputField input= (IWDInputField)view.createElement(IWDInputField.class,null);
IWDAttributeInfo iWDInfo = (IWDAttributeInfo) wdContext.getNodeInfo().getAttribute("<Your Attribute Name");
input.bindValue(iWDInfo.getName());
container.addChild(input);
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
actually im binding it to an attribute which isnt present.
i wrote the follwing code after creating the context node:
node.addAttribute("HomePage","com.sap.dictionary.string");
hw can i create an attribute dynamically?
plz help.
thanx.
regards,
ankita
Edited by: Ankita Padhi on Dec 27, 2007 10:16 AM
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.