on 02-09-2011 2:31 PM
Hello friends,
I am creating one button with name "Add Item" by clicking on that button need to add one text field dynamically. please give me some suggestions .
Regards,
sharadaDVPS
First, add a boolean context attribute named for example "inputFieldShouldBeAdded". In the action handler of the Add-button set this attribute to true. In the (static) hook method wdDoModifyView(), use code like
if ( wdContext.currentContextElement().getInputFieldShouldBeAdded() )
{
IWDUIElementContainer container = /* whatever container the input field shall be added to */
IWDInputField inputField = view.createElement(IWDInputField.class, "fieldID" /* may be null */);
inputField.bindValue( wdContext.node<NodeName>().getNodeInfo().getAttribute(I<NodeName>Element.<ATTRIBUTE_NAME>);
container.addChild(inputField);
wdContext.currentContextElement().setInputFieldShouldBeAdded(false);
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Refer this link :
Link:[http://help.sap.com/saphelp_sm32/helpdata/EN/c0/ead8a21ba49f4896c64851677f8ec9/content.htm]
You can also refer a site called SAP technical .com
Search for an article on Dynamic Run time Manipulation-Context & View layout using Web Dynpro for Java.
This would give a very clear and concise picture of what exactly needs to be done.
Regards ,
Navya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
CHeck this wiki, should help you out, as its a simple and straight forward
http://wiki.sdn.sap.com/wiki/display/WDJava/DynamicUIGeneration
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
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.