on 04-06-2009 8:04 PM
Hello,
I have created a webdynpro application in which I want to add a series of fields in one row on click of a button everytime the user clicks on the button....how can I implement this as i am able to add one row of fields but when the user clicks on the button again...it gives a duplicate Exception.....
Any help would be highly appreciated.
Regards,
Anil
You can't create two attributes with the same name in the same node. I had to do same similar and I solved using a name + number increment for each attribute.
In first place I create attribute "name1", and then "name2"... "name3"...
IWDAttributeInfo _attribute = _context.getNodeInfo().addAttribute(name + i,"ddic:com.sap.dictionary.string");
Edited by: Sebastian Celestino on Apr 6, 2009 9:19 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
http://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/progmodel/api/IWDNodeInfo.html
Look at method addMappedAttribute()
Armin
Armin,
Thanks for the reply....I read the link ...now with the first method of mapping do I need to create mapped and origin node in the component and the view controller....or how do I map the context value attribute created at runtime in the View controller to a attribute in the component controller...and access it in the Implementation tab of the Component Controller using :
wdcontext.currentcontextelement.get<attribute> method....
Looking forward to your reply.
Regards,
Anil
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.