Вы находитесь на странице: 1из 71

Lotus Domino/Notes R5.

, .
: !
LOTUS DOMINO/NOTES R5. ,
............................................................................................................................................................1
: ! ....................................................................1
1.

LOTUS NOTES .................................................................................3

2.

....................................................................4
2.1.
2.2.
2.3.
2.4.
2.5.
2.6.
2.7.
2.8.
2.9.
2.10.
2.11.
2.12.
2.13.
2.14.

3.

.................................................................................................................................5
...................................................................................................................................................5
.....................................................................................................................................................6
...........................................................................................................................................6
...........................................................................................................................................................6
.........................................................................................................................................................7
..................................................................................................................................................7
......................................................................................................................................7
...................................................................................................................................7
...................................................................................................................................8
.............................................................................................................................8
............................................................................................................................8
...........................................................................................................................................8
....................................................................................................................................................9

.........................................................................................................................9
3.1.
...........................................................................................................................................................9
3.2.
................................................................................................................................................9
3.2.1.
...................................................................................................................................10
3.2.2.
....................................................................................................................................................10
3.2.3.
...................................................................................................................................11
3.3.
...................................................................................................................................................11
3.4.
..................................................................................................................11
3.5.
....................................................................................................................12

4.

...................................................................................................................12
4.1.
..........................................................................................................................13
4.1.1.
lotus Notes ..........................................................................................................13
4.1.2.
web ..................................................................................................................................13
4.2.
..................................................................................................................13

5.

............................................................................................................14

6.

........................................................14
6.1.
........................................................................................................................................................16
6.1.1.
Form Properties ....................................................................................................................................18
6.1.2.
.......................................................................................................................21
6.1.3.
.................................................................................................................................23
6.1.4.
............................................................................................................................23
6.1.5.
..........................................................................................24
6.1.6.
.....................................................................................................................................26
6.1.7.
.....................................................................................................................................26
.........................................................................................................................................................................27

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

...............................................................................................................................................................30
..........................................................................................................................................30
.............................................................................................................31

6.1.8.

Hotspots ................................................................................................................................................34

Action hotspot ......................................................................................................................................................................34


Button...................................................................................................................................................................................36
Link hotspot..........................................................................................................................................................................36
Text Pop-up ..........................................................................................................................................................................36
Formula Pop-up....................................................................................................................................................................36

6.1.9.
...........................................................................................................................37
6.1.10. () .......................................................................40
6.2.
.......................................................................................................................................................41
6.2.1.
.............................................................................................................................44
6.3.
.........................................................................................................................................46
6.3.1.
()......................................................................................................46
...........................................................................................................................................................................47
......................................................................................................................................................................48
.................................................................................................................................................................49
...........................................................................................................................................50

6.3.2.

..........................................................................................................................53

.............................................................................................................................55

6.3.3.
................................................................................55
6.3.4.
View......................................................................................................................................56
6.3.5.
Form Formula.......................................................................................................................................56
6.3.6.
, ...................................................56
6.4.
.......................................................................................................................................................57
6.4.1.
..................................................................................................58
6.4.2.
, .............................................................58
6.4.3.
............................................................................................................59
7.

LOTUS SCRIPT ..............................................................................................................................................61


7.1.
.......................................................................................................................61
7.1.1.
....................................................................................................................................61
7.1.2.
....................................................................................................................................61
7.2.
LOTUS ............................................................................................................................................63
7.2.1.
...................................................................................................................68
7.3.
.......................................................................71

8.

...................................................................71
8.1.
8.2.
8.3.

9.
10.

....................................................................................................................................71
...................................................................................................................................................71
................................................................................................................................................71
FORMULA LANGUAGE...............................................................................................................................71
LOTUS WORKFLOW - ...................................................................................................71

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

1. lotus Notes
, google.com lotus ,
, , - ,
() .
, Lotus.
- . ,
, , ,
.
.
, - XML,
= .
, .
? ? ! !
.
- .
. , ,
, - . ,
lotus-RDBMS,
, RDB storage
.
. ,
, ,
.
(), R7 DB2,
.
,
, , , ,
, , . ,
.
Lotus, , . :
, .
. :
, . ,
. ,
,
.
Lotus?
domino, .
. ,
, .
,
, ,
.
, ,
, ,
.
,
.
.
.
. ,
. ,
.
Lotus Notes, , .
,
.
(C) Alena S Fedoseeva/SoftAriA, , .
.. .
.

