Salesforce

FileSaveDlg (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

FileSaveDlg

Opens the Windows Save File dialog box and returns the selected file.

Syntax:

FileSaveDlg (title, initial path, filter, default extension, overwrite prompt)

Parameters:

title – The window title text.

initial path – The name of the initial path. This path will also accept the filename and show it in the dialog box. A blank value will use the last path chosen.

(Before version 1.9, this was: initial directory – The name and path of the initial directory. A blank value will use the last directory chosen.)

filter – A string containing a description of the filter, followed by the vertical bar (|) and the filter pattern. The strings for different filtering options are separated by the vertical bar. Several filter patterns can be joined to a filter by separating the file types with semicolons. The first pair will be the default in the dialog box.

For example: 'Image Files (*.BMP;*.JPG;*.GIF) | *.BMP;*.JPG;*.GIF|All files (*.*)|*.*'

default extension – This property will be used only if the user selected a filter which has no specific extension. If this parameter is not blank, this value will be automatically set as the file name extension if the user omits the extension.

overwrite prompt – Logical. Determines whether a warning message will be displayed if the user specifies a file name that already exists.

Returns:

An Alpha string that contains the full path of the selected file.

Examples:

FileSaveDlg ('Save file', 'c:\temp\', 'All files (.)|.', '', 'FALSE'LOG)

Opens a File Save dialog box with default of C:\temp and the filter will show all files.

FileSaveDlg ('Save file', 'c:\temp\', 'Image Files (.BMP;.JPG;*.GIF) | .BMP;.JPG;.GIF|All files (.)|.*', '', 'FALSE'LOG)

Opens a File Save dialog box with default of C:\temp and different filters.

FileSaveDlg ('Save file', 'c:\temp\', 'All files (.)|.', 'txt', 'TRUE'LOG)

Opens a File Save dialog box with default of C:\temp and the filter will show all files. If no extension is written, 'TXT' will be returned as the extension. The file dialog box will prompt if the file already exists.

FileSaveDlg ('Save file', 'c:\temp\abc.txt', 'All files (.)|.', '', 'FALSE'LOG)

Opens a File Save dialog box with default file name of abc.txt and default path of C:\temp, and the filter will show all files.

Note:

This function is available only for Online tasks.

Since version: 4.7

Reference
Attachment 
Attachment