Nama ERP DocsNama ERP Docs
Home
Namasoft.com
Data Model
GitHub
Home
Namasoft.com
Data Model
GitHub
  • Home

    • Search
    • Guides

      • Entity Flows
      • الفواتير والضرائب والخصومات
      • Supply Chain
      • e-commerce integration (Magento)
      • .
    • Examples
    • Reprocessing Transactions
    • Frequently Asked Questions
    • AI Generated Entity Flows Documentation

      • Core

        • DeleteRelatedEntityAction
        • EAAllowUseAsFromDocOfAField
        • EAAltCodeValidator
        • EAAttachReportResultToRecord
        • EAAutoCollectSignAndSentEInvoice
        • EAAutoEscalateApprovalToFallBackEmployee
        • EAAutoEscalateApprovalToSupervisor
        • EAAutoSendEInvoice
        • EAAutomaticGenerateEntityFromEntityAction
        • EAAutomaticGenerateEntityFromEntityActionWithApproval
        • EACacheEvicter
        • EACalcCurrencyRate
        • EACalcCurrencyRateInDetails
        • EACheckAndUpdateLinkAtOnlinePaymentTransactionSysEntry
        • EACheckDailyBackupOnGoogleDrive
        • EAClearGoogleDriveTrash
        • EACloseFiscalPeriodsInRange
        • EACodeValidator
        • EACopyEmptyAccountsFromBag
        • EADeleteFromAnotherServer
        • EADeleteFromQuery
        • EADeleteOldFiles
        • EADetailsRemover
        • EAEmptifyTomcatTemp
        • EAErrorIfQueryNotMatched
        • EAExecuteUpdateQuery
        • EAExecuteUpdateQueryOnDifferentDatasource
        • EAExportAttachments
        • EAFieldsValuesCalculator
        • EAForceApplyInstallmentEffects
        • EAGenerateDraftEntityFromEntityAction
        • EAGenerateDraftEntityFromEntityActionNoFlush
        • EAGenerateEntityFromEntityAction
        • EAGenerateEntityFromEntityActionNoFlush
        • EAGenerateEntityFromEntityActionNoFlushWithApproval
        • EAGenerateEntityFromEntityActionWithApproval
        • EAGenerateKNetPaymentURLs
        • EAGenerateMyFatoorahPaymentURLs
        • EAGroovyAction
        • EAGuessEntityFromNames
        • EAIgnoringNotFoundTargetFieldsValuesCalculator
        • EAJsonRecordExporter
        • EALoyalityEarnReward
        • EAMakeCreationDateAlwaysAfter
        • EAMakeCreationDateAlwaysBefore
        • EAMakeCreationDateAlwaysBetween
        • EAMakeCreationDateInValueDate
        • EANamaCloudBackupPrepare
        • EAOpenFiscalPeriodsInRange
        • EAPostGoPayOfflinePayment
        • EAPreventChangingFields
        • EAPreventFromDocOfUsageAgain
        • EAPreventUpdateDetailedRemarkLines
        • EAPreventUseAsFromDocOfAField
        • EAPrintFormToPrinter
        • EAPrintReportToPrinter
        • EARecommitFromQuery
        • EARefreshCriticalErrors
        • EARefreshGoogleDriveOrMailToken
        • EARegenAccEffects
        • EARegenAccFromQuery
        • EAReviseUnReviseFromQuery
        • EARevokeApproval
        • EARunEntityFlow
        • EARunEntityFlowFromQuery
        • EARunManualNotification
        • EARunManualNotificationFromQuery
        • EARunTaskSchedule
        • EASQLToCSVEmail
        • EASQLToCSVFile
        • EASaveDraftsFromQuery
        • EASaveRecordsFromQuery
        • EASaveToAnotherServer
        • EASaveToAnotherServerUsingJSON
        • EAScaleImage
        • EAScaleMasterFileImage
        • EASendHttpRequestByTempo
        • EASetCreationDateToEndOfDay
        • EASetCreationDateToStartOfDay
        • EASetFieldByTemplate
        • EASortFields
        • EAWathqAddressFetcher
        • EAWathqBasicInfoFetcher
        • EAWathqCommercialInfoFetcher
        • EAWordTemplate
        • SQLDraftImporter
        • SQLDraftImporterFromDifferentDataSource
        • SQLImporter
        • SQLImporterFromDifferentDataSource
        • Field Maps in Nama ERP - Complete Guide (AI-Generated by Claude.ai)
        • .
      • Accounting Module
      • AI Module
      • Contracting Module
      • CRM Module
      • EGTax Reader Module
      • Freight Management System Module
      • Hospital Management System Module
      • HR Module
      • e-commerce Integration Module
      • Manufacturing Module
      • POS Module
      • Real Estate Module
      • Service Center Module
      • Supply Chain Module
      • .
    • Release Notes

      • 2016
      • 2017
      • 2018
      • 2019
      • 2020
      • 2021
      • 2022
      • 2025
      • .
    • Video Tutorials

      • Supply Chain Videos
      • Report Wizard Videos
      • Human Resources Videos
      • .

EASetFieldByTemplate

This document was generated using Claude.ai

Overview

Sets an entity field value using a Tempo template that can include dynamic content based on the current entity's data. Processes template placeholders and entity references to generate the final field value.

When This Action Runs

Manual execution for dynamic field population, automated data formatting, content generation based on entity data, or creating calculated field values using complex templates.

How It Works

  1. Identifies target field - Locates the specified field ID in the entity (can be header or detail field)
  2. Processes template - Renders the Tempo template using DomainComplexRenderer with entity data
  3. Replaces placeholders - Substitutes template variables with actual entity field values
  4. Sets field value - Updates the target field with the rendered template result
  5. Handles type conversion - Automatically converts string result to appropriate field type

Parameters

Parameter 1: Field Id (Required) - Target field ID to set (supports header fields and detail collection fields)

Parameter 2: Template (Required) - Tempo template with entity data placeholders

Template Examples

Simple field reference:

Customer: {entity.customerName} - Order: {entity.orderNumber}

Complex formatting:

Invoice #{code} dated {valueDate} 
Amount: {money.netValue} 
Status: {documentFileStatus}

Database Tables Affected

  • Entity Tables - Updates the specified field in the entity's main table or detail collection tables
  • Related Tables - No direct changes, but template may reference related entity data

Important Warnings

⚠️ Field Requirements

  • Target field must exist in the entity structure
  • Field ID can reference header fields or fields within detail collections
  • Invalid field IDs will cause action to fail
  • Field type conversion is automatic but may fail for incompatible data

⚠️ Template Processing

  • Template must use valid Tempo syntax for entity field references
  • Use {fieldName} format for field placeholders
  • Complex templates with conditional logic supported
  • Template parsing errors will cause action failure

⚠️ Data Type Handling

  • String template result is automatically converted to target field type
  • Conversion may fail for incompatible data types (e.g., text to numeric)
  • Date and numeric formatting should be handled within template
  • Large text content may exceed field size limits

⚠️ Entity Data Access

  • Template can only access data from the current entity being processed
  • Related entity data requires proper field references or navigation

⚠️ Field Updates and Business Logic

  • Field updates may trigger entity validation rules
  • Business logic depending on the field may be affected
  • Consider impact on calculated fields and derived values
  • Field changes may cascade to related entities

Module: core

Full Class Name: com.namasoft.infor.domainbase.util.actions.EASetFieldByTemplate

Edit On github
Last Updated:: 7/30/25, 2:51 AM
Prev
EASetCreationDateToStartOfDay
Next
EASortFields