Save as new and activate document (W)

Modified on Mon, 5 Oct at 1:54 PM

This command makes it possible to save a document as new and can run commands on the new document instead of original.

If user tries to save on original path and filename it will prompt the user and inform that this is not possible (and cancel all following commands)

CMD

<Cmd case="BaseExtensions:save-as-new-and-activate" DefaultPath="x" FileName="x"/>

Parameters

DefaultPath

The initial path that the SaveAs dialog should open in, if the original document is not saved beforehand. This path will not be used if the original document is already saved, since the SaveAs dialog then will open in the original document's path. If original document is not saved and DefaultPath is not defined, then it will open in C:\.

FileName

This can either be a hardcoded string or refer to a document property name.

Adding DocProp.-prefix will allow the user to grab values from custom DocProps as well as built-in DocProps from this list.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article