,
. , ,
,
.
.
lotus .
, ,
, .
, . , ,
. ,
. , Lotus
- . ,
.
- .
.
.
, Lotus . Domino SMTP ,
.
Lotus , , ,
. , Domino.
Domino HTTP . , HTML
, .
Lotus , web-. , ,
Lotus- , OLE Lotus
web-.
Lotus
, , OLE ,
Lotus MS Office .
Lotus- RDBMS ( ),
, ODBC
RDBMS lotus script & formula language.
Lotus ,
.

2.
. , .
.
. , .
:

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.

2.1.
,
.
, UniversalID 32 ,
,
noteID 8- , ,
..
( , -
, ). -
. ,
, 20, ,
, . casesensitive. , , , ..
. , .
, ,
, ..
.
:
, Office, ,
. office= .
, office,
.
, Office
office
.
,
. . FORM
, . (
) , ,
- .

2.2.
- ,
. , ,
(C) Alena S Fedoseeva/SoftAriA, , .
.. .
.

, , .. ,
.

2.3.
, , ,
,
(, , , , ) .

2.4.
- . :
1.
2.

(
, select form=employee & sex=male
, form employee sex male)
, ..

2.5.
, ,
. , ,
-
- .
. ,
FolderReferences .
Lotus script, , Folders=NotesDocument.FolderReferences.

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

2.6.
, . , - , .

2.7.
, , ,
, , .

2.8.
, Outline.
, ()
, IBM -
.
, ,
- , .
:

, ,
, ,
Notes .

2.9.
, , ,
,
. (shared actions) Other (.
1)

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

2.10.

.
( ). ,
.

2.11.

Lotus script Java,


, , , ,
, , , , ,
. Use < >,
. , , ,
.

2.12.

, ,
1 , ,
.

2.13.

Lotus -. ,
, .. .
. Lotus script Formula language.
Database script, Other ->
Database script

:
Sub Postopen(Source As Notesuidatabase)
End Sub
- , .
, .
, .

, - .
Sub Queryclose(Source As Notesuidatabase, Continue As Variant)
End Sub
- , , . , ,
,
. Query Continue , .
(C) Alena S Fedoseeva/SoftAriA, , .
.. .
.

. Continue=False .
;))
Sub Querydocumentdelete(Source As Notesuidatabase, Continue As Variant)
End Sub
- .
.
Sub Postdocumentdelete(Source As Notesuidatabase)
End Sub
- . del 1
, . F9 ,
.
,
. , , ,
. .

2.14.

Other About database & Using Database


, , , .
Help, .

3.
. !
, Notes :
1.
2.
3.
4.
.
. , ,
.
.
, :

3.1.
- Security ,
, , , ,
(, ).
, . ,
, , .

3.2.
ACL Access Control List. File->DatabaseAccess Control. :

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

, Lotus Notes,
,
.
.

3.2.1.
1.
2.
3.
4.
5.
6.
7.

No Access . ,
read/write public documents, .
Depositor (
)
Reader ,
Author Create documents,

.
Editor ,
Author
Designer editor- +
Manager , + Access Control List ,
, , .

3.2.2.

. Read/Write public documents


, No Access Depositor
.
available to public access users $PublicAccess=1.
, :
1. Create documents .
Author, .
2. Delete documents .
, ,
Del, . ,
, , - del ,
.
3. Create personal agents ,

(C) Alena S Fedoseeva/SoftAriA, , .
.. .
.

4.
5.
6.
7.
8.
9.

Create personal folders/Views



Create shared folders/views

Create Lotus Script/Java agents
,
Read public documents
Write public documents
Replicate or copy documents

3.2.3.

- , .
. ,
, , , ,
. ,
, - . 3
:
1. [CreateList]
2. [ReadList]
3. [EditList]
, ,
, . ,
, .
, - ,
.

3.3.
- .
Authors & Readers.
, , , ,
.
, ,
.
Readers
readers .

3.4.
, , ..
.
, , , .. , ..


. , , $Readers
. , , form
(C) Alena S Fedoseeva/SoftAriA, , .
.. .
.

,
, $Readers .
.
, , ,
, , , , ,
, , , .

:

, , ,
, ,
True , .
, ,
.
, ,
,
, , .

3.5.
, , 2
. .
( , ),
, . , , ,
,
. ,
, , , .

4.
lotus .
- , .
, - , , ,
, , . , lotus Notes
Notes, , web. ,
Domino http , html
http-. Http- java script.
,
,
- , Designer Help, Lotus
Designer.

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

4.1.
4.1.1.

lotus Notes

, 2 query- Post-. - ,
,
, . ( ,
) Continue (
), - ,
. Continue=False
, , / .
Post- .
:
1. QueryOpen .
, . ,
- , ,
(ID), ,
.
2. PostOpen , .
.
,
(call source.refresh).
3. QuryModeChange
.
, - .
4. PostModeChange .
5. PostRecalc . ,
F9 .
6. QuerySave .
, -
. .
7. PostSave ,
- . ,
.
8. QueryClose .
- QueryOpen .

