Skip to main content

Data Definition Configuration

Summary

This page documents configuration for data definitions and their child source items: TvxDataDef, TvxDBDef, TvxFileDef, TvxDefItem, TvxDefDB, TvxDefFile, and TvxAutoSearchItem. These settings describe where data comes from, how files are parsed or generated, and how related data sources and file connections are linked.

Source Code Locations

  • Classes\vxDataDef.pas:23 - TvxAutoSearchItem.
  • Classes\vxDataDef.pas:71 - TvxDefItem.
  • Classes\vxDataDef.pas:233 - TvxDataDef.
  • Classes\vxDataDef.pas:987 - TvxDataDef.New defaults.
  • Classes\vxDBDef.pas:17 - TvxDBDef.
  • Classes\vxDBDef.pas:100 - TvxDBDef.New defaults.
  • Classes\vxFileDef.pas:17 - TvxFileDef.
  • Classes\vxFileDef.pas:323 - TvxFileDef.New defaults.
  • Forms\frmSetupDBDefs.pas:20 - DB definition form.
  • Forms\frmSetupFileDefFlat.pas, frmSetupFileDefXML.pas, frmSetupFileDefEDI.pas, frmSetupFileDefExcel.pas, frmSetupFileDefJSON.pas - file definition forms.

Important Classes

  • TvxDataDef
  • TvxDBDef
  • TvxFileDef
  • TvxDefItem, TvxDefDB, TvxDefFile, TvxDefManager
  • TvxAutoSearchItem
  • TvxDBLink
  • TvxFileCon

Important Forms

  • TSetupDBDef
  • TSetupFileDefFlat
  • TSetupFileDefXML
  • TSetupFileDefEDI
  • TSetupFileDefExcel
  • TSetupFileDefJSON
  • TSetupMapDesign

Important Services

  • VeloxService loads definitions for flows, maps, reports, transports, and file monitors.
  • VeloxAPIService loads request/response definitions for REST actions.
  • Database tables: VX_DBDEF, VX_FILEDEF.
  • File connection links are stored with FileConFIDS.
  • Database connection child links are stored through TvxDBLink.

Data Definition Base Settings

TvxDataDef is the base for database and file definitions.

SettingValid valuesDefaultImpact
FileConFIDSGUID stringEmptyGuidLinks a file definition to a file connection module.
DisableStringTrimBooleanTrueControls string trimming behaviour for loaded data.
TruncateStringsBooleanFalseControls whether strings may be truncated to field sizes.

Runtime fields such as Request, Response, Active, EmptyForRead, FileConLoaded, and transaction state are not published configuration, but they control execution state.

Data Definition Module Identity

ModuleTableModule descriptionDefault module name
TvxDBDefVX_DBDEFDB DefNew DB Def
TvxFileDefVX_FILEDEFFile DefNew File Def

Definition Item Settings

TvxDefItem describes a source/destination item inside definition managers and flow actions.

SettingValid valuesDefaultImpact
SourceNameStringNew Data Item; subclasses override to New DB Definition Item or New File Definition ItemDisplay/source name.
SourceTypeTvxDefinitionTypefstNoData; TvxDefDB sets fstDatabase; TvxDefFile sets fstFileIdentifies whether the item points to DB, file, web, none, or legacy JSON source type.
SourceFIDSGUID stringEmptyGuidLinks to source definition module.
FileConFIDSGUID stringEmptyGuidLinks to a file connection when the source item needs file access.
RuntimePopupBooleanFalseEnables a runtime popup/selection behaviour. Exact UI/runtime call sites were not fully traced here.
AllowDBChangeBooleanFalseAllows database connection changes for the item. Exact enforcement was not fully traced here.
UniqueTransactionBooleanNot explicitly assigned in constructor; Delphi default is FalseIndicates transaction isolation/uniqueness behaviour for this item. Exact enforcement was not fully traced here.

Auto Search Settings

TvxAutoSearchItem extends TvxVariable and stores criteria metadata.

SettingValid valuesDefaultImpact
DataViewNameString''Dataview name used to build criteria item name.
TableNameString''Table name used to build criteria item name.
FieldNameString''Field name used to build criteria item name.
ActionFIDSGUID stringEmptyGuidFlow/action reference for this auto search item.
EnabledBoolean runtime property, not publishedTrueControls whether criteria is active.

DB Definition Settings

SettingValid valuesDefaultImpact
UpdateIDFieldsBooleanFalseEnables ID field update behaviour. Legacy ID management values may migrate this to true.
CustomIDFieldString''; legacy fimFloID migration sets XFLO_IDCustom ID field name.
CustomIDValueString/expression''; legacy fimFloID migration sets XFLO_ID + 1Custom ID value/expression.

DoUpdateIDFields is public runtime state and is not persisted.

File Definition Common Settings

