Hi I am trying to make only part of data readable or editable for certain users that gets their acces type assigned after deploying. (the acces type is also created by the admin.)
I have set it up in a way that the attributes that are assigned to a battery also have an atribute acces type.
my idea is to compare the acces type and if they match the user can read that attribute
so in figure 2 (ignore the pizza part) an user who has the main(tenance) acces can only see nr 2 for all batteries and Authority can see 3 to 7. ultimatly i want some atributes to be seen by multiple acces types and some only by one. I tried this in the line with my cursor if there is a better aproach please let me know
I think that a containment check (lookup) is what you are looking for:
can-read: >'Attribute'.'Access Types'[ user .'Access Type' ]