4.1.2.
1.

2.
3.
4.
5.

web

WebQueryOpen Lotus
.
,
Lotus script, Java, formula language, etc.
http ,
.
WebQuerySave WebQueryOpen,
.
JSHeader java script,

OnSubmit java html- onSubmit.


, java script
HTML-. ,

4.2.
, . ,
(, web- ), ,
:
1. Before new mail arrives . ,
, - . ,
.
2. After new mail has arrived , .
,
.
3. If document have been created or modified -

4. If documents have been pasted .
.
(C) Alena S Fedoseeva/SoftAriA, , .
.. .
.

5.

,
. ,
, , , .
, ,
RunOnServer .
.

(
).
On schedule (
, , ..)

5.

Lotus Notes.
1. Lotus script -
Lotus, BASIC.
2. Formula language , 2- ,
, , .
. Lotus script. ,
, .
, .
3. Java Java . java ,
Lotus. Visual Age for Java
Lotus. , (, Lotus
, Lotus)
Java .
4. Java script
5. Simple action ,
.
6. C API C
Lotus. ( ,
, .)

6.

. .
, SAD Software Architecture document-.
:
1.
2.
3.

4.

5.
6.

( )
, ,
.
, . ,
, ,
, , .
- ( )
. ,
,
Lotus workflow, .
, .
.

, , .
-> ,
.
.
,
.

, :

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.


?

( - , )

()
()
()
()
()
()

1
0..*

()
()
()
()






()
()
()
()
()
()

- file->Database->New ,
.nsf . ,
.
Lotus
.
, .
, :
1. [Supervisor]
2. [Reader]
3. [MemberCreate] (, )
(C) Alena S Fedoseeva/SoftAriA, , .
.. .
.

4.

[MemberRead] ,

5. [MemberEdit] ( )
6. [VoteCreate]
7. [VoteRead]
8. [VoteEdit]
9. [BillCreate] ( )
10. [BillRead]
11. [BillEdit]
.
:
1. , ,
. , .
2.
,
file->database->Access control list Roles:

, .
! ,
, CASE-sensitive.

6.1.
, , .
, .
. .
, .
Lotus 70
, , .
, :
. Forms
New form
, 4 :

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

, .
, , ,
, .
, . ,
.
,
.
, ,
, - Design - > Form properties.

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

6.1.1.

Form Properties

. ,
. .
, form .
Type , . .
Response Response to response, .
.
- Create
.
: ,
(, .)
Create.

.
:
1. Default database form FORM
, (),
.
2. Store form in document ,
. , ,
form , .
.
3. Disable Field Exchange 6 Lotus,
, ,
. ( !!!!!)
4. Automatically refresh fields
. .
, .
. ,
, ,
, .
5. Anonymous form
.
.
6. Merge replication conflicts
. . , 2 ,
, 15 .
.
? ,

. UniversalID ( 2-
).
, ,
. ,
.
(C) Alena S Fedoseeva/SoftAriA, , .
.. .
.

, . Control-S.
form properties:
, , ,
web.
1.
a. Formulas inherit values from selected documents
,
. , ,
, .
.
b. Inherit entire selected document into rich text field
.
2.
a. Automatically enable Edit mode
. , ,
.
b. Show context pane ,
(
) , .
3.
a. Present mail sent dialog .
4. Web
a. Treat document contents as HTML HTML,
,

b. Generate HTML for all fields ,


HTML HTML .

,
, frameset-.

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.


, Auto Launch .
, Lotus .
, , OLE-, URL.
. Lotus MS Excel :

,
. ,
(C) Alena S Fedoseeva/SoftAriA, , .
.. .
.

Do not tile graphic


.
,
, ,
.
.
.
,
, .

, [Supervisor], [Reader], [MemberRead] [MemberEdit].


[MemberCreate] [Supervisor].
, .
, . ,
, , .
, .

6.1.2.

,
,
, .
- . ,
Form ,
. , ,
, Action bar:

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

.
, , :

,
. Edit document,
. 2
:

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

, .

6.1.3.

. ,
, Window Title:

Action->Preview in Notes
.
.
.
,
, ,
, - (, ),
- .
, ,
.

6.1.4.

, Resources\Subform . Design properties


.
Create-> Subform .
, | OtherInfo. ,
, .
(C) Alena S Fedoseeva/SoftAriA, , .
.. .
.

6.1.5.

Create->Table. ,
, , 2 (
), .

, Okey, Lotus 8 3
. , . ,
, . ,
, .
, ,
, Table->Properties .
:


