org-scn-design-studio-community / sdkpackage

SDK Package of SCN Design Studio Community
Apache License 2.0
32 stars 29 forks source link

Data Iterator Problem #131

Open guymonlh opened 8 years ago

guymonlh commented 8 years ago

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!

andreamsimonazzi commented 7 years ago

Hi!

I'm facing the same issue.

Have you solved it?

Thank you!

Vamsi1991 commented 6 years ago

Anyone have answer for this?

Vamsi1991 commented 6 years ago

@guymonlh @andreamsimonazzi @entmike Did you find the answer for this? I am facing similar problem. Please suggest.

Vamsi1991 commented 6 years ago

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);