Quantcast
Channel: SCN : Discussion List - SAP BusinessObjects Design Studio
Viewing all articles
Browse latest Browse all 4041

Cannot convert from "String" to "DataSourceAlias"

$
0
0

Dear DS developers,

 

We have a chart (CHART_5) that is dynamically filled with a datasource, the user can select the datasource. On the chart I want to create an OnClick event with the following functionality:

- Read the datasource from CHART_5 (eg. DS_3)

- Based on this datasource, select the detailed datasource (eg. DS_3_DETAIL)

- Assign this detailed datasource to a crosstab and navigationpanel.


Now I've the following piece of code:

script editor.png

Where "g_datasource_detail" is a global variable Type String.

 

Now the following error will occur: Cannot convert from "String" to "DataSourceAlias".

 

I also tried to change the type of the global variable "g_datasource_detail" to Type DataSourceAlias, but then the error "Cannot convert from "DataSourceAlias" to "String"" will appear.

 

Can anybody help me with this?

 

Regards,

Pieter


Viewing all articles
Browse latest Browse all 4041

Trending Articles



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