PdcApplication.OpenECIFileDialog
Declaration
OpenECIFileDialog(Mask As String, AllowMulti As Boolean, InitialDir As String) as String
Description
Open a file browser dialog via Bemet to select a file to upload. This will return the full path of the selected file as a String. If multiple files are selected, then their paths will be returned as a commaseparated String. If this form is canceled without selecting a file, an empty string will be returned.
Parameters
FileMask : A pattern that used to filter the files that are shown and can be selected. If this is empty the default '*.*' is used. If you want to only show pdf files, you can use *.pdf .
AllowMulti : Allow the user to select multiple files
InitialDir : The initial directory shown in the dialog
Notes
This method is available both in the EciCloud and in the on-prem version of Bemet. But in the on-prem version it will use the regular windows dialog, and in the Eci Cloud it will use our secure custom dialog.
Code example
Dim Result As String = PDC.App.OpenECIFileDialog(tbFileMask.Text, cbAllowMulti.Checked, "C:\Users\Admin\Documents\")
Availability
Available since september 2023. Bemet 2023R4 and higher.