Hello,
This could be implemented by a checkbox placed on a dialog which gives the user the option to select if he wants to overwrite the report template files. The property associated with this checkbox could be used to condition the feature which contains the components of the report files.
This is the complete method:
1. Go to "Dialogs" editor, select a dialog (or create a new one if you choose so) and add a new checkbox from the "New" - "Control" toolbar button. Customize this new control, by editing the following fields from the Properties pane from the right side :
Code: Select all
"Display" - "Text" : "Overwrite User Data"
"Property" - "Property Name" : "OVERWRITE"
2. Go to "Organization" page and create a new feature. Place all the components associated with the report template files in this new feature. Select "Not installed" option from "Installation Behavior" and "Installed if: OVERWITE"
3. Go to files and folders page, select all the report template files, right click on them and choose "Properties". Then go to "Operations" tab and choose "Always overwrite existing files" option.
Best regards,
Sorin