showFileOpenDialog - Remove ALL Files from filter

Questions, tips and tricks and techniques for scripting in Servoy

showFileOpenDialog - Remove ALL Files from filter

Postby kschuster » Fri Apr 27, 2012 8:28 pm

I"m using this
var f = plugins.file.showFileOpenDialog(1,null,false,new Array("txt,csv","txt","csv"));

When I run it I get the filter in the selector for txt and csv - but I also get ALL Files as a filter... How do i remove that option?

I'm in Windows running client with version 6.06
kschuster
 
Posts: 53
Joined: Fri Mar 28, 2008 4:42 am
Location: Houston, TX

Re: showFileOpenDialog - Remove ALL Files from filter

Postby jcompagner » Tue May 01, 2012 9:41 am

you can't remove that option currently, it is by default enabled on the JFileChooser dialog we have to call an extra method for that to remove that filter.
Create a case for this
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8284
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: showFileOpenDialog - Remove ALL Files from filter

Postby kschuster » Wed May 02, 2012 4:42 am

"Create a case for this"... newbie here... what is it you want me to do?

From what I gather it would have to be an enhancement request to get that removed...?
kschuster
 
Posts: 53
Joined: Fri Mar 28, 2008 4:42 am
Location: Houston, TX

Re: showFileOpenDialog - Remove ALL Files from filter

Postby jcompagner » Thu May 03, 2012 12:34 pm

Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8284
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Methods

Who is online

Users browsing this forum: No registered users and 1 guest