Javascript: bPromptToOverwrite does nothing

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

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Post Reply
Peter2
User
Posts: 946
Joined: Mon Sep 13, 2010 10:09 am
Location: Switzerland

Javascript: bPromptToOverwrite does nothing

Post by Peter2 »

I have this code for a forms-button:

Code: Select all

var bezeichnung = this.getField("DESIGNATION");

var nAntwort = app.alert({
    cMsg: "Gelesene Bezeichnung zur Speicherung: " + (bezeichnung.value), 
    cTitle: "Info zur Dateispeicherung",
    nType: 1,
    nIcon: 2
});



if ( nAntwort == 1 )
// speichern
(
    this.saveAs({
    cPath: ("/d/xxx/" + bezeichnung.value + ".pdf"),
    bPromptToOverwrite: false,
    bCopy: false
    })
);
It works OK, but no matter if I set "bPromptToOverwrite" to true or false - the existing output is always overwritten. Why?
(I hope it's not based on my version 8 of PDF..)
PDF-X-Change Pro German
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17906
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Javascript: bPromptToOverwrite does nothing

Post by Tracker Supp-Stefan »

Hello Peter2,

This has been passed on to our devs to look at.
I believe I managed to reproduce the issue (the value of that prompt does seem to be ignored).

Kind regards,
Stefan
User avatar
Paul - Tracker Supp
Site Admin
Posts: 6897
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: Javascript: bPromptToOverwrite does nothing

Post by Paul - Tracker Supp »

Hi Peter2,

bug confirmed by the devs. We will squash it. The ticket (internal only) for reference is RT#6267: Javascript: bPromptToOverwrite does nothing
I do not have an ETA for delivery of this fix, that will ultimately be at the development teamleader's discretion.


cheers
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
oettermann
User
Posts: 2
Joined: Tue Oct 25, 2022 7:48 am

Re: Javascript: bPromptToOverwrite does nothing

Post by oettermann »

I have the same problem. It would be fantastic if this could be solved quickly.

cheers
Daniel
User avatar
Paul - Tracker Supp
Site Admin
Posts: 6897
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: Javascript: bPromptToOverwrite does nothing

Post by Paul - Tracker Supp »

The ticket is open and has a developer assigned to it. I am hoping it will be in the next build, I've made a note that people are asking about it.

The best we can hope for is that this makes it into the next scheduled build which is weeks away. I don't expect to see anything before then at the earliest I'm afraid
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
oettermann
User
Posts: 2
Joined: Tue Oct 25, 2022 7:48 am

Re: Javascript: bPromptToOverwrite does nothing

Post by oettermann »

Is there any news on this issue?

Best
Daniel
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17906
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Javascript: bPromptToOverwrite does nothing

Post by Tracker Supp-Stefan »

Hello Daniel,

I am afraid that there hasn't been any development in that ticket, and there is no new information for us to add here. We will see if we can bump the priority of that one a bit!

Kind regards,
Stefan
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3549
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: Javascript: bPromptToOverwrite does nothing

Post by Ivan - Tracker Software »

Fixed in 10.1.0.
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
Post Reply