When I try to parse the XML to get the child nodes (<enumValue>) that actually contain the values I need, I face the issue that it doesn't recognize the hyphen in the parent node. The error message tells me that "collection" isn't defined (it cuts the string at the hyphen).
04.08.2017 13:15:48 js JST-310000 Fehler bei der Auswertung des Scripts 'rosImportProducts/js' Zeile 40: collection is not defined.
This is what I try:
for(var ean in availProductsRes.enumValue-collection)
I am sure that I confused you a bit with my previous post, sorry in advance. Actually, when you proceed inside a workflow JS activity, the collection is directly named as the schema parameter part without the space name. It is in webApp and report that XML element is added with -collection.
// itemized list (énumération in French) for a database enum (xtk:enum)
var enumId = "576797577"; // webAppNature itemized list (check your value in your own instance)