, , .
, ,
, Lotus ,
, . .
, ,
. Cell -> Width.
, ,
.
.
, , .
.
(C) Alena S Fedoseeva/SoftAriA, , .
.. .
.

,
2- 3-.

.
, ,
, HTML
<table>, <tr> <td>.
, ,
.
, Table (insert, append,
delete). , , ,
.
,
, ,
.

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

6.1.6.

.
Text->Properties.
, , , .. ,
, , .
, .

,
, True
.
-.
:

, , , Table >Delete selected rows.


.

6.1.7.

3- ,
, ,
.
, Create> field. . .

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

, , .
- , ,
.
.
1. , .
2. ,
. , ,
, ,
check box & radio button, .
3. ,

ACL , Editor.
4.
5. -, ..
6. ( , , - )
7. HTML web

Text , . :
32 . , -
- , ,
, , .
,
, , ,
.
Date/Time .
Lotus
. .
Number .
.
.
Dialog list
( ):

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

, ,
. 2 .
, , . dialog list 2-
:


. , , :

,
.

(, , , ).
username .
(C) Alena S Fedoseeva/SoftAriA, , .
.. .
.

,
Access Control List (ACL) .
:

, , ,
.

Checkbox , .
.

,
2- display -> borer style
Radio button Checkbox, . ,
.
List box , , ,
. ,
.

Combobox ,
, , ,
1- Allow multiple values,
,
multiselection
RichText , , 2 , ,
, , , , .

. !!!
!
Authors .
, ,
. , , ,
.
Names , . Lotus
, .
CN=Alena S Fedoseeva/OU=lialialia/O=SoftAriA (
, ) ,
, .
Readers Authors, .
( \,
). ,
, Reader .
Password , , .
.
,
. .
, , Document properties.

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

, .
, , .


, .
1 Allow multiple values.
. . . 3
:

, , .. , ,
, Lotus Script.


, ,
.
, (,
,
.)
, :

, ,
. @UserName,
Lotus Notes.
,
. ,
.
, , .
, , , ,
. editors, Allow multiple values,
Authors ,
[MemberEdit]:[Supervisor]. ,
. .
!
, ,
.
.

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

,
, , Notes web.

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

, . ,
Editable. , ,
, () . ,
, Computed *. 3 :
1. Computed ,
. . ,
- @UserName,
,
. , .
. .
2. Computed for display
. .
, ,
. 2
, ,
. Computed for display,
, .
, , ,
. .
3. Computed when compose 1 .
.
. - . , , ,
.
.
. Tab
. 1,2,3,4,5,6,7.
.
.
,
@created:

Design->Preview in Notes:

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

, Native OS Style, Notes style.


, ;)) , , CntrlXCntrlV
, .
$UpdatedBy, -
. .
, ,
. ,
Computed for display .
:

,
, . -1 .
$UpdatedBy. ,
.
, computed for display,
@modified.

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

.
. Rich text. File->Attach
(Import), , 2
, .
, rich text, editable.

6.1.8.

Hotspots

, Create->
Hotspot->button.
, . ,
.

Action hotspot
Create->Hotspot->Action hotspot. ,
. .
. (Create -> Image
resource), .

action hotspot. , hotspot,


Hotspot properties.
2 .
. :

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

hotspot :

Show border around - .


.
, Hotspot,
, Lotus script & simple action lotus,
Java script web. ,
, ,
:

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

hotspot, :
@Command([EditGotoField];"attach");
@Command( [FileImport] )
hotspots ,
, , ,
.
preview Notes. .
- hotspot-:
Button
, , ..
, lotus script, simple action java script
Link hotspot
- URL, ..
Text Pop-up
, hotspot

Formula Pop-up
.
. .
. -
, .
. -
.

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

.
.
3 . , .
, . .
,
.
,
. .
.
.
, 2
.
.
, , .
computed for display,
, , .

6.1.9.

, Computed Text
.

, .
, FirstName, , MiddleName
, Lastname.
FirstName & Lastname .
Create-> Computed text.
, . ,
. 2 1 .
create->Table.

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

.
- 1 . ,
. , .
2 0- .
:

1 Fit to Window
2 , .

.
1 .
(C) Alena S Fedoseeva/SoftAriA, , .
.. .
.

,
.
:

.
1- , ()
.
- 2

. ,
.

.
4
. :

.
3 .
, , .

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

, .

6.1.10. ()
(
) Input
Translation & Input Validation (
).
, ,
. , , @trim(FirstName), @trim(Lastname) &
@Trim(MiddleName) .
.
.
1- compute after validation

.

, :

