Save Document in another form, but change the form field

Hi,

first a user creates a document in a web-form, say “WebForm1”, with just a few fields. Then the next editor should open this document with another web-form , “WebForm2”, in order to enter information into additional fields now appearing. Next the document should be saved with all the collected information together, but it must not change the Form Field, so the document can be opened further in “WebForm1”.

In short: How can I prevent notes from changing the form field?

Subject: Save Document in another form, but change the form field

Did you think about creating different views and using form formulas?

Subject: RE: Save Document in another form, but change the form field

Thanx, I use this techinque, but there are problems with it:

  1. User A enters data in Form1 and saves

  2. User B opens this document with Form2, data from Form1 is shown via computed for display fields

  3. User B enters additional data and saves

  4. User C opens Form3 that should show all collected information (again computed for display fields), but information from User A seems to got lost, because it has been saved with a different form

I guess it would not happen if I had an opportunity to save the document with its original Form Field

Subject: RE: Save Document in another form, but change the form field

Try putting a computed field named Form" on Form1, and make the value the name of Form1. Even if you open and save it with a different form, it should still be saved with the form you put in the Form field.Regards

Anna

Subject: RE: Save Document in another form, but change the form field

It sounded good, but sadly it didnt’t workNotes ignored my field “Form” and has set its value “Form2” again…

Subject: RE: Save Document in another form, but change the form field

OK, maybe that works better in the notes client. But if you have a WebQuerySave agent, you could set the Form field there.

Anna

Subject: RE: Save Document in another form, but change the form field

Well, the WebQuerySave agent did the job! For those who are interested maybe in the future here’s my code snippet:

Dim s As New NotesSession

Dim doc As NotesDocument



Set doc = s.DocumentContext

doc.Form = "Webform1"

'//do not explicitely save (doc.save etc.), better do saving in the form (on a submit action etc.)

But sadly the basic problem that data get lost during the workflow remains. Anyway, I will post this in an extra thread

Thanx Anna, thanx Basir