Skip to Content
author's profile photo Former Member
Former Member

export to excel-only from active tab

Hi All,

Is there a way to programmatically specify which crosstabs to export to excel? I would need to export only those crosstabs which are on the currently active tabpage, and also visible.

I can build an array manually, where i list the crosstabs on my page, but at the same time i should also check whether it is visible or not at the moment of export button click. I tried to to it with iterating that array, but to me seems that 'array' currently is really basic, cannot remove anything or even create an empty array with a specific type (in my case CrosstabArray)

Any help would be appreciated.

Krisztian

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 23, 2015 at 02:14 PM

    I think , following piece of script might solve your problem

    var array1 = [CROSSTAB_1,CROSSTAB_2];

    array1.forEach(function(element, index) {

    if (element.isVisible()){

    APPLICATION.export(ExportType.EXCEL_xlsx,element);

    }

    });

    Regards

    Rahul Kumar

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Kumar,

      Thanks, it is working as expected. Seems i still have to define my arrays manually, as no way to create an array by picking up crosstabs from my current tab, but it is ok for now.

      Krisztian

  • Posted on Apr 22, 2015 at 10:49 AM

    Hi can you be more clear?.Are you developing you own custom sdk component?? Thanks, Nithyanandam

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 11, 2015 at 05:51 AM

    This message was moderated.

    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.