extensions-api
extensions-api copied to clipboard
No way to apply parameters to data retrieved
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 :
- Create a worksheet containing Data
- create a float parameter and a calculated field that only keeps values under the indicated value for the parameter (filtering by maximum)
- create another parameter to sort the worksheet
- data in the worksheet is correctly sorted and filtered
- 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
@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
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 ?
We have asked our documentation team to add some more details and pointers in-between summary and underlying data.