Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread TFileComboBox *.PDF
Fri, Feb 2 2018 8:41 AMPermanent Link

erickengelke

Hi,

I'm using TFileComboBox but want to limit searches to *.PDF files.
This box under Elevate seems to default to *.* for the file match pattern.

I haven't looked at the source code for this control... being lazy this time.  But I figure
other people would want that search capability too.

Erick
http://www.erickengelke.com
Fri, Feb 2 2018 10:30 AMPermanent Link

Matthew Jones

erickengelke wrote:

> I'm using TFileComboBox but want to limit searches to *.PDF files.
> This box under Elevate seems to default to *.* for the file match pattern.

FWIW, if someone wants to dig into it, I did this recently in an ASP.NET application, and the key was adding the "accept" to the element in the DOM.
This is what I added to get CSV and Excel files:

<input id="definition-file" type="file" name="file" accept=".xls,.xlsx, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel, text/csv, text/plain, .csv, application/csv" />

I hope that helps someone...

--

Matthew Jones
Fri, Feb 2 2018 1:31 PMPermanent Link

erickengelke

"Matthew Jones" wrote:

erickengelke wrote:

> I'm using TFileComboBox but want to limit searches to *.PDF files.
> This box under Elevate seems to default to *.* for the file match pattern.

>FWIW, if someone wants to dig into it, I did this recently in an ASP.NET application, and the key was adding the >"accept" to the element in the DOM.
>This is what I added to get CSV and Excel files:
>
> <input id="definition-file" type="file" name="file" accept=".xls,.xlsx, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel, text/csv, text/plain, .csv, application/csv" />
>
>I hope that helps someone...

Thanks, you saved me time looking it up.  I will hack it in for now, but I think it would be a nice feature for the future.

Erick
http://www.erickengelke.com
Mon, Feb 5 2018 2:11 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Erick,

<, Thanks, you saved me time looking it up.  I will hack it in for now, but I think it would be a nice feature for the future. >>

I think it's already on the list, but I printed it out anyways, just to be sure.  I'll be doing a new run through the component library after EWB 3 is out, and patching up all of these new attributes/features that were held back because of IE9 being the base reference browser for EWB.

Tim Young
Elevate Software
www.elevatesoft.com
Image