LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

File Dialog - How to remove all files pattern in LV 8.x

How to remove "all files" pattern in LV 8.x in the file dialog.

Is it possible?

Thanks

Dany
LabVIEW ChampionArchitect
0 Kudos
Message 1 of 4
(3,502 Views)
If you mean the File Dialog vi in the Advanced File Palette, it has a "pattern" input that you can alter.
0 Kudos
Message 2 of 4
(3,488 Views)
I want to add *.html, but remove *.* from the list. When I add *.html to the list of pattern, I get by default *.html in the list of pattern and the *.* is still there in the list. I don't see anything to remove the *.*

Some body have a workaround?

It's a really big security issue for my app.

Thanks for your help

Dany
LabVIEW ChampionArchitect
0 Kudos
Message 3 of 4
(3,479 Views)
If it is a security issue, you will probably need to implement a custom dialog and actively filter for file types.  No matter what pattern you have showing, the user can type a pattern into the dialog and get anything they want.  In addition, file extension is not sufficient to determine file type.  You should probably check the file itself to ensure it is an HTML file and does not have any embedded nastiness.

Fortunately, custom dialogs are easy to make.  Using the event structure, you can filter inputs as well, so that only HTML files will be accepted.  Good luck.  Let us know if you need more help.
0 Kudos
Message 4 of 4
(3,457 Views)