File Type drop down box

Hello,

Another beginner question I’m afraid.

I am building a dialog box which will open a file and import said file into the table the user chooses.

Now on the dialog method I have the following code to add the fileopen menu control:

dialogFileName =

dialod.addFieldValue(typeid(FileNameOpen), fileName, “@SYS16423”);

dialogFileName.lookupButton(2);

Now this brings up the string edit box with the file browser control, but when the file browser is used there is no option to select a filetype, ie .txt .csv ect.

Does any one know why this is? I though the lookupButton method would add the filetype drop down box(or so I was told).

Many thanks in advance for answering my questions! :slight_smile:

Sorry! wrong forum.

Hello,

This may a bit too late. But, just for the sake- use

dialog.filenameLookupFilter(["@SYS28576",#XLSX,"@SYS100852","*.csv"]);