Accessing Lotus notes forms with prompt using Lotus notes script

5 pts.
Tags:
Lotus Notes 8.5
NotesDocument
NotesForm

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

Thanks. We'll let you know when a new response is added.

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")

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following