have written a script on action button for view.There is a document which is locked by DocStatus field “Locked”.In view i have to unlock the lock document. Here is my code
Dim session As New NotesSession
Dim ws As New NotesUIWorkspace
Dim uiview As NotesUIView
Dim db As NotesDatabase
Dim coll As NotesDocumentCollection
Dim doc As NotesDocument
Dim history1 As String
Dim answer As Integer
Set uiview = ws.CurrentView
Set db = session.CurrentDatabase
Set coll = db.UnprocessedDocuments
If coll.Count <> 1 Then
Msgbox “Please select only one document to lock it”
Exit Sub
End If
Set doc = coll.GetFirstDocument
answer = Msgbox("Are sure, that you want to lock this document for further editing",4+32,"International Certification Library")
If answer = 6 Then
history1 = "Document has been unlocked by " & session.CommonUserName & " on " & Date$
sorry i was busy, first u decide that r u working for backend documents or fron end documents. U used Fieldset property of front end classes without setting its object . how its possible . make a object first , intialize it then use