Composing & saving a doucment on web?

i am developing an application on Web…The problem which i face is written below in details…___________________________________________________

There are two forms such as formA and formB

in my Application i want that some value of the formA will be send to formB by composing document and at the same time formB will be save once which must display in view… And when formB is open it will show the value of the field which is passed from formA…

how to do it ??


MR.Thierry Ceretto suggested the following , but the problem in the follwing code , when i am going to save the

2nd form after filling some other data, then it is being saved 2nd times,mean 2 document has been created…so this

shouldn’t happen …what to do at this stage ??


In WebQueySave of formA run a lotusScript agent to create a document with formB and pass values…, something like this:

Dim session As new NotesSession

Dim db As NotesDatabase

Dim docA As NotesDocument

Dim docB As NotesDocument

set db = session;CurrentDatabase

set docA = session.ContextDocument 'this is a very usefull property for web applis > look in Designer Help…

set docB = db.CreateDocument

docB.form = “formB”

docB.fieldnameFomB = docA.fieldnameFormA

docB.save(True,False)

or

from document (formA) you can use inherit property of form to compose a document with formB (Look Designer help for more infos about inherit property of form)

HTH

Thierry


Thanks

Rupesh

Subject: composing & saving a doucment on web ??

If you have the code to create the second document (doc B) in QuerySave for doc A, it will of course create a new document each time doc A is saved.

If you can’t move the code to somewhere lse (such as an Action button), then you need to modify your code so that it first looks to see if there is a doc B already in existence and if so, not to create a new one.

Cheers,

Adrian