Foldereference property of document stays empty

Hi

I want to see ( in Loutsscript) which folder a document is in. I have the hiddenviews $FolderRefInfo and $FolderInfo in the database. And right after

I have the handle to the database I call db.FolderReferencesenabled = True.

But still the folderreference property stays empty.

What else must I do to make the folderrefernce work?

Regards

Subject: Foldereference property of document stays empty

So the FolderReferences property for each document in the folder is not reflecting the folder(s) they are in? It may be that these documents were already in those folder(s) BEFORE you set db.FolderReferencesEnabled = True. Any new documents placed in folders should have the FolderReferences property set. For the older documents, they must be moved out of the folder and put back in, either manually or programmatically, for the FolderReferences property to be set.

Hope that helps.

Subject: Foldereference property of document stays empty

This can happen in a script, if you put the doc in a folder and save the doc afterwards.When a doc goes to a folder, some $FolderRef fields are created/updated in the doc. If you save the doc during the same process in the script, these fields may be lost.

First save the doc, only then put it in a folder.