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

Copy Base

Data Action Grooper.Core

Copy operations are Data Actions which copy or move data from one Data Element to another.

Remarks

CopyBase is an abstract Data Action that provides the foundation for copying or moving data between Data Elements.


Overview

  • Used as a base class for actions that copy or move data, such as field values, table rows, or section instances.
  • Supports copying between fields, tables, sections, and other data element types.
  • Can be extended to implement custom copy logic or additional options.

Usage Scenarios

  • Copy a field value:
    Transfer a value from one field to another.
  • Copy a table or section:
    Duplicate rows or section instances from a source to a target.
  • Move data:
    Use the Move property to clear the source after copying.
  • Conditional copy:
    Use the Trigger property to filter which records are copied.
  • Copy with child actions:
    Use the Actions property to define how child elements are copied.

Example

Suppose you want to copy the value from "FieldA" to "FieldB" only if "FieldA" is not blank, and then clear "FieldA":

  • Set SourceElement to "FieldA"
  • Set TargetElement to "FieldB"
  • Set Trigger to !string.IsNullOrEmpty(FieldA)
  • Set Move to true

Related Concepts

  • Data Action: Base class for data manipulation actions.
  • Append, Copy: Derived classes implementing specific copy behaviors.

For more information, see the documentation for Data Action and derived copy actions.

Properties

NameTypeDescription
General
Options
Info

Context Menu Commands

Command Shortcut Description
conversion_path Auto Map Automatically maps source elements to target elements for copy or move operations in a Data Action.

Derived Types

There are 2 implementations of Copy Base.

Append Appends one or more elements to a collection.
Copy Copies or moves data from one data element to another.

Used By

Notification