hello…it´s me again ;-)
i had read here a little bit about access rights…but unfortunately this helps me not enough.
i want that only that person can see their document that had create it.
i save the current user in the form in a named field called "creator"
then i thought i have to add in the "onopenDocument" event something like this:
is this the right way? what have to place in where the three question marks are…the current form?
and maybe is it possible to generate a view restricted view ?
i find it out ;-)
return "You are not allowed to view this document."
but is there any way to restrict the view? maybe a searchform?
Yes, you must use a search form.
Views uses the index, and documents are refreshed in the index when they are saved.
So a view selection based on the current session (the current user or the current date for instance) makes no sense because this formaula is evaluated at save time, not when the view is openned.
Log in to post a comment.