Sets the Boolean value for displaying a prompt to save dialog box when an user exists an application, If the value of this property is set to true, a prompt to save dialog box is displayed when the user exits the application. If the value of this property is set to false, then no prompt to save dialog box is displayed when the user exits the application.
These are the truth tables for this property:
Table 224. PromptToSave Truth Table for an Interactive Reporting Document Deployed in the EPM Workspace
In other words, for an document, the Prompt to Save option is determined at the application level and not the document level. In this case, the Prompt to Save Unsaved Files option on the Preferences dialog determines if the user is prompted to save files when exiting the EPM Workspace. For an Interactive Reporting document, the “Remind To Save” setting on the Options dialog box determines whether the prompt occurs or not.
This example shows how to set display the prompt to save property to true for the document:
Documents["Sample 1.bqy"].PromptToSave = true