Problem when save document

Hi everybody,

Here is my problem:

I’ve got one main form in my project (who allows to store all the data of the database), and a second form that i used like a configuration page of my application.

When i create my configuration page(if it’s the first use, and it doesn’t exist) and save it in a particular folder (folderconfig), that automaticaly create a empty document (main form) on the general folder where are store all my documents…

How i can make for to select the form i need

when i create a new document and save it without create a general empty document ???


here an exemple of the code :

set newdoc = new Notesdocument(DB)

newdoc.label1 =“…”

newdoc.label2 =“…”

call ws.dialogbox(“form_config”,…,newdoc,true)

call newdoc.PutinFolder(“folderconfig”)

call newdoc.save(true,true)


if someone have a suggestion about this problem

thanks to say me …

Subject: problem when save document

you have to set Form property of your new Document:

set newdoc = new Notesdocument(DB)

newdoc.Form = “AliasOfTheFormIWant”

… then you proceed with your code.

Hope it helped.