<!--QuoteBegin-Tequilla+10:08:2007, 01:18 -->
<span class="vbquote">(Tequilla @ 10:08:2007, 01:18 )</span><!--QuoteEBegin-->короче, как я понял есть 2 поля readers:
$readers- Default read access из меню безопасность,
и просто readers - кот. нужно править формулой. смысл один и тот же а приоритет за 2-м .
я правильно все понял ??
[snapback]74951" rel="nofollow" target="_blank[/snapback]
[/quote]
Нет, не правильно. Есть поля, типа Readers. То есть, есть такой тип поля. Если ты не снимаешь галку в свойствах формы, то $Readers не создается вообще. Но ты можешь создасть свои поля такого типа с любыми именами. Соответственно, все, кто будут там указаны, смогут видеть этот документ. То есть, при нескольких полях эффект - куммулятивный.
Чтобы не мучаться еще раз со ссылками, вот
PART ONE: Readers Fields versus $Readers fields
A Readers (data type) field on a Form is not the same as the $Readers (Read Access list) field, although they may function similarly. Here is a basic summary of the difference between the two:
Readers Data Type Field:
1. Readers (data type) Fields control access of documents before they are created; restricts replication but DOES NOT affect the Access Control List (ACL) or the Security tab of a Document Properties dialog box.
2. The field flags Readers (data type) Fields read "SUMMARY READ ACCESS NAMES".
3. Readers (data type) Fields are visible in the design of a form and in the second tab of the properties box under the name of the particular readers field;
4. A document may have many readers fields. If there are multiple readers fields in a document, all entries from all the readers fields have read access to the document.
$Readers field ("read access" list):
1. The $Readers field controls access after documents are created. They refine the ACL.
2. The $Readers field flags read "SUMMARY", "SIGN SUMMARY" (before Refresh, explained in Part Two, III.
or "SUMMARY READ ACCESS" (after a Refresh);
3. The $Readers field is a Notes internal field;
4. There is only one $Readers field per document, although a document may have both readers field(s) and a $Readers field.
PART TWO: Creating or Changing Readers Fields and $Readers fields for one or multiple documents and for one or multiple users:
I. Before a document is created: "Readers fields"
The designer of a form or subform may insert a Readers (data type) field to limit the read access of documents created with the form. To populate the readers field with names, it is important to remember the following:
A. Create a new field and in the Field Properties dialog box:
1. Give the field a name;
2. Choose the field type as "Readers" with "computed" (for absolute) or "editable" value.
B. In the Programmer's Pane, select "formula" with a value that follows these guidelines:
1. Use the canonical name of users to have read access to documents created with the form.
2. Each name should be enclosed in parentheses ("").
3. Each name must be separated by a colon
( sign. A semi-colon (
will not work - only the last name of the list would be recognized.
EXAMPLE: "CN=User One/OU=Dept/O=Lotus":"CN=User Two/OU=Dept/O=Lotus":"CN=MyExcellentGroup"
These steps result in a Readers (data type) field, visible by its name on the second tab of the Documents Properties dialog box for each document created with that form or subform, These fields will have a field flag value that reads "Field Flags: SUMMARY READ-ACCESS NAMES."
II. After a document has been created
It is possible to change the read access to a document after a document has been created by following these steps:
1. Right click on a document in a particular view.
2. Switch to the Security (Key) tab.
3. Deselect the default read access "All readers and above" option.
4. Select (placing a check mark next to each) from the list of readers that you wish to access a document.
This will automatically create a Read Access list, or a $Readers field, for this particular document. It can also be modified at any time by users with proper access to change the read access of documents (Author access or above to a database or documents). For user without reader access to the document, these documents will not be visible although the number of documents in the database will reflect the actual number of documents.
III. To change or create the read access value of many documents
An author or higher may run an agent to change or create the read access value on selected or all documents in a view, folder, or database. To do this:
A. Create a new agent.
1. Give it a name.
2. Select how and when you want the agent to run, (manually, scheduled, etc.).
3. Select the documents on which you want the agent to run (all, selected, etc.).
4. Select "Formula," and in the Programmer's pane, follow steps 1,2,3 from Part Two, I. B (above), using "FIELD $Readers:=" before it to create or replace the value of the preexisting or nonexistent Read Access list ($Readers).
EXAMPLE: FIELD $Readers := "CN=User One/OU=Dept/O=Lotus":"CN=User Two/OU=Dept/O=Lotus":"MyExcellentGroup";SELECT @All
This will create a $Readers field or alter a preexisting one to reflect the names of users you wish to access particular documents in a database. The field flag value or this $Readers will read "SUMMARY" or "SIGN SUMMARY" only. To change this to "Field flags: SUMMARY READ ACCESS, a "refresh" agent must be run on the documents.
B. Create a second new agent.
1. Give it a title of "Refresh".
2. Select how and when you wish it to run: "Run Once (@commands may be used)".
3. Select the documents on which you wish it to run.
4. Select "Formula," and in the programmer's pane, enter the following formula:
@Command([ToolsRefreshAllDocs]); SELECT@All
Refer to the "Domino Designer Programming Guide Volume 1: Formula Language" for additional information on the different parameters for all or selected documents. This agent has been tested and does work the same whether the final command reads "@All" or SELECT@All.)
The Read Access agent creates or changes a $Readers field (Field Flags: SUMMARY) and the Refresh agent refreshes the $Readers property of Field Flags:SUMMARY READ ACCESS. Note that the Security tab of the Document Properties dialog box has also changed to reflect the names listed in the read access list of the $Readers field.
А прикольно смайлики получились в документе.