Open guymonlh opened 8 years ago
Hi!
I'm facing the same issue.
Have you solved it?
Thank you!
Anyone have answer for this?
@guymonlh @andreamsimonazzi @entmike Did you find the answer for this? I am facing similar problem. Please suggest.
Here is the code, I am implementing Error -- Syntax Error: Empty JSON string ( Flatten#12) Code – var results = ""; var rows = DATAITERATOR_1.getRows(0,1); var rowkey = DATAITERATOR_1.getMeasures().atIndex(4).key; rows.forEach(function(element, index) { //var memberkey = element.getDimensionValueKey("0vendor");
results = results + element.getMeasureValue(rowkey);
}); TEXT_5.setText(results);
I am trying to use the data iterator in script. Once I assign a datasource to the component, the following error appears when trying to execute the .getRows or .getDimensions methods on the component:
Message:org.mozilla.javascript.ecmaError: SyntaxError: Empty JSON string (flatten#12).
I have recently moved to Design Studion 1.6 SP02 so not sure if this error is related to the new version.
Thank you!