i'm trying to load datasources dynamically at runtime. Generally my source code is working.
SourceCode for loading the datasources:
SourceCode for visualization:
Comment: The script errors are normal, because the initial datasource has other measures than the dynamically loaded one.
When i use for example a crossstab and set the datasouce to the newly loaded one, the crosstab shows the correct dimensions, measures and values. But the KPI's have the value '0'.
But the getData-method of the datasource DS_1 throws the following error:
Is this a bug or what is wrong with my conding?
X-perion Consulting AG