nerdexam
IBM

LOT-410 · Question #105

Linda has an existing IBM LotusScript agent she would like to invoke from an XPage. Assuming the agent name is FRED, what should Linda add to her XPage to call the agent?

The correct answer is C. ag = database.getAgent("FRED");noteid = FREDSampleDoc.getDocument().getNoteID();ag.run(noteid). See the full explanation below for the reasoning.

Question

Linda has an existing IBM LotusScript agent she would like to invoke from an XPage. Assuming the agent name is FRED, what should Linda add to her XPage to call the agent?

Options

  • Aag = database.getAgent("FRED");ag.RunOnServer(NoteID)
  • Bvar agent=database.getAgent("FRED");agent.run(currentDocument.getDocument());
  • Cag = database.getAgent("FRED");noteid = FREDSampleDoc.getDocument().getNoteID();ag.run(noteid)
  • Dag = database.getAgent("Fred");noteid = FREDSampleDoc.getDocument().getNoteID();ag.xpRun(NoteID)

How the community answered

(50 responses)
  • A
    2% (1)
  • B
    8% (4)
  • C
    76% (38)
  • D
    14% (7)

Community Discussion

No community discussion yet for this question.

Full LOT-410 Practice