SettingValid valuesDefaultImpact
FileTypeTvxFileTypeNot explicitly assigned in TvxFileDef.New; enum field default is fftFlatFileSelects flat, XML, EDI, Excel, or JSON processing. fftExcel is old and maps to fftExcelFile.
DelimitedBooleanFalseIndicates delimited flat-file parsing/writing.
DelimiterInteger character code44Field delimiter, default comma.
RecDelimiterTvxLineBreakTypeflbCRLFRecord delimiter mode.
RecCustomDelimiterString''Custom record delimiter when RecDelimiter = flbCustom.
QuoteStringsBooleanFalseQuotes string fields during output.
QuoteCharInteger character code34Quote character, default double quote.
QuoteAnyDataTypeBooleanFalseApplies quote behaviour beyond strings.
ExcludedTopCardinal0Number of top records/lines excluded.
ExcludedBottomCardinal0Number of bottom records/lines excluded.
FileEncodingTvxFileEncodingfeANSIFile encoding.
WriteBOMBooleanFalseWrites byte order mark where supported by the writer.
PrintHeaderRowBooleanFalseIncludes header row when writing formats that support it.
TrimStringsBooleanFalseTrims strings during file processing.
IgnoreInvalidLinesBooleanFalseIgnores invalid flat-file lines.
IgnoreExtraFieldsBooleanFalseIgnores extra fields in input.
IgnoreInvalidNumbersBooleanFalseIgnores invalid numeric values.
IgnoreUndefinedRecordsBooleanFalseIgnores records not defined by the file definition.
IgnoreNullRecordsBooleanFalseIgnores null records.
IgnoreTruncatedFieldDataBooleanFalseIgnores truncated field data warnings/errors.
IgnoreWarningInvalidMaskDTFBooleanFalseIgnores invalid date/time format mask warnings.
ExtendedCharsAllowedBooleanFalseAllows extended characters.
AutoDetectRecordDelimiterBooleanFalseAuto-detects record delimiter.
AutoDetectEncodingBooleanTrueAuto-detects input encoding.
AttemptOtherEncodingBooleanTrueAttempts alternate encodings.
EnableNullInDataBooleanFalseAllows null bytes/data in flat-file engine processing; comment notes normal nulls can stop loading.

JSON File Definition Settings

SettingValid valuesDefaultImpact
JSONSchemaString''JSON schema/configuration text.
JSONRootTypeTvxJSONRootType; public runtime property, not publishedvrtNotSetRoot JSON shape used by runtime.

XML File Definition Settings

SettingValid valuesDefaultImpact
BlankXMLStringNot explicitly assigned in New; Delphi string default is ''Blank XML/template text.
XSDSchemaString''XSD schema text.
SchemaLocationString''Schema location.
TargetNameSpaceStringSet from loaded schema document when available; otherwise not explicitly assignedTarget namespace from schema.
ValidateXMLBooleanTrueEnables XML validation.
ResolveExternalsBooleanTrueResolves external references.
FixBadEncodingBooleanFalseAttempts to fix bad encoding.
MultipleRootNodesBooleanFalseIndicates multiple schema roots.
MultipleRootNodeSetBooleanFalseTracks whether multiple root node selection has been set.
SchemaRootNodeIndexInteger-1Selected root node index.
SchemaRootNodeNameString''Selected root node name.
IncludeXSINamespaceBooleanTrueIncludes XSI namespace.
IncludeXSDNamespaceBooleanTrueIncludes XSD namespace.
IncludeXMLPrologBooleanTrueIncludes XML prolog.
TargetNameSpaceNameString''Namespace prefix/name setting.
NamespacesAsNeededBooleanFalseWrites namespaces as needed rather than globally.
UseXSINilForNullsBooleanFalseWrites xsi:nil for nulls.
UTF16EncodingBooleanFalseEnables UTF-16 XML output/input behaviour.
ForceAttributeNSPrefixBooleanNot explicitly assigned in New; Delphi default is FalseForces namespace prefix on attributes.
UseXSITypeBooleanFalseUses xsi:type.
AllowDTDReferencesBooleanFalseAllows DTD references.
AbstractAssignmentsTStringListEmpty listMaps abstract schema assignments.
AnyAssignmentsTStringListEmpty listMaps xs:any assignments.
ArrayAssignmentsTStringListEmpty listMaps array assignments.

EDI File Definition Settings

SettingValid valuesDefaultImpact
SegmentTerminatorInteger character code39EDI segment terminator, default apostrophe.
ElementDelimiterInteger character code43EDI element delimiter, default plus.
SubElementDelimiterInteger character code58EDI sub-element delimiter, default colon.
EscapeCharInteger character code63EDI escape/release character, default question mark.

Excel File Definition Settings

SettingValid valuesDefaultImpact
ExcelAutoDetectFormatBooleanTrueAuto-detects Excel format.
ExcelFormatTvxExcelFormatfefXLSXExcel file format.
ExcelPasswordString''Excel workbook password. Code does not show encryption for this property in TvxFileDef.
ExcelTemplateString''Excel template reference/content. Exact runtime use not fully traced here.

Runtime State

SettingValid valuesDefault/resetImpact
FileNoInteger1Counter used when processing file records.
FixedLengthSizeInteger-1Calculated fixed-length size.
DesignRunBooleanFalseIndicates design-time run.
FileEngineTvxFileEnginenilRuntime parser/writer engine.
SchemaCache, SchemaDocMSXML objectsCreated in constructor when availableXML schema processing support.

Persistence Notes

  • File definition type-specific forms use the same TvxFileDef class with FileType determining effective behaviour.
  • TvxFileDef.GetModuleType returns class-name strings such as TvxFileDefFlat, TvxFileDefXML, TvxFileDefEDI, TvxFileDefExcel, and TvxFileDefJSON.
  • TvxDBDef.ReadOldIDManagement migrates older ID-management settings into UpdateIDFields, CustomIDField, and CustomIDValue.

Unclear Areas

  • RuntimePopup, AllowDBChange, and UniqueTransaction are persisted but their full runtime enforcement was not fully traced in this pass.
  • TargetNameSpace is derived from schema loading in code; its default before schema inspection is not explicitly assigned in New.