This support document contains our notes on various Domino.Doc fields important to remember when doing a customization project.
The most current version/draft of a Domino.Doc document.
You should always use the DocID to get the most current Version of a document. Only the first Domino.Doc document has the same DocID and DocUNID. The DocID stays the same throught the diferent versions of the document, the DocUNID does not. The field to use is ORIGDOCID.
If you want to create a link to the most current version of the document without a handle on the document using the DocID, you can via the Versions view:
viewURL = "/" + dbname + "/versions/" + DocID + "/$File/" + viewfile;
How to get a Binder Database & A Binder via Formula Language When You Have the Library Database:
do the following lookup in the library database:
tmp := @DbLookup(""; ""; "(InternalAdmin)"; "GlobalProfile"; "BinderDBReplicaID");
Note: This will bring back the binder database's replica ID. You then have to put in the : to separate the server and database components
t1 := @Left(tmp;8) + ":" + @Right(tmp;8);
@DbLookup(""; t1; "(BinderLookup)"; BinderID; "Title")
Note: In this example we have just retrieved the contents of the Binder's title
Note: Two most often pre-existing views to use are: (AllBinders) & (BinderLookup)
Important Binder Fields to Know (3.1)
BinderID The binder ID (Can ="0" if the binder is the default cabinet binder.)
ObjectType ="Binder", tells Domino.Doc that this is a binder.
IsCurrentVer ="1", tells Domino.Doc that this is the current version.
IsWIPVer ="1", tells Domino.Doc that this is a working version of the binder document (checked out)
If form = "CheckoutConflict" Or "CheckoutRejection", it should also be a response document (and have the $Ref field) to a parent binder. This means that this binder is a replication confict and needs to be handled by the Domino.Doc administrators.
Special Fields Being Used by a Binder that is Checked Out:
CheckOutDateTime
CheckOutUser (btw. this contains the canonical @Username of a specific user. Do an @Uppercase when comparing to @Username though to ensure equality.)
CheckOutServer
CheckOutFile
CheckOutDocUNID
LockStatus
WIPUNID
(To uncheck a binder out, delete all of these fields above - you must also check for a provisional "in-editing" binder document. If one exists, you need to delete it if you just deleted all the fields above.)
Binder Field Lists
Below is an export of a binder during checkout. The first is the binder document itself that is checked out. The send is the WIP binder document (the working copy response document)
_________________________________
Checked Out Binder Field List -
Field: Form
Binder
Field: Title
304226691
Field: BinderID
D718C21ACFE99FF785256CB10066998E
Field: ISNEWDOC
1
Field: IsRefresh
0
Field: $ConflictAction
1
Field: IsInterim
0
Field: IsCurrentVer
1
Field: IsLatest
1
Field: DocDbReplicaID
85256CB10066341D
Field: CreateDate
1/17/2003 1:40:39 PM
Field: CreateTime
1/17/2003 1:40:39 PM
Field: ShouldBeDeleted
0
Field: SearchByForm
Field: ObjectType
Binder
Field: Path_Info
Field: NotesVersion
166
Field: DocAuthor
CN=Jane Doe/OU=Corporate/O=Mindwatering
Field: LastModBy
CN=Jane Doe/OU=Corporate/O=Mindwatering
Field: LastModDate
1/17/2003 1:59:30 PM
Field: LastModAccess
1/17/2003 1:59:30 PM
Field: LastModProfile
1/17/2003 1:59:30 PM
Field: DocReaders
Field: DocAuthors
Field: DocManagers
Jane Doe/Corporate/Mindwatering
Field: DocType
MW Custom Binder
Field: CustomField1
12330422
Field: CustomField2
Tripp Black
Field: BinderCategory
Sample Binders
Field: AllReaders
1
Field: AllAuthors
1
Field: ComputedAuthors
[Author]
Field: ComputedReaders
Field: ComputedManagers
[Administrator]
CN=Jane Doe/OU=Corporate/O=Mindwatering
Field: ComputedDraftEditors
Field: $$QuerySaveAgent
SaveDocument
Field: CREATEDONSERVER
CN=Demo1/OU=Servers/O=Mindwatering
Field: CURRACTIVITYLOG
1
Field: CheckOutDateTime
7/18/2003 10:23:19 AM
Field: CheckOutUser
CN=Jane Doe/OU=Corporate/O=Mindwatering
Field: ActivityLog1
01/17/2003 01:59:42 PM EST: Created by Jane Doe/Corporate/Mindwatering.
01/17/2003 01:59:47 PM EST: Document "Sample Binder" added to binder by Jane Doe/Corporate/Mindwatering.
07/18/2003 10:23:19 AM EDT: Checked out by Jane Doe/Corporate/Mindwatering.
Field: WIPUNID
DB832C36E0D59DEC85256D67004F0A48
Field: $UpdatedBy
CN=Jane Doe/OU=Corporate/O=Mindwatering
Field: $Revisions
1/17/2003 1:40:51 PM
1/17/2003 1:40:54 PM
1/17/2003 1:40:56 PM
1/17/2003 1:40:56 PM
7/18/2003 10:23:19 AM
7/18/2003 10:23:19 AM
_________________________________
WIP Binder Document (The Working Copy Response Document)
Field: Form
Binder
Field: Title
304226691
Field: BinderID
D718C21ACFE99FF785256CB10066998E
Field: ISNEWDOC
1
Field: IsRefresh
0
Field: $ConflictAction
1
Field: IsInterim
0
Field: IsCurrentVer
0
Field: IsLatest
1
Field: DocDbReplicaID
85256CB10066341D
Field: CreateDate
1/17/2003 1:40:39 PM
Field: CreateTime
1/17/2003 1:40:39 PM
Field: ShouldBeDeleted
0
Field: SearchByForm
Field: ObjectType
Binder
Field: Path_Info
Field: NotesVersion
166
Field: DocAuthor
CN=Jane Doe/OU=Corporate/O=Mindwatering
Field: LastModBy
CN=Jane Doe/OU=Corporate/O=Mindwatering
Field: LastModDate
1/17/2003 1:59:30 PM
Field: LastModAccess
1/17/2003 1:59:30 PM
Field: LastModProfile
1/17/2003 1:59:30 PM
Field: DocReaders
Field: DocAuthors
Field: DocManagers
Jane Doe/Corporate/Mindwatering
Field: DocType
MW Custom Binder
Field: CustomField1
12330422
Field: CustomField2
Tripp Black
Field: BinderCategory
Sample Binders
Field: AllReaders
1
Field: AllAuthors
1
Field: ComputedAuthors
[Author]
Field: ComputedReaders
Field: ComputedManagers
[Administrator]
CN=Jane Doe/OU=Corporate/O=Mindwatering
Field: ComputedDraftEditors
Field: $$QuerySaveAgent
SaveDocument
Field: CREATEDONSERVER
CN=Demo1/OU=Servers/O=Mindwatering
Field: CURRACTIVITYLOG
1
Field: CheckOutDateTime
7/18/2003 10:23:19 AM
Field: CheckOutUser
CN=Jane Doe/OU=Corporate/O=Mindwatering
Field: ActivityLog1
01/17/2003 01:59:42 PM EST: Created by Jane Doe/Corporate/Mindwatering.
01/17/2003 01:59:47 PM EST: Document "Sample Binder" added to binder by John Doe/Corporate/Mindwatering.
07/18/2003 10:23:19 AM EDT: Checked out by Jane Doe/Corporate/Mindwatering.
Field: $Revisions
1/17/2003 1:40:51 PM
1/17/2003 1:40:54 PM
1/17/2003 1:40:56 PM
1/17/2003 1:40:56 PM
7/18/2003 10:23:19 AM
7/18/2003 10:23:19 AM
7/18/2003 10:23:19 AM
Field: $REF
D718C21ACFE99FF785256CB10066998E
Field: IsWIPVer
1
Field: CurrentVerUNID
D718C21ACFE99FF785256CB10066998E
Field: IsModified
0
Field: CheckoutServer
CN=Demo1/OU=Servers/O=Mindwatering
Field: IsProvisional
0
Field: LockStatus
0
Field: tmpWIPReader
CN=Jane Doe/OU=Corporate/O=Mindwatering
Field: CheckOutDocUNID
8CBE1AA8C38486AF85256D67004F0A4B
Field: $UpdatedBy
CN=Jane Doe/OU=Corporate/O=Mindwatering
_________________________________
previous page
|