Override file overwrite request during HTML export

Hello,

i've set up an automatic HTML export using Doors in batch mode (see forum post).

The procedure works fine but in some particular modules there is a popup with a request to overwrite some files, for example a picture, see attached file.

This pop up stops the export execution as it require a manual click to confirm the overwrite.

Could this pop up been overrire or is it possible to automatically give the yes command if it appears?

 

Best regards

 

Samuele Mazzoleni

 


SamueleMazzoleni - Fri May 12 08:36:15 EDT 2017

Re: Override file overwrite request during HTML export
Eric_ccc - Mon May 15 02:47:31 EDT 2017

could try something similar to what shown below.

Works for my rtf export.

 

bool fileOverwriteOK_(string s) { print "Over write the file: " s "\n"; return true }

 

fileOverwriteOK_ this is a command not listed in the dxl_reference. Maybe there is sth for image also.

 

By the way, override the message DB could not by pass the overwrite pop-up!!

Re: Override file overwrite request during HTML export
SamueleMazzoleni - Wed May 17 02:11:07 EDT 2017

Thanks for the reply, indeed i don't want to use the function to open the popup, but i need to be able to give command to it via dx script, in case it appears during an automatic export .

I don't know if it's possible to get the pop up box handle and send "yes" or "yes to all" command ot it.

Can anyone help?

 

Best regards

 

Samuele

Re: Override file overwrite request during HTML export
Eric_ccc - Thu May 18 01:54:04 EDT 2017

SamueleMazzoleni - Wed May 17 02:11:07 EDT 2017

Thanks for the reply, indeed i don't want to use the function to open the popup, but i need to be able to give command to it via dx script, in case it appears during an automatic export .

I don't know if it's possible to get the pop up box handle and send "yes" or "yes to all" command ot it.

Can anyone help?

 

Best regards

 

Samuele

maybe i did not make it clear. 

 

this override below

bool fileOverwriteOK_(string s) { print "Over write the file: " s "\n"; return true }

will not give you any pop-up. it returns 'true'  during exporting.

 

"By the way, override the message DB could not by pass the overwrite pop-up!!"

the message DB here is the "confirm message box" in dxl manual. I mentioned this because if you override the confirm dialog box, when there is existing file, the overwritten warning will still pop up.

To avoid the pop-up, "fileOverwriteOK_" is the function to be override.

Hope it help: )

Re: Override file overwrite request during HTML export
SamueleMazzoleni - Thu May 18 06:03:52 EDT 2017

Thank you very much,

I didn't understand your answer.

I had to override both function fileOverwriteOK_ with one and two inputs paramters and it works.

 

//Now override file_OverwriteOK_ function that is called in html.dxl, to return true without requiring driver input
bool fileOverwriteOK_(string s) { print "Over write the file: " s "\n"; return true }
bool fileOverwriteOK_(string s, bool i) { print "Over write the file: " s "\n"; return true }

// now include the html.dxl -> this will pop up the dialog, but not halt execution 
// due to the overrides above 
#include <standard/export/html.dxl>

Ragards

 

Samuele