# Table Display - Different sets of data

**URL:** <https://forum.inductiveautomation.com/t/table-display-different-sets-of-data/83619>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [December 29, 2023, 6:56pm UTC](https://forum.inductiveautomation.com/t/table-display-different-sets-of-data/83619 "2023-12-29T18:56:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![HelloWorld](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@HelloWorld](https://forum.inductiveautomation.com/u/HelloWorld)\
**Post date:** [December 29, 2023, 6:56pm UTC](https://forum.inductiveautomation.com/t/table-display-different-sets-of-data/83619/1 "2023-12-29T18:56:18Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [December 29, 2023, 7:17pm UTC](https://forum.inductiveautomation.com/t/table-display-different-sets-of-data/83619/2 "2023-12-29T19:17:57Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [December 29, 2023, 7:20pm UTC](https://forum.inductiveautomation.com/t/table-display-different-sets-of-data/83619/3 "2023-12-29T19:20:27Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![HelloWorld](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@HelloWorld](https://forum.inductiveautomation.com/u/HelloWorld)\
**Post date:** [December 29, 2023, 7:40pm UTC](https://forum.inductiveautomation.com/t/table-display-different-sets-of-data/83619/4 "2023-12-29T19:40:57Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![HelloWorld](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@HelloWorld](https://forum.inductiveautomation.com/u/HelloWorld)\
**Post date:** [December 29, 2023, 7:43pm UTC](https://forum.inductiveautomation.com/t/table-display-different-sets-of-data/83619/5 "2023-12-29T19:43:07Z")

</div>

![Screenshot (8)](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/2/c29fcff7ba27e7d8786782b191c40b68f8237d74.png)

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [December 29, 2023, 7:54pm UTC](https://forum.inductiveautomation.com/t/table-display-different-sets-of-data/83619/6 "2023-12-29T19:54:24Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![HelloWorld](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@HelloWorld](https://forum.inductiveautomation.com/u/HelloWorld)\
**Post date:** [December 29, 2023, 7:54pm UTC](https://forum.inductiveautomation.com/t/table-display-different-sets-of-data/83619/7 "2023-12-29T19:54:57Z")

</div>

Ok thanks
