viewer.getDefaultFilenameAdded by IBM on October 10, 2012 | Version 1 (Original)
|Returns the default file name of a form. The IBM® Forms Viewer maintains a default file name for all open forms, unless they are temporary files. A form is considered temporary if it is passed to the Viewer by the Web browser in response to a Web transaction. Temporary files have no default filenames.
Returns Returns a string containing the default file name of the form. This string does not include any path information.
Usage details You must use the event model, such as keypress or mouseover events or the toggle function, to trigger the getDefaultFilename function. If you want getDefaultFilename to run when the form opens, toggle the function off of the value of the global.global.activated option. This option switches to on when the form is opened.
Example The following example creates a label in the form that displays the default file name when the user clicks the getFilename button.
<label sid = "filename_LABEL">
'off', 'on') == '1' ? viewer.getDefaultFilename() :