Hello,I wanna have a view wich displays documents within roles,when the person has the role Manager he can see all documents,but if he is a client he should see just his documents(documents with his name in the field “nomClient”.
So to do this i’ve used the formula below,but it doesn’t seem to work!!
SELECT(@If(@IsMember(“[Client]”;@UserRoles);form=“contrat_note”&@Name([CN];@UserName)=@Name([CN];nomClient);form=“contrat_note” ))
Any ideas??
Subject: Selection formula
Do you have an author field on the for? That would automatically do exactly what you are trying to do. Look in the Designer Help for more info.
Subject: RE: Selection formula
yes i have an author field in the form,but how can this be important??
Subject: RE: Selection formula
He means Readers field.
Subject: RE: Selection formula
No actually,i don’t have Reader field
Subject: Selection formula
You cannot build a shared view in Notes that will display different documents to different people. Everyone sees the same view index, and so the same documents.
You can use Reader fields on documents to hide documents from users who should not see them, and that will work with all views.
You can use Private views, so that everyone get’s their own view index.
Subject: Selection formula
Hi,
No luck, Designer Help says which the @UserRoles don’t work in view selection… 
You can use an embedded view and single category > look into Designer Help for more infos
or use reader/author fields > look into Designer Help for more infos
HTH,
Thierry