Saving Formulas and Comments

Saving Formulas and Comments

Microsoft Excel supports formulas and comments, but it doesn't retain them when refreshing data.

SaveToDB 8 introduces the Keep Formulas option, which saves formulas internally and restores them after data refreshes.

SaveToDB 10 adds the Keep Comments option, which functions similarly for comments.

Database developers can enable or disable these features on the server side in the xls.handlers table using the following event types:

  • DoNotKeepFormulas
  • DoNotKeepComments
  • KeepFormulas
  • KeepComments

The SaveToDB add-in uses primary key columns, identity columns, or columns with delete object parameter names as row indexes to save and restore formulas and comments. Developers can specify which columns to use as indexes in the HANDLER_CODE field.

If the row number is a suitable index, you can use a special rownum value.

Example Configuration

IDTABLE_SCHEMATABLE_NAMECOLUMN_NAMEEVENT_NAMEHANDLER_SCHEMAHANDLER_NAMEHANDLER_TYPEHANDLER_CODE
 s03usp_budget_requestKeepFormulasATTRIBUTErownum
 s03usp_budget_requestKeepCommentsATTRIBUTErownum

The KeepFormulas and KeepComments handlers also allow you to specify columns for saving and restoring formulas and comments from the database in JSON format within the COLUMN_NAME field.

Example with Specified Columns

IDTABLE_SCHEMATABLE_NAMECOLUMN_NAMEEVENT_NAMEHANDLER_SCHEMAHANDLER_NAMEHANDLER_TYPEHANDLER_CODE
 s03usp_budget_requestrow_formulasKeepFormulasATTRIBUTErownum
 s03usp_budget_requestrow_commentsKeepCommentsATTRIBUTErownum

This feature enables sharing source formulas and comments across all users.

This website is using cookies. By continuing to browse, you give us your consent to our use of cookies as explained in our Cookie Policy.