Column Properties

Column Properties

Developers can utilize the xls.handlers table to adjust column properties.

Additionally, the xls.columns table allows developers to define columns for REST API objects.

DataType Properties

SaveToDB products leverage column properties in connection wizards, SELECT commands, and when saving changes.

The database metadata provides complete column descriptions for tables and views only.

OData metadata offers comprehensive column descriptions for most entity types.

However, the following objects may lack sufficient column information:

  • Stored procedures
  • SQL commands
  • REST API results
  • Dynamic OData entity and complex types

You can define column data types using the following values in the EVENT_TYPE field:

  • BitColumn
  • DataTypeBit
  • DataTypeBoolean
  • DataTypeDate
  • DataTypeDateTime
  • DataTypeDateTimeOffset
  • DataTypeDouble
  • DataTypeInt
  • DataTypeGuid
  • DataTypeString
  • DataTypeTime

Use BitColumn to format integer-type columns as checkboxes with three possible values: 0, 1, and NULL.

Use the DataType<Type> value to specify the data types of columns or parameters.

For example:

IDTABLE_SCHEMATABLE_NAMECOLUMN_NAMEEVENT_NAMEHANDLER_SCHEMAHANDLER_NAMEHANDLER_TYPEHANDLER_CODE
 s02code_cashbookitem_idDataTypeIntATTRIBUTE

Disabling Features

You can use the following event types to disable unwanted features:

  • DoNotChange

  • DoNotSave

  • DoNotSelect

  • DoNotSort

  • DoNotTranslate

  • DoNotChange: Prevents manual changes to the column.

  • DoNotSave: Excludes columns from the INSERT and UPDATE statements used for saving changes.

  • DoNotSelect: Prevents the column from being selected in connection wizards. Note that users can still manually edit the query in Microsoft Excel.

  • DoNotSort: Disables sorting for columns or entire tables in DBEdit, DBGate, and ODataDB. SaveToDB does not disable sorting in Microsoft Excel.

  • DoNotTranslate: Prevents translation of column headers or entire tables.

Formula Properties

You can use the following formula-related properties:

  • ConvertFormulas
  • DoNotConvertFormulas
  • Formula
  • FormulaValue

For more details, see the Converting Formulas topic.

To convert text hyperlinks into hyperlink objects, use the following type:

  • AddHyperlinks

For more information, refer to the Converting Hyperlinks topic.

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.