Hi,
I have a line items table with records related to other tables via foreign keys:
------------------------------------------------------------
| pk_id | promo_date_id | promo_id | product_id | store_id |
------------------------------------------------------------
| 1 | 1 | 10 | 100 | 1000 |
| 2 | 1 | 10 | 100 | 1001 |
| 3 | 1 | 10 | 100 | 1002 |
| 4 | 1 | 11 | 101 | 1000 |
| 5 | 1 | 11 | 101 | 1005 |
| 6 | 1 | 12 | 100 | 1003 |
| 7 | 1 | 12 | 100 | 1004 |
| 8 | 2 | 15 | 102 | 1000 |
| 9 | 2 | 16 | 100 | 1006 |
...
I am showing, from the Promo_date table, a tabpanel with a list of related Promos. From there, I would like to show another tabpanel with all related unique products. Is there a way to achieve this result only using Servoy relations, without doing a SQL query with the DISTINCT keyword on record select/show? I’m thinking of performance improvements, and also down the line I will need to create reports with this information and would like to avoid putting in a sub-summary part just to make sure I only have one record per product. Any help would be greatly appreciated.
Thanks in advance,
Ben