5 pts.
 Accessing Lotus notes forms with prompt using Lotus notes script

I need a help in opening form and filling fields through Lotus Script for forms with Prompt.

Able to do with no issues for form where no prompts are involved using below lines of code:

Dim workspace As Object = CreateObject("Notes.NotesUIWorkspace")
Dim uidoc As Object
Dim doc As Object

uidoc = workspace.ComposeDocument(Server, database, strFormname)

uidoc.FieldSetText("CUSTNAME_TX", "Testing")
.
.
.
.....

I am looking for code to open the form with prompt with out user intervention. Open the form and select the prompt with required option and to move on setting value for fields.

Thanks in Advance. Appreciate your quick response.

Thanks,

Johnson

 



Software/Hardware used:
Lotus Notes 8.5
ASKED: September 4, 2012  1:25 PM

Answer Wiki:
Why do you work with "Object" reference and not the Lotus DOM? Your script shoud be :
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim doc As NotesDocument

Set uidoc = workspace.ComposeDocument(Server, database, strFormname)

Call uidoc.FieldSetText("CUSTNAME_TX", "Testing")
Last Wiki Answer Submitted:  January 10, 2013  7:26 pm  by  bwattsttgt   15 pts.
All Answer Wiki Contributors:  bwattsttgt   15 pts. , BruceWayne   4,075 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _