Page 1 of 1

How to set Filter Index and Default Name for File SaveAs Dialog

Posted: Fri Feb 12, 2021 5:33 pm
by RMan
How would I specify what Filter Index and Filename to use for the Save As Dialog Box?

Basically I'm trying to add menu selections in to Save As Optimized, Save as PDF/A and such to specific locations (but prompt the user if they want to change it) so maybe I'm missing an easy way to do those functions with the SDK? From what I can tell we would have to use the cmd.saveAs command and set the default name and filter index in the dialog box.

I've tried intercepting the e_document_beforeSave event which allows me to change the filename but I can't get it to display the dialog box and it just saves the file without the dialog.

Re: How to set Filter Index and Default Name for File SaveAs Dialog

Posted: Thu Feb 18, 2021 1:02 pm
by Sasha - Tracker Dev Team
Hello RMan,

Can you please give a screenshot of what you mean exactly?

Cheers,
Alex

Re: How to set Filter Index and Default Name for File SaveAs Dialog

Posted: Thu Feb 18, 2021 1:22 pm
by RMan
HEre you go. Basically we would like to issued the cmd.saveAs and then populate these two fields in the dialog box when it opens.

SaveAsDialog.jpg

Re: How to set Filter Index and Default Name for File SaveAs Dialog

Posted: Wed Feb 24, 2021 5:18 am
by RMan
Any idea yet on how I can accomplish picking which File Type To Save as in the dialog?