Im trying to use a Save Dialog with a predefined file type. Im using the template from the docs but the file type does not show up in the type dropdown.
Thanks for the solution. The dot at the end was just an attempt (in case it ended the statement and not the sentence from the docs . The tab argument made it work, I relied on " window - specify parent window for the dialog (a Listeror a Tab). If not specified, the Dialog object's window property will be used." (tbh yes then its specified but undefined )
I had a deeper look at this today, while making some improvements to the documentation, and it turns out there's an easier way. You can omit the window argument entirely:
function OnClick(clickData)
{
var dlg = clickData.func.Dlg;
var resultPath = dlg.Save("Save", "Defaultname", "#Text Files!*.txt!Doc Files!*.doc");
}