LOT-803 Dumps LOT-803 Braindumps

LOT-803 Real Questions LOT-803 Practice Test LOT-803 Actual Questions


IBM


LOT-803


Using LotusScript in IBM Lotus Domino 8 Applications


https://killexams.com/pass4sure/exam-detail/LOT-803


  1. GrantAccess on the NotesDatabase Object

  2. QueryAccess and GrantAccess on the NotesDatabase Object


Answer: D


QUESTION: 84

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?


  1. 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()

  2. 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", "" )

  3. 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.

  4. 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.


Answer: D


QUESTION: 85

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?


  1. Refresh

  2. AutoUpdate

  3. AutoRefresh

  4. StaticUpdate


Answer: B


QUESTION: 86

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?


  1. FormatInvoice(tmpCompany, tmpIdentifier)

  2. newInvoice = FormatInvoice(tmpCompany, tmpIdentifier)

  3. FormatInvoice(tmpCompany, tmpIdentifier) = newInvoice

  4. newInvoice = FormatInvoice(tmpCompany As String, tmpIdentifier As String)


Answer: B


QUESTION: 87

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?


  1. EndLoop

  2. End Do

  3. ExitLoop

  4. Exit Do


Answer: D


QUESTION: 88

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?


  1. onLoad

  2. QueryLoad

  3. PostModeChange

  4. QueryRecalc


Answer: A


QUESTION: 89

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?


  1. Dimuidoc As NotesUIDocument

    Set uidoc=source if uidoc.FieldGetText("status")="Open" then uidoc.Mode=True end if

  2. Dimuidoc As NotesUIDocument Set uidoc=source

    if uidoc.FieldGetText("status")="Open" then doc.EditMode=True end if

  3. Dimuidoc As NotesUIDocument

    Set uidoc=source if uidoc.FieldSetText("status","Open") then uidoc.EditMode=True end if

  4. Dimuidoc As NotesUIDocument Set uidoc=source

if uidoc.FieldGetText("status")="Open" then uidoc.EditMode=True

end if


Answer: D


QUESTION: 90

If you call the Print method of NotesUIDocument with no parameters, what will happen?


  1. The entire document will be printed to the default printer

  2. A print dialog will appear, prompting the user for print properties

  3. Only the first page of the document will print to the default printer

  4. An error will occur, because the first parameter of the Print method is required


Answer: B