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