View C отбором @username

  • Автор темы LIGHT
  • Дата начала
L

LIGHT

#1
Делаю вьюшку и ограничиваю отбор документов формулой
SELECT Form = "Doc" & (@UserName=@Name([Canonicalize];WhoLN))
В этой вьюшке видят док все кто прописан в нем как читатель а мне надо что бы его видел только тот чье LN имя есть в поле WhoLN.

Подозреваю что это связано с форматом самой вьюшке, у нее нет иконки (ключик). В друх аналогичных БД видел, как такое сделать?
 

morpheus

скриптописец
07.08.2006
3 915
1
#2
Shared, private-on-first-use views

Shared, private-on-first-use views
A "Shared, private-on-first-use" view begins as a shared view and becomes a private view as soon as a user accesses and saves the view. These views give you a convenient way to distribute personal views to multiple users. You usually create this type of view by using @UserName to customize the display for each user.
Note that this is the only way to make a view work with @username, because the view selection is only parsed when the view is generated. Thus, if Tom opened a shared view that keyed to @username, all of Tom's documents would display. But, if the view is still open when Jay accesses it, Jay sees all of Tom's documents, and does not see his own. So, to avoid this conflict, designate the view as "Shared, private on first use" when using @username in the selection formula.
After a user saves a shared-to-private view, the user's copy of the view no longer inherits design changes. For example, if you add a column to the view, anyone using a private version of the view won't see the new column. To obtain design changes, users must delete their private versions of the view and open the shared-to-private view again.
Shared-to-private views are not a security measure, as they do not protect data. If you create a shared-to-private view that omits certain documents, a user can still create a private view that includes them.
Shared-to-private views are stored in the database as long as they are shared. After the first use, Domino uses the "Create personal folders/views" option to determine where to store the view.
 
30.05.2006
1 345
11
#3
Делаю вьюшку и ограничиваю отбор документов формулой
SELECT Form = "Doc" & (@UserName=@Name([Canonicalize];WhoLN))
В этой вьюшке видят док все кто прописан в нем как читатель а мне надо что бы его видел только тот чье LN имя есть в поле WhoLN.
Опять детские болезни...
Shared вьюху генерит сервер. Что для него будет @UserName-ом? Имя сервера?
Вот для private вьюхи такой селект смысл имеет...