Exam Code : LFCS
Exam Name : Linux Foundation Certified System Administrator
Vendor Name :
"Linux-Foundation"
LOT-803 Dumps LOT-803 Braindumps
LOT-803 Real Questions LOT-803 Practice Test LOT-803 Actual Questions
Using LotusScript in IBM Lotus Domino 8 Applications
https://killexams.com/pass4sure/exam-detail/LOT-803
GrantAccess on the NotesDatabase Object
QueryAccess and GrantAccess on the NotesDatabase Object
Ryoko supports the SalesOrder application, which has the "Allow document locking" option enabled. She has noticed that periodic events result in some documents remaining locked after the users have logged off. Ryoko would like to automatically unlock these documents each night. How should she proceed?
Create a view of locked documents using a selection formula of: SELECT@IsAvailable($Writers )
Write an agent to run nightly, and call NotesView.AllEntries.UnLock()
Create a view of locked documents using a selection formula of: SELECT@IsAvailable( $WritersDate )
Write an agent to run nightly, and call NotesView.AllEntries.StampAll( "~$Lock", "" )
Create a view of locked documents using a selection formula of: SELECT@IsAvailable($WritersDate )
Write an agent to run nightly, to iterate through the view and set NotesDocument.Lock = False on each document.
Create a view of locked documents using a selection formula of: SELECT@IsAvailable($Writers )
Write an agent to run nightly, to iterate through the view and call the NotesDocument.UnLock method on each document.
Glenda is writing an agent that processes all Suggestion documents with the Status field equal to "Pending". These documents are in a view that has a selection formula of Status = "Pending". As each document is processed in the agent, the Status field is updated to "Processed".What NotesView property can Glenda use to prevent the view from refreshing until she has processed all the documents?
Refresh
AutoUpdate
AutoRefresh
StaticUpdate
Marisha has the following function in her LotusScript agent:
Function FormatInvoice(invCompany As String, invIdentifier As String) As String FormatInvoice = UCase(invCompany) + LCase(invIdentifier)
End Function
What is the correct format she should use in her agent to call this function?
FormatInvoice(tmpCompany, tmpIdentifier)
newInvoice = FormatInvoice(tmpCompany, tmpIdentifier)
FormatInvoice(tmpCompany, tmpIdentifier) = newInvoice
newInvoice = FormatInvoice(tmpCompany As String, tmpIdentifier As String)
Klaus is examining a sample of the documents in a database. He wants to stop processing after 1000 documents have been processed. Here is the code Klaus has written so far:
Dim s As New NotesSession
Dim dc As NotesDocumentCollection Dim doc As NotesDocument
Set dc = s.CurrentDatabase.AllDocuments Set doc = dc.GetFirstDocument
Dim i As Integer
Do Until (doc Is Nothing) i = i + 1
If i > 1000 Then ' MISSING LINE End If ' Process document Loop
What code should Klaus write to replace the MISSING LINE, to cause execution to leave the Do Loop after 1000 documents have been processed?
EndLoop
End Do
ExitLoop
Exit Do
If you wanted a block of LotusScript to run AFTER a document opens but BEFORE the user has control of it, what form event could you use to put the code into?
onLoad
QueryLoad
PostModeChange
QueryRecalc
Sally has a form she wants to open in Edit mode, if the status field is Open. When the status field is Closed, the form should open the document in Read mode. Which one of the following PostOpen events will accomplish this?
Dimuidoc As NotesUIDocument
Set uidoc=source if uidoc.FieldGetText("status")="Open" then uidoc.Mode=True end if
Dimuidoc As NotesUIDocument Set uidoc=source
if uidoc.FieldGetText("status")="Open" then doc.EditMode=True end if
Dimuidoc As NotesUIDocument
Set uidoc=source if uidoc.FieldSetText("status","Open") then uidoc.EditMode=True end if
Dimuidoc As NotesUIDocument Set uidoc=source
if uidoc.FieldGetText("status")="Open" then uidoc.EditMode=True
end if
If you call the Print method of NotesUIDocument with no parameters, what will happen?
The entire document will be printed to the default printer
A print dialog will appear, prompting the user for print properties
Only the first page of the document will print to the default printer
An error will occur, because the first parameter of the Print method is required