Type: Save
Parent: Button
This element is used to determine whether or not a config file is to be saved before executing the action defined in the button element.
If the filename attribute is set, the changed config is written to this file instead of the original file. Therefore it is possible to savely test a changed config before writing it to the production system.
| Attribute | Description | Usage |
|---|---|---|
| filename | Declares the alternative filename to save the file to. If not set, all changes will be written to the original file. | optional |
<button name="save" displayname="Save" scope="global">
<save />
</button>
If the save element is defined like this, the config is saved back to its original file as soon as the button is pressed.
<button name="save" displayname="Save" scope="global">
<save filename="${filename}.webcfg" />
</button>
If the save element is defined like this,
the config is saved to a new file that has the same
filename as the original file with the appendix
".webcfg". This way it is possible to
savely test the new config file (e.g. in a script that
is defined in an action element and that
checks the .webcfg file) before replacing the
productive config file with the changed one.
Note: The save element is only working when the button has a global scope!
top