I am stuck on this for a while. Any guidance to write this expression would be helpful.
I am trying to restrict the users to view a list of projects from the PROJECTS table if these projects are in the comma-separated list in the STAFF table.
Users should see related projects
Reference should work.
With the formula below, I get yellow exclamation marks. If I chose a key and a label both for PROJECT_NAME exclamation marks are disappear but then I would have duplicates ID’s in my DATA table.
DATA[PROJECT] column is ref type to PROJECT and Valid_if expression is.
I’ve noticed that SPLIT() seems to “remove” the ref nature of a piece of data, in order to get it working you’ll have to use a dedicated SELECT() to create the list with the appropriate type.
@MultiTech_Visions, Thank you for your time, and suggestions. I have created a user slice and played around with the expression to see if it works. But it seems that the problem is insoluble for now.
It’s solvable - just a matter of getting the right formula down.
Earlier you mentioned
Atlas:
“,” - brings the correct list
Try that for your split formula, instead of what I proposed.
If that doesn’t work, could you show us the list of projects that’s inside the STAFF table? It’s from this list that we need to compare things, so it might just be some simple technical thing.
I thought the same but here is the problem that I don’t know how to solve.
I have constructed this list to have a dependent drop-down list based on project and block selection. I have 19 projects and each project has 20 - 40 blocks. So I have recurring project names in total 728 rows.
Would it be work if I construct another project list just contains the 19 project names?
And can I get working inline views by projects also by doing this?
In the projects spreadsheet, I had reiterant project names. I thought I could not make ref to all rows in that spreadsheet.
Please look at the picture below.
For that reason, I added another sheet called PROJECT_LIST that includes just the project names.
Now, I made this and it is working. @Steve & @MultiTech_Visions thank your help.
Now in the spreadsheet in the DATA sheet, I have references of the project names which I don’t want as a result. I use app to collect data, for me the most important thing is spreadsheets. On the spreadsheet, I want project names.
If it is possible, I want to show users, the projects in which they are related, and project names in the backend data.
f this is the case, then I would suggest you add an additional column into the mix - one to hold the keys, then another to hold the names.
Thank you so much, Matt, your suggestion was brilliant.
This idea helped me a lot, but I made a little bit different. As you suggested I added in DATA table a project_id column, so the user just selects this and it writes backend the references, and for the project name I used a lookup formula and hide it in the forms. User limiting, references, and name in backend data all working.