Grooper Help - Version 25.0
25.0.0017 2,127
  • Overview
  • Help Status

Data Element

Node Grooper.Core

Serves as the abstract base class for all data extraction elements in Grooper, representing a unit of extracted, modeled, or validated data within a document.

Remarks

Overview

The DataElement class is the foundation of Grooper's data extraction hierarchy. It provides the core structure and behavior for all elements that participate in data modeling, extraction, validation, and presentation.

All concrete data extraction objects—such as Data Field, Data Column, Data Table, Data Section, and Data Model—inherit from Data Element, enabling a unified approach to configuration, extension, and runtime processing.

Key Features

  • Unified Data Model: Forms the basis for fields, tables, sections, and containers, supporting both simple and complex document schemas.
  • Extraction and Validation: Defines abstract methods for extraction (FindInstances) and instancing (NewInstance), which are implemented by derived types to perform data capture and validation.
  • Extensibility: Supports property overrides, extensions, and dynamic behaviors, allowing for customization and adaptation to diverse document types and business rules.
  • UI and Presentation: Provides properties for controlling appearance, visibility, CSS styling, and integration with the Grooper Data Viewer and other UI components.
  • Hierarchy and Navigation: Supports parent/child relationships, ancestor/descendant traversal, and code path resolution for referencing and organizing data elements.

Usage Scenarios

  • Data Modeling: Use DataElement-derived types to define the structure of a document's data, including fields, tables, and sections.
  • Extraction Logic: Implement or configure extraction logic for each element, leveraging the unified interface for runtime processing.
  • Validation and Overrides: Apply validation rules, property overrides, and extensions to tailor extraction and presentation for specific document types.
  • Custom Extensions: Extend DataElement to create custom data elements or behaviors as needed for advanced scenarios.

Relationships

  • Data Field: Represents a single extracted value (e.g., "Invoice Number").
  • Data Column: Represents a column in a table, extracting values for each row.
  • Data Table: Represents a tabular structure, containing columns and rows.
  • Data Section: Represents a logical grouping of related fields or tables.
  • Data Model: The root container for all data elements in a content type.

Best Practices

  • Use Data Element as the base for all custom data extraction objects to ensure compatibility with Grooper's extraction, validation, and UI systems.
  • Leverage property overrides and extensions to adapt inherited elements for specialized use cases.
  • Reference DataElement instances by code path or ID for dynamic behaviors, scripting, or advanced configuration.

Properties

NameTypeDescription
General
Import Source String

Used with import operations.. The source element name.

Appearance
Behavior

Design Tabs

General View properties of this element, along with a preview of its layout in a Data Grid.
Reports View reports for a node.
Tester Test data extraction for a Data Element.
Advanced View or edit advanced details about a node.

Context Menu Commands

Command Shortcut Description
variable_remove Remove Overrides Removes property overrides from a Data Element for a single property or for all properties.

Derived Types

There are 5 implementations of Data Element.

Data Column Represents a column in a DataTable, defining how tabular data is extracted, validated, and displayed for each row in a document.
Data Field Represents a single extracted or user-entered value within a document's data model.
Data Model Defines the root container for a document's extracted data, organizing fields, sections, and tables for data extraction, validation, and presentation.
Data Section Defines a hierarchical container for related data elements within a document, enabling logical grouping, extraction, and validation of complex data structures.
Data Table Represents a configurable, extractable table structure for capturing and validating tabular data from documents.

See Also

Used By

Notification