[v11 javascript bug] app.browseForDoc cFilenameInit partially broken  SOLVED

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

User avatar
Mathew
User
Posts: 829
Joined: Thu Jun 19, 2014 7:30 pm

[v11 javascript bug] app.browseForDoc cFilenameInit partially broken

Post by Mathew »

In v11 running app.browserForDoc() with cFilenameInit set to *.twopart.suffix does not work any more. It only seems to recognize a single suffix such as *.pdf

To reproduce:
Make a pdf file and name it "two part.suffix.pdf" and save it.
run the following, and try to browse to the file. It will not show:

Code: Select all

app.browseForDoc({cFilenameInit: '*.suffix.pdf'})
image.png
You do not have the required permissions to view the files attached to this post.
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 12867
Joined: Wed Jan 03, 2018 6:52 pm

Re: [v11 javascript bug] app.browseForDoc cFilenameInit partially broken

Post by Daniel - PDF-XChange »

Hello, Mathew

Thank you for the report, I see the same, while the field is indeed filled with the double suffix string, it fails to show any results even when they should be visible. I have passed it along to the team for review.

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
[email protected]
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2488
Joined: Thu Jun 30, 2005 4:11 pm

Re: [v11 javascript bug] app.browseForDoc cFilenameInit partially broken  SOLVED

Post by Vasyl - PDF-XChange »

Hi Mathew.

This one will be fixed in the upcoming build.
Thanks for the report.

Cheers.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.