@if(; , ; ,
), .
@Failure
.
@success, , .
LastName. ,
FirstName, LastName. ( ,
)
. ,
Names, ,
:

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

2 display entry helper button. preview


.
,
, .
percent:

2 .
,
. .
, Radio button ,
, - .
. ,
@if(status=;;status)
hotspot-button,
. , .
- .
, .
.

6.2.
, . , ,
? ?
.
.
. ( ,
, ,
, , , 10,
).
,
.
, ( ).
, create -> action.
(Untitled) ,
, 2 .
( ),
, , .
Lotus , ,
, . (
, )
(C) Alena S Fedoseeva/SoftAriA, , .
.. .
.

. .
? ! , preview .
- ? !
, ,
status= , .

!
, :

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

,
. !
. .
? ,
.
, , (,
):

status , ,
, field.
:=.
.
tmp history.
tmp1 .
\,
@Username .
history (, ) ,
.
, .
Preview ,
.

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

.
,
.
:

!

, ( ).
. :
, true ,
@Isdocbeingedited , , @IsdocBeingSaved- ,
. ,
,
.
@IsDocBeingSaved & @trim(LastName)=;

6.2.1.


, , .
, ,
. ,
, . .
, :
1.
2.
3.
4. .

. ,
Editors.
10 10 , ,
:
Tmp1:=@trim(@replace(editors;@UsernamesList;));
@if(@elements(editors)>@elements(tmp1);@false;@true)
(C) Alena S Fedoseeva/SoftAriA, , .
.. .
.

, :
1. ,
, - @userNamesList
2. editors , , .
3.
4. Replace
,
5. replace @Trim,
.
6. , - editors
, @trim(@replace()). ,

2 .
, 4 .
Shared actions Untitled ,
create -> shared action.
.

, , .

. @command([FileCloseWindow]).
(C) Alena S Fedoseeva/SoftAriA, , .
.. .
.

.
, Create->Insert Shared
action . .
, (
), . :

, , ,
, .
, 1
. , .
:

, .

6.3.
,
.

( 100 ) .
.
.

6.3.1.

()

,
.
views New View:

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

, , ,
, , .
?


:
1.

2.
3.
4.

5.

Shared , . ,
, . ,
,
. , ,

. ,
, .
.
Shared, contains documents not in any folder ,
, .
Shared, contains deleted documents Soft deletion
,
.
Shared, private on first use , -
,
. ,
.
, , . Author=@UserName
,
. , ,
, ,
.
, ,
,
.

Shared, desktop private on first use ,
(desktop.dsk ) (
) , ,
.

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

6.

Private . ,
. ACL
, desktop.dsk


, . Design->View Properties.
, , .
, ,
. ,
- , :

Lotus, (
) , .
, 2- :

1.
2.
3.

. frameset,
, . ,
.
, .
.
, .
, ,
, , ,
. .

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

4.
5.
6.

, ,
( 1 , ,
(, ))
View ( )
2

, .
, :
1.
2. ( ,
)
3.
4.
.

5. ,
( - (
))
6. , .
:
1.
2. ,
.
3.
4. , ,
, , ,
35 , . 1
, , , ,
5 , 5
. 2- 5 .
, ,
- .
5.
, web,
. ,
: [MemberCreate]:[MemberRead]:[MemberEdit]:[Reader]:[Supervisor]
,
.

, .
:
SELECT + , .
, , .
(C) Alena S Fedoseeva/SoftAriA, , .
.. .
.

, select form=member,
, select form=member &
status=
, View Selection
( ).
:


( , ,
, .), , ,
. - ,
, , .
, . :
1.
2.
3.
.

,
. , .
, .
, :

,
. Simple function,
, . , ..
, weight
.
weight, (2
) # Percentage (value*100)

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.


3-6, 7
web.
!
Notes , 2
, - ,
. , .
.
( , ):

1.
2.
3.
4.
5.
6.

7.

,

,


, ,
-.
, -
, . , ,
, .
, .
? -
.
Lotus
. ,
.
, .
, .

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

8.

/ ,
2 , :

, ,
..

, :

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

1.
2.

3.
4.
5.
6.

7.

, . ,
, ,
, .
. - , ,
,
. ,
1 , .
accent sensitive
- 2- ,
, - .
( ,
), 1 , ,
.
5

, ,
. ,
N , ,
..
, ,
( ).
. , -
, , 1
,
, :

3-
4-
5-
6-
7 ,
web.

6.3.2.

, , .
. .
( ) . Lotus
- :
$REF, UniversalID .
, Lotus- REFERENCE, . ,
, 2- Show
response documents in hierarchy, Lotus ,
$REF. Response Response to Response
,
UniversalID , , .
:

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

