Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8735

Adding an Element to a sub node

$
0
0


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.

 

10.png

 

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:

 

11.png

 

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

 

 

.


Viewing all articles
Browse latest Browse all 8735

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>