on 10-03-2014 12:45 PM
I have a Context that consists of a node (foodAndBevServingSizeInfo), three additional attributes, and a sub node (householdServingSize) which has a single attribute. Please see below image.
My problem is I struggle to set the value of the "value" attribute of the "householdServingSize" sub node.
Can you please guide me on how to achive it?
My code below does not seem to work:
I'm getting this error:
while trying to invoke the method com.sap.tc.webdynpro.progmodel.context.Node.addElement(com.sap.tc.webdynpro.progmodel.api.IWDNodeElement) of an object returned from com.sap.is.gds.custom.interspec.web.wd.wdp.IPublicInterspecWebComponent$IFoodAndBevServingSizeInfoElement.node(java.lang.String)
Thanks in advance
.
Hi Erwin
The problem is that you created the foodAndBevServingSizeInfo element but did not add it to the node.
Generally I suggest using CreateAndAddElement method rather, it prevents mistakes like those and makes code shorter and more readable.
Regards
Shai.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Can you share the details of your foodAndBevServingSizeInfo node too please? I imagine it is because of a combination of the cardinality, selection cardinality, singleton, etc. settings.
Cheers,
G.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.