AX2342
Using Save Type 4
Save Type 4 provides an alternate method for performing certain system administration tasks. For example, instead of creating or editing column aliases within the table editor, you can modify them from within a spreadsheet interface using Save Type 4.
You can use Save Type 4 in any managed Axiom file, but it is most typically used in reports. Save Type 4 is configured on a per sheet basis. Each sheet can have multiple save processes.
To set up Save Type 4 for a sheet:
- 
                                                On the Control Sheet, configure the following settings: - If the sheet is not already set up on the Control Sheet, enter the sheet name into one of the definition columns.
- In the Save to Database Setup section, set Save Type 4 Enabled to On.
 NOTE: The save-to-database settings are protected on the Control Sheet. You must unprotect the sheet using Advanced > Protect > Worksheet before you can configure a save-to-database process. 
- 
                                                In the sheet, define the save-to-database control row and control column by placing the tag [SaveStructure2DB;TableName;CustomSaveTag=Name]in any cell within the first 500 rows of the sheet. The CustomSaveTag parameter is optional and can be omitted if you want to use the default save tags.The following table names are valid for SaveStructure2DB: Table Name Save Type 4 Behavior More Information Axiom.Aliases Create, edit, or delete column aliases Axiom.CalculatedFields Create, edit, or delete calculated fields Axiom.Calculations Create, edit, or delete calculation types Axiom.Columns Create, edit, or delete table columns Axiom.ColumnSequences Create, edit, or delete column sequences Axiom.ColumnSequenceItems Create, edit, or delete column sequence items Axiom.FileGroupAliases Create, edit, or delete file group aliases Axiom.FileGroupVariables Create, edit, or delete file group variables Axiom.Notifications Update notification status (read / not read) Axiom.Principals Create or edit users in security Axiom.ProcessActions Manage active tasks for a process Axiom.ProcessInstances Change the process initiator for a plan file Axiom.Roles Create or edit roles in security Axiom.SystemConfiguration Edit system configuration settings Axiom.Tables Create or edit tables The row containing the tag becomes the control row, and the column containing the tag becomes the control column. 
- 
                                                In the save-to-database control row, for each column to be saved, enter the target column name from the specified table. 
- 
                                                In the save-to-database control column, enter a row tag for each row that you want updated. The specific row tags depend on the table that you are saving to. All Save Type 4 processes support [Save]at a minimum; other tags may also be supported. See the individual topics on updating each table for more information.If no row tag is placed in this column, then the row will be ignored during the save-to-database process. 
- If desired, set up a [SaveError]column to perform custom save validation on rows to be updated. For more information, see Using custom save validation.
If you want to use a Save Type 4 process to edit or update existing values, you can use an Axiom query to bring in the current set of values from the table, then modify the values in the sheet before saving back to the database. For more information, see Using an Axiom query to return system information.
How Save Type 4 blocks are processed
When a save-to-database is executed for a file, the Save Type 1 and Save Type 4 blocks are handled as part of the same process. Axiom Software locates all save blocks that are either Save Type 1 and Save Type 4 and triggers them for processing in order. For more information on how these save processes are ordered and executed, see Order of save block processing.
