FolderReferences

Hi all,

i have a problem with the FolderReferences property.

I save my document using FolderOptions=“2”. The document is on the right place and got the FolderReferences fields. But if i save the document twice without leaving the form or reopen the form the FolderReferences fields disappear and doesn’t exist anymore.

Can someone tell me how to save documents more than 1 time without losing the fields?

Thanks!

Subject: FolderReferences

Can you send me the code what u r using

Subject: RE: FolderReferences

I have a Form. In this Form i have an action button called “Save” and a combobox “FolderOptions”.FolderOptions has the values:

Choose folder from list|1

Save in current folder|2

→ The defaut value ist “2”

The code of the “save” Button:

@Command([FileSave])

Thats all.

There is no QuerySave/PostSave code.

You can enable the Folder References like “db.FolderReferencesEnabled = True”.

Now if i compose the Form, enter some new values on present fields and Press “Save” more than 1 time, on first save Notes creates these Folderref Fields, on second save these fields doesn’t exist anymore. If i close the form after first save and reopen it i can save this form more than once, but if i dont close the form and press the button twice this strangle thing happens :frowning:

Hope you can help!

Thanks

Subject: RE: FolderReferences

where you have written the code"db.FolderReferencesEnabled = True".

Subject: RE: FolderReferences

Hi,

you only need to enable this once. You can make a menu agent. Once enabled this flag is always enabled in this database.