⟵ hearthere ⟶
  • Quick start
  • Install MIT
  • Install PRO
  • Updating
  • Optimization
  • Update v4-v6
  • Backups
  • Console utility bin/totum
  • Basics for users
  • Interface and Layout
  • Tables and their parameters
  • Prefilter
  • Fields and their parameters
  • Syntax
  • Code, actions, formatting
  • Relational relationships
  • Calculation order and calculation units
  • Auto-complete calculations and timing
  • Duplicate rows and cycles
  • Duplication of Rows
  • Duplication of Cycles
  • Code on Duplication
  • Quick Variable duplicatedId
  • Comparisons
  • Functions
  • Debugging
  • Print and CSV
  • API
  • Roles and users
  • Notifications
  • Scheduled Actions
  • System tables
  • Trees
  • Anonymous tables
  • External Forms
  • Exporting and importing tables
  • [PRO] MeiliSearch
  • [PRO] Databases
  • [PRO] Custom CSS
  • [PRO] Custom docs
  • [PRO] LDAP AD
  • [PRO] File versions
  • [PRO] List-unsubscribe
  • [PRO] Dynamic fields
  • [PRO] Only Office
  • [PRO] Auth Tokens
  • [PRO] 2FA
  • [PRO] Superlang
  • [PRO] Daemons
  • [PRO] Profiler
  • Connecting functions
  • [SRV] Installation and Connection
  • [SRV] Export, PDF, Upload, and Preview
  • [SRV] XLSX/DOCX Generators
  • Duplication of Rows and Cycles

    Duplication of Rows

    Algorithm for determining the field value when duplicating

    • With active copyOnDuplicate and the absence of a calculated value or active codeOnlyInAdd or a set manual value — the value from the duplicated row.

    • If there is no default or code — the value from the duplicated row.

    • If the field type is Unique and it was overridden — the new value is written.

    • In all other cases, the value is recalculated based on the data of the new row.

    Duplication of Cycles

    When duplicating a cycle, the values in the fields of all its tables are fully duplicated.

    Table versions in the duplicated copy remain the same as in the duplicated cycle.

    Action codes for addition do not trigger.

    Code on Duplication

    If there is code on duplication, it is executed fully instead of the standard duplication mechanism.

    When executing the code, the variable $#ids will be available, containing the list of id of the duplicated rows (marked with a checkmark).

    Quick Variable duplicatedId

    Only for CODE when adding a duplicated row!

    ex: $#duplicatedId
    

    Returns the id of the row from which the duplication was made.

    If the addition does not occur through duplication, it returns 0.