Is there a way to update the $title field for a folder within a database? The title was cleared on multiple folders, but they still appear in $name. Instead of going folder by folder to rename, I would like to make $title = $name.
??
Is there a way to update the $title field for a folder within a database? The title was cleared on multiple folders, but they still appear in $name. Instead of going folder by folder to rename, I would like to make $title = $name.
??
Subject: RE: Agent to update $title field in folders
set doc = db.getdocumentbyunid(view.universalid)Call doc.replaceitemvalue(“$Title”, doc.getitemvalue(“$Name”))
doc.save, etc.
Subject: RE: Agent to update $title field in folders
but how do I select the folders to run the agent?
Subject: RE: Agent to update $title field in folders
You wouldn’t select them in the sense that you select docs from a view to run an agent on. The agent would run on “None” and have to search the database for the folders you want.
I mean, you could display the list of folders to select from – there’s an @Command for that – but why bother when you already know what folders you want? The ones with blank titles.
Use the NotesNoteCollection and iterate thru all the folders – that way you don’t even need the universalid property, just GetDocumentByID – test the $Title field of each note to see whether it’s blank.
Subject: Agent to update $title field in folders
hiMay be you can use the “DBDesign” from Sandbox.
It is used to work with design elements and very usefull:
Hope that will help
H. Mueller