I can create an array column in a Google sheet with say Email 1 Email 2 Email 3…
I can then make this array column the row owner.
I was the trying to create an array from a Lookup or Join + Split column, but I can’t seem to allow that column to become the row owner. Am I missing something ?
My idea was to make the user who’s email is in a row the row owner, together with all the users that are marked Admin in the Profile sheet or something similar…
Computed columns are calculated locally, on each users device. Therefore, they can’t be row owners. This would be a little bit like shutting the gate after the horse has bolted.
To get what you want you’d either need to use roles (which are only available with Private Pro apps), or you’d need to add an extra email column for each of your admin users.
That makes sense, and I had already gone the way of creating email columns for each admin. This creates an issue though as the non-admin row owner can see the admin email addresses…
This also raised the issue as to how one can create array columns in Glide Tables as the method of numbering columns like in a google sheet doesn’t work in this scenario
There is a way to do this.
What you need to do is create a template column that creates a comma separated list of each of the column values that you want to turn into an array. You can then create an array from that by using a split text column.
But again, this couldn’t be used as a row owner as it’s a computed column. But it does have other uses - creating an image carousel, for example.
Yes, I had just done that to get the columns of owners built dynamically, and it works fine.
As I stated before, the one big gripe I have with this is that the non-Admin / public row owner thus potentially can see all the admin email adresses in his rows…
have a table that has no row owners - to store your admin emails (writing them in with buttons for your admin side) - table = admin (include a template column where e = email of signed in user
from the user side, make a relationship to admin table via the email to TP-column (so you find the row)
use the relationship through that row to lookup the admin email you need - maybe handing in user profiles because you can access the data everywhere
in a button (action off inline list, etc), pick up the admin emails, then write them into the row you need, into the column with row owners
and as needed, clear when the action is done
Should work / I do this in my app (just with roles)
Yes, the emails in the non-row owner table would be visible in ‘inspect’ - but it depends how this table is populated. I would have this table being written into and out of with buttons, so that it only contains temporary data.