Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getSummaryDataReaderAsync return no data after using ui filters #541

Open
Oytoch opened this issue May 19, 2024 · 0 comments
Open

getSummaryDataReaderAsync return no data after using ui filters #541

Oytoch opened this issue May 19, 2024 · 0 comments

Comments

@Oytoch
Copy link

Oytoch commented May 19, 2024

The issue
Hello,
Dashboard UI Filters seems to break "getSummaryDataReaderAsync" function : No data returned

Context :

  • I use tableau server with virtual connection.
  • My dashboard have UI filter.
  • I have created an extension with a button that executes "getSummaryDataReaderAsync" at click.

At First, dashboard load ( with Filter cached or not) , the function retrieve correctly data, but when I filter with UI, no data found on the second click.

I think it is an issue based on virtual connection.

Version information:

  • Tableau Server 2023.3
  • Browser firefox or Edge (last version)

You can test with this code:

`document.addEventListener("DOMContentLoaded", function() {

    tableau.extensions.initializeAsync().then(async function () {
        document.querySelector(".btn-dl").addEventListener("click", async  () => {
            
            const dashboard = tableau.extensions.dashboardContent.dashboard;
            for (let index = 0; index < dashboard.worksheets.length; index++) {
                
                const worksheet = dashboard.worksheets[index];
                const dataTableReader = await worksheet.getSummaryDataReaderAsync(undefined, {
                    ignoreSelection : true,
                });
                
                // problem here totalRowCount = 0 but there is data ! 
                if(dataTableReader.totalRowCount ==0)continue;
                const dataTable = await dataTableReader.getAllPagesAsync();
    
    
                await dataTableReader.releaseAsync();
            }
            
        })
    } ).catch(err => {
            console.log(err)
            
    });
   
});`

Maybe my code is wrong ? Can I find more log somewhere ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant