Accesses view and folder information from a Domino® database in Web applications.
@DbCommand( "Domino" ; "ViewNextPage" )
@DbCommand( "Domino" ; "ViewPreviousPage" )
@DbCommand( "Domino" ; "FolderList" ; promptString ; foldersToExclude )
"Domino"
String argument. Indicates that you want to access a Domino data source.
"ViewNextPage"
String argument. Displays the next chunk of documents in an embedded view.
"ViewPreviousPage"
String argument. Displays the previous chunk of documents in an embedded view.
"FolderList"
String argument. Indicates that you want to display a list of the names of folders in the database that are accessible from the Web.
promptString
String. Optional. Use only if including "FolderList" string argument. String to display as the first choice in a Listbox field. If you want the first choice in the list to be "Select a folder," specify:
@DbCommand("Domino" ; "FolderList" ; "Select a folder")
foldersToExclude
Textlist. Optional. Use only if including "FolderList" string argument. Names of the folders you do not want to display in the listbox field. If you do not want the "MyStuff" and "Problems" folders to be included in the list, specify:
@DbCommand("Domino" ; "FolderList" ; "Select a folder" ; "MyStuff" : "Problems")
You cannot use this function to access a Domino data source in the Notes® client.
Use the FolderList string argument with the @DbCommand in a selection formula for a Listbox field that is set to Use formula for choices to display a list of available folders in a Web application. If no folders exist, the Listbox field is empty when it displays and the promptString does not display in it either.
You can use the FolderDocuments @command with the FolderList string argument to copy or move a selected document in an embedded view that has HTML selection enabled into the folder selected from the Listbox field. To do so, complete these steps:
The "ViewNextPage" and "ViewPreviousPage" string arguments are useful when your form has an embedded view that contains several documents. By adding Next and Previous actions to the form that contains @DbCommand functions with these keywords, you can display the documents in manageable chunks. Set the Embedded View Properties box options as follows:
@DbCommand("Domino";"FolderList";"-Select a folder-")
If you name the Listbox field $$SelectDestFolder, the following code, when added to the "Move the Folder" action button, moves the document selected in the embedded HTML view into the folder selected from the Listbox field.
@Command([FolderDocuments];"";"1")
@DbCommand("Domino;"FolderList";"Choose a folder";"Private":"Manager")
@DbCommand("Domino";"ViewNextPage")
You can also add an action button called Previous that contains the following code. When a user clicks this button, the previous block of pages displays in the embedded view.
@DbCommand("Domino";"ViewPreviousPage")