Trying some basic SQL but failing to get it working in Appsheet.
I have three tables: ITEMS, REMARKS, PICTURES. The idea is that an ITEM can have multiple REMARKS and REMARKS can have multiple PICTURES.
Now I want to show all PICTURES that belong to an ITEM. In SQL i would just do two joins, but not sure how to achieve this in Appsheet. I can’t get the formula of the REF_ROWS to work.
Not exactly sure in SQL. But if this was in Google Sheets you’d create a column called Pictures[Item] with a formula something of [Remarks].[Item]. That will cause a virtual column called Item[Related Pictures] to appear. For this to work I’m asssming that the Ref column in Pictures which points to the parent table (Remarks) is called [Remarks]. Ditto with Remarks[Item]
Now I need to figure out how to get the image to show instead of just getting the RowID of those pictures. But I’ll look into that later this week. Thanks a lot Steve!
First, make sure the virtual column created as above is of type List with an Element type of Ref and a Referenced table name of PICTURES.
If the virtual column added as above is named Related PICTURES, add a second virtual column with an App formula expression of:
[Related PICTURES][picture]
Replace picture with whatever the name of the column in the PICTURES table contains the Image you want to display. Make sure this virtual column is of type EnumList with a Base type of Image and that Allow other values is ON.