UIDocument on web

hello, How can i create a new document on web…As in Lotus script i am using uidoc=ws.ComposeDocument(…). but UIdocument is not working on web…How can i replace UIdoc here which shud wrk on web…plz help me…

Subject: UIDocument on web

If u want to use the current doc .you can use the DocumentContext method of session class…

For creating a new doc on web,

Use

Dim doc as new notesdocument(db)

where db is the database object of notessession class.

thx

mohit

Subject: RE: UIDocument on web

Its not working as it shud…As in LS it is uidoc=worksapce.ComposeDocument…so it is working as UI…i want like this…is there any method by which i can create a doc first then want to make as DocumentContext…plz suggest me…

Subject: RE: UIDocument on web

Even if you want this very much, it will still not work.

You use LotusScript to open a document to the user’s browser and then have a handle to this document in the calling script. You can open a new document as described already and then in the new document’s WebQueryOpen agent you can access DocumentContext as described, but not the other way around.

Subject: UIDocument on web

Hi Hemlata,

In buttons I use: @Command([Compose];“FormName”)

And from within an agent this:

Print “[/” + db.FilePath + “/FormName?OpenForm]”

HTH,

Joost