Author: Vlad Sh
Tags:lotusscript@functionPromptNotesUIWorkspaceChooseDatabase13
Idea:
Tags:lotusscript@functionPromptNotesUIWorkspaceChooseDatabase13
Idea:
Objects of review:
@Prompt( [style] : [NoSort] ; title ; prompt ; defaultChoice ; choiceList ; filetype )
variant = NotesUIWorkspace.Prompt( type%, title$, prompt$ [, default] [, values] )
For type=13 propose:
- Unify NUIWs.Prompt, adding the missing parameter filetype, so you can specify the type of the database by default (file mask for display).
- Parameter title now does not work. Make it to work.
- Рarameter default corresponds to the parameter defaultChoice, and in this case is not used. Use this option to specify a directory or file by default.
Format: server : file
file - can be a initial folder for the "Open Application ..." window and files by default.
- If the file is not empty, then will attempt to open the folder on the specified server, with the file name should be displayed in the field "File name" dialog.
- If the folder is not found, then an attempt should be made the opening of the parent folder. If the path fully does not exist, then the server must be open, just as it opens now.
4. It would be good to set multipleSelection (for this can be used in this case an unused parameter choiceList/values), and depending on this to display the "Open" button or "Select".
If omit this parameter, then display the both buttons (as is now).
EDITED:
I am aware that a much better solution would be to create a separate method ChooseDatabase; do not understand why the engineers IBM went to add type=13 is in the method Prompt, if the choice of database is essentially (and parameters!) is much closer to the OpenFileDialog, than Prompt ... But something must be done about this, because the ability to customize the displayed window, in my opinion, is culture.