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

No way to apply parameters to data retrieved #492

Open
ihrimech opened this issue May 5, 2022 · 3 comments
Open

No way to apply parameters to data retrieved #492

ihrimech opened this issue May 5, 2022 · 3 comments
Labels
Docs Issues with documentation

Comments

@ihrimech
Copy link

ihrimech commented May 5, 2022

Describe the issue
I need to apply sorting and filtering to a list of images. To create images as I need them, I've developed an extension that replicates the data from the worksheet but as images. Filtering with simple filters do work. Listening to the FilterChanged does the trick.
Having created parameters and field calculations to sort and filter I tried listening to ParameterChanged events but it doesn't change anything in the Datatable. Am I missing something ?

Version information:

  • Tableau version: 2022.1
  • OS: macOS Monterey
  • Browser Not Applicable
  • Version Any

Steps to reproduce :

  1. Create a worksheet containing Data
  2. create a float parameter and a calculated field that only keeps values under the indicated value for the parameter (filtering by maximum)
  3. create another parameter to sort the worksheet
  4. data in the worksheet is correctly sorted and filtered
  5. Problem : the data from the following code isn't neither filtered not sorted. It always gets back the same.
     worksheet
        .getUnderlyingTableDataAsync(logicalTableId, {
          maxRows: 100,
        }).then((dataTable) => { **// dataTable is the same here whatever parameter is changed**
     // ...etc
@johnDance
Copy link
Contributor

@ihrimech
It sounds like you want getSummaryDataAsync, which has the parameters, calculated fields, and sorting applied. getSummaryDataAsync returns the data that is currently in the viz.
Let us know if that doesn't work for you.
John

@ihrimech
Copy link
Author

Hello @johnDance,

Thanks for the tip. I'll get back to you once I put back everything in place to test it.

It might be helpful to have the information on documentation ?

@johnDance
Copy link
Contributor

We have asked our documentation team to add some more details and pointers in-between summary and underlying data.

@johnDance johnDance added the Docs Issues with documentation label May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docs Issues with documentation
Projects
None yet
Development

No branches or pull requests

2 participants