:
,
.
, .
, 2 . 2
. Response Create.
action->preview in notes.
.
:
SELECT form="voting"
. create->
. , .
? .
? , ,
: SELECT form="voting" | @isResponsedoc
voting ( )
.
SELECT form*="voting":"bill". - ,
voting bill. *= ,
1-

.
. ,
, , .
Show responses
-:

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

,
, , .
, Show
twisty when row
2- , , ,
2- , ,
.
. ,
, .

,
.
? $REF.
. ,
, HeadID & DeptID .
, .
.
UniversalID- . UniversalID ,
Reference . ,
Lotus script. , 2
UniversalID- .
, $REF,
, , :
DEFAULT $REF:=HeadID;SELECT (form*="department":"cposition") & breaked!="1"

6.3.3.

( ) . , ,
- 175 ( Designer Help), .
, Image resources
.
(C) Alena S Fedoseeva/SoftAriA, , .
.. .
.

6.3.4.

View

, , .

1.
2.
3.

QueryOpen ,
PostOpen
RegionDoubleClick ,

4. QueryOpenDocument
,
, ,
continue=False, .
5. QueryRecalc ,
6. QueryAddToFolder
7. QueryPaste
8. PostPaste -
, , .
9. QueryDragDrop Drag & Drop -

10. PostDragDrop
11. QueryClose

6.3.5.

Form Formula

, Form Formula. ,
, FORM
. ,
( Store in document). Form formula
form.

6.3.6. ,

. ,
.
, . ?
, . dialog List, ,
.
2 Allow values not in list
.
(C) Alena S Fedoseeva/SoftAriA, , .
.. .
.

2 Use formula for choices ,


, . ?
, .
, @dbcolumn(:NoCache;@dbname;
; ), ,
@Unique(@dbcolumn())
(by Countries) (by Cities) , ()
,
@unique(@dbcolumn(:NoCache;@dbname;(by Cities);1))
@unique(@dbcolumn(:NoCache;@dbname;(by Countries);1)).
.
View->goto.
, shared view, select form=member
, .
:

2
.
.
2 ,
:

6.4.
, ,
, , Lotus script .
.
, .
.
( Agents->New agent) :
1. |
2. (
)
3.
4.
5.
6. , , ,
, ,
.. Options, Schedule, Add Search

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

6.4.1.
1.

Manually from action menu , (Action)


. :
Dim session as new NotesSession ,

Set coll=session.currentDatabase.UnprocessedDocuments

2.

3.
4.
5.
6.
7.

, , ,
, Which documents should it act on
Manually from agent list , .
. ,
Dim session as new NotesSession
Set agent=session.currentDatabase.GetAgent(Ulialia)
Call agent.run call agent.runOnServer
, ,
:
NoteID. , call
agent.runOnServer(doc.NoteID)
:
Dim session as new NotesSessiom
param=session.CurrentAgent.parameterDocID
set paramDoc=session.CurrentDatabase.GetDocumentbyID(param)
Before(After) new mail arrives


, , ,
,

.
Run RunOnServer.
:
1. ,

2.
3.
4. , .
5. ,
3 4 , set doc=session.DocumentContext

6.4.2.

, ,
, ,
(C) Alena S Fedoseeva/SoftAriA, , .
.. .
.

, ,
, .
, , .
, unprocessed
session.DocumentContext .
, , , ,
, .
:
, All documents in database.
, -
session.currentDatabase.UnprocessedDocuments :
Set view = session.CurrentDatabase.GetView(MyView)
Set doc=view.GetFirstDocument
While not doc is nothing

Set doc=view.GetNextDocument(doc)
Wend
, -
, , .
, , -
Set doc=view.GetNextDocument(doc) .

:
While not doc is nothing
Set doc1=view.GetNextDocument(doc)
..
Set doc=doc1
Wend
, (
).
.
1.
2.
3.
4.
5.
6.
7.






Run Once
( - )
UnprocessedDocuments
Pasted document, Newly created ..,
.

, :

All unread documents in view

All documents in view

Selected documents

Pasted documents
, , , .
, , Add search.
, .
- . .

6.4.3.

, . ,
, , , .
Schedule:

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

, .
, 15 ,
, . .

.
, ,
( ), .
, , ,
.
, (
) . , ,
, , ,
, ,
.
:
1
,
.
2 , . ,
1
. .

, , .
2
, .
, .
, , 1 .
, ,
. .
, , .
,
.
schedule .
Lotus script, Formula Language, Java simple action
, .
. Lotus
.
(C) Alena S Fedoseeva/SoftAriA, , .
.. .
.

7. Lotus Script
, ,
, .
, ,
, , .
Lotus script basic Lotus Notes
-.
File->Tools->Debug lotus script.
, , .

7.1.
, ,
case-sensitive - , . ,
, ,
, , . .
,
.

7.1.1.

, .
:

Integer
Long

-32,768 32,767
-2,147,483,648
2,147,483,647
-3.402823E+38
3.402823E+38
-1.7976931348623158+308
1.7976931348623158+308
-922,337,203,685,477.5807
922,337,203,685,477.5807

(


32)

Single
Double
Currency
String

2 bytes
4 bytes
4 bytes
8 bytes
8 bytes
2 bytes/

- DIM as ,
Dim UserName_ as string - UserName_=Bebebe zuzuzu

7.1.2.

Array

.
8 .

-32,768 32,767.

:
Dim
( to
) as
:
Dim my_array(0 to 14) as string
(C) Alena S Fedoseeva/SoftAriA, , .
.. .
.

,
,
, .
,

-
,
:
Redim brdr (0 to 0) as string

, :
Redim brdr (0 to 8) as string
.


, :
Brdr(0)=biaka
Brdr(1)=kaka
, , ,

, redim
preserve brdr(0 to 10) as string
List


,
, .
:
Dim aaa List As String


:
aaa("jan")=""

:
aaa("jan")


IsElement,
If IsElement(aaa(jan)) then

End if


listTag,
forall,

:
Forall a in aaa
LastName=ListTag(a)
End forall


Erase aaa(), Erase aaa (jan)
Variant

.

.
, .
,
,
,
.

16 bytes

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

:
Dim aaa (0 to 10) as string
Aaa(0)=Kaka
Aaa(1)=Biaka
Tmp=aaa

User-defined data type


tmp ,



.
record Pascal struct C.

64K bytes

:
Type phoneRec
name As String
areaCode As Integer
phone As String * 8
End Type

[ Public | Private ]
,

.


,
.
User-defined class
Object reference

,

.
, ,
, OLE
Lotus ,
.

4 bytes


,
:
Dim doc as NotesDocument

SET:
Set doc=new NotesDocument(db)

7.2. lotus
Lotus , .
lotus New
.
, -
.

, .
, ( ),
. Window title, editors
. 1 ,
, . ,
, .
(C) Alena S Fedoseeva/SoftAriA, , .
.. .
.

,
, ( ),
.

. ,
.
:

, , ,
, .
, :
Sub Click(Source As Button)
Dim ws As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc=ws.currentDocument
Dim doc As NotesDocument
Set doc= uidoc.document
End Sub
, ,
notesUIWorkspace .
,
, , , .
CurrentDocument, ,
.
NotesUIDocument. NotesUI ,
, .
, , ,
. NotesDocument
Set doc=uidoc.document
, doc.weight
doc.members
, , .
. .
- , ,
, ,
. 0.
,
mems=doc.members
dim FirstMember as string
Firstmember = Mem(0)
doc.members(0), 100%,
, doc.members
, .
:
(C) Alena S Fedoseeva/SoftAriA, , .
.. .
.

If doc.HasItem(members) then
firstMember=doc.members(0)
End if
, :
Sub Click(Source As Button)
Dim ws As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc=ws.currentDocument
Dim doc As NotesDocument
Set doc= uidoc.document
Dim db As NotesDatabase
Set db=doc.parentDatabase
Set coll=ws.PickListCollection(PICKLIST_CUSTOM, True,db.server, db.filePath,"v11","
", " ","")
End Sub
NotesDocument.ParentDatabase
, .
notesUIWorkspace pickListCollection,
, ,
.
2,3 4 , , . 5 6
. 7 .
, , .
v11, ,
.
2 Collapse when,
.
:

7, , .
, .
, notesDocumentCollection .
, Cancel, , -
.
:
(C) Alena S Fedoseeva/SoftAriA, , .
.. .
.

, ( ),
, .
:
2 :
For i=1 to coll.count
Set doc=coll.GetNthDocument(i)
End for
, ,
1- i-. , n
(1 + 2 + 3 + + n-1).

set doc=coll.GetNextDocument(doc)
. .

, , .
Dim ws As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc=ws.currentDocument
Dim doc As NotesDocument
Set doc= uidoc.document
Dim db As NotesDatabase
Set db=doc.parentDatabase
Dim coll As NotesDocumentCollection
Set coll=ws.PickListCollection(PICKLIST_CUSTOM, True,db.server, db.filePath,"v11","
", " ","")
If coll.count=0 Then Exit Sub ' , 0
, .
Dim memberdoc As NotesDocument
Set memberdoc=coll.GetFirstDocument
While Not memberdoc Is Nothing ,
, ,
GetNextDocument NotesDocument,
nothing. Nothing .
Set memberdoc=coll.GetNextDocument(memberdoc)
Wend

.
2 Names_ Weight_

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

, ,
, ,
:
Dim memberdoc As NotesDocument
Set memberdoc=coll.GetFirstDocument
Dim n As Integer
n=coll.count
Redim weights(1 To n) As Double
Redim Names_(1 To n) As String
Dim i As Integer
i=1
While Not memberdoc Is Nothing
weights(i)=memberDoc.weight(0)
Names_(i)=memberDoc.NotesName(0)
Set memberdoc=coll.GetNextDocument(memberdoc)
i=i+1
Wend

.
, ,
. .
.
, .
, ,
. ,
, , - , ,
.
, , ,
NotesUIDocuemnt-, FieldSetText.
NotesUIDocument .
:
Doc.members=names_
Doc.weights=weights
, . ,
.
,
. .
.
Call uidoc.Refresh
:
Dim i As Integer
i=1
While Not memberdoc Is Nothing
weights(i)=memberDoc.weight(0)
Names_(i)=memberDoc.NotesName(0)
Set memberdoc=coll.GetNextDocument(memberdoc)
i=i+1
Wend
doc.members=names_
doc.weights=weights
Call uidoc.refresh
:

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

, :
, members=,
, :
field members:="";
field weights:=@unavailable;
@command([ViewRefreshFields]);
@command([RefreshHideFormulas])
, :
1. members
2. weights
3.

,
:
, ,
, , - ,
. , ,
.
. .
, .
.
, Lotus .
,
.

7.2.1.


NotesUIWorkspace, UI-, . ,
(C) Alena S Fedoseeva/SoftAriA, , .
.. .
.

UI-, , ,
. , NotesUIDocument.Document notesUIView.View.
, ,
, NotesSession.
: , UI-,
, .
, ,
, .
2 :
NotesUIWorkspace

CurrentCalendarDateTime

CurrentDatabase
CurrentDocument

CurrentView

AddDatabase(server$, filename$)
CheckAlarms()

ComposeDocument

Date.
, , ,
.
, .
notesUIDatabase
.
NotesUIDocument. , ,
Nothing
. notesUIView.
, nothing


. .

, . ,
alarm-daemon,
, . alarmdaemon,
.
Set notesUIDocument = notesUIWorkspace.ComposeDocument( [server$ [, file$
[, form$ [, windowWidth# [, windowHeight# ]]]]] )

, ,
, .
. , ,
,
.

QueryOpen, PostOpen.
: set uidoc = ws.composeDocument(,sf.nsf,SF,640,480)

, , Form
formula ,
form formula, form
formula-: @if(@isnewdoc;return(form);ViewPrefferedForm)
DialogBox
flag = notesUIWorkspace.DialogBox( form$ [, autoHorzFit [, autoVertFit [,
noCancel [, noNewFields [, noFieldUpdate [, readOnly [, title$ [, notesDocument
[, sizeToTable [, noOkCancel ]]]]]]]]]] )
notesDocument .
.
, - ,
notesDocument ,
. ,
, - ,
, ,
.
EditDocument
Set notesUIDocument = notesUIWorkspace.EditDocument( [editMode [,
notesDocument [, notesDocumentReadOnly [, documentanchor$ ]]]] )
notesDocument.
.

. ,
.
(C) Alena S Fedoseeva/SoftAriA, , .
.. .
.

EditProfile

EnableAlarms
Folder
New
OpenDatabase

OpenFileDialog
OpenFrameSet
OpenPage
PickListCollection
PickListStrings

Prompt

ReloadWindow
RefreshView

Set notesUIDocument = notesUIWorkspace.EditProfile( profileName$ [ ,


userName$] )


. ,
.
flag = notesUIWorkspace.EnableAlarms( True/False ) /
alarm-daemon

dim ws as new NotesUIWorkspace
Call notesUIWorkspace.OpenDatabase( server$, file$, view$, key$, newInstance,
temp )
, , ,
, .
, ,
.
Call notesUIWorkspace.OpenFrameSet(frameset$)

Call notesUIWorkspace.OpenPage(pagename$)

, .
.
NotesDocumentCollection ,
.
variant = notesUIWorkspace.Prompt( type%, title$, prompt$, [default ] [, values
])
,
, .

NotesSession

AddressBooks
CommonUserName
CurrentAgent
CurrentDatabase
DocumentContext
EffectiveUserName


First Middle Last
, NotesAgent
, NotesDatabase
, ,
notesDocument

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.

7.3.

8.
8.1.
8.2.
8.3.

9. Formula Language
10.

Lotus Workflow -

(C) Alena S Fedoseeva/SoftAriA, , .


.. .
.