Table Display - Different sets of data

I am wondering if it is possible to have a table and make it possible to navigate between different sets of data/queries? For example - table component - user can make table display data from Product table OR Sample table OR x table or y table without a join.

Sure.

Have something trigger an update of the table's props.data.

The problem you'll have here is that you'll have different columns and column formatting for each so you'd have to script that too.

I would be more inclined to use either a Tab View or a Tab Container and drop a specific table on each one. That also has the advantage that it sorts out navigation and allows you to add table specific information (title, date range, etc.) on each specific tab. Finally, it's intuitive to the user!

There are a couple ways you could do this. You could create a couple custom properties for you various data sets and switch the table's data binding between them with a dropdown or a radio group. You could also run the query though a script and pass the script whichever query you want based on your method of selecting.

Thanks I like this solution. Would you happen to know why when I make tab 0 an object and add a viewPath param and choose the view I am getting an error object found string expected.

You've created a Tab Container view. Since you want to embed a view in there you need to drop an Embedded View component onto that tab and select the view from the props.path dropdown.

Then go back and fix the root props.tabs.0. It should just be,
0 : My first tab
1 : My second tab
etc.

1 Like

Ok thanks