Skip to Content

Change data source of crosstab with script?

Hi,

I currently have a report where different crosstabs are placed at the same position but only one of them is visible depending on what choice the user makes.

I find this quite messy, and tried to figure out if it is possible to change the data source of crosstab with scripting.

Cannot find anything about this, any one who knows?

Thanks

Br

Max

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 10, 2014 at 10:13 AM

    Hi,

    Please Follow this Syntax

    DS_1.assignDataSource("cuid:AVDZJNnnWXVAsHd5zLxUd5w", DataSourceType.QUERY, "QUERY_NAME",true);

    Its

    DataSourceConnection,

    DatasourceType,

    DatasourceName,

    Loadnow(Optional).

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 10, 2014 at 09:39 AM

    Hi Max

    sure you can.

    you have to change the assignment to the data souce and not the crosstab.

    use:

    ds.assignDatasource(...);

    ds.loadDatasouce(..);

    I dont have Design Studio in front of me, so the syntax is not 100% accurate, but I'm sure you will easily find it using ctrl + space.

    hope it helps,

    Roman

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.