Use lotus script via web

Hi everyone!

I have an application which works fine on notes client. I want to make it usable on web also, so I have to rewrite some of the lotus script actions. I know that I have to create agents to make my scripts runnable via web.

My problem is that there are some notes client components in the code: NotesUIDocument and NotesUIView which cannot used on web.

How should I replace that components?

thanx for the help

Zoli

Subject: Use lotus script via web

Try using script libraries as much as possible for common code and then passing appropriate document handle to the script function.

For example say you have a function in the script library called ‘processDoc(doc As NotesDocument)’.

From Notes client lotusscript:

Dim ws as New NotesUIWorkspace

Dim uidoc As NotesDocument

Dim Doc As NotesDocument

Set uidoc = ws.CurrentDocument

Set Doc = uidoc.Document

Call processDoc(Doc)

.

.

From WebQuerySave agent:

Dim Session As New NotesSession

Dim Doc As NotesDocument

Set Doc = Session.DocumentContext

Call processDoc(Doc)

.

.

Alex

Subject: RE: Use lotus script via web

Hi!

Thanks for help me out…

Both of you!

Zoli

Subject: Use lotus script via web

To access the fields in the Document, try using NotesDocument object instead of NotesUIDocument.To handle field level events use Java script code onFocus/onBlur instead of FieldEntry/FieldExit lotus script events.

Put the validation code in Java script and call submit() if validation is successfull.

You can have Lotus script agent running on WebQuerySave event, for server side processing.

Regards

Litty Joseph