Codeunit 1249 Transform. Rule - Replace

Base Application, System.IO

Source AL, 61 lines

src/Layers/W1/BaseApp/System/DataExchange/Transformations/TransformRuleReplace.Codeunit.allines 11 to 26 of 61, Copyright (c) Microsoft Corporation. MIT

codeunit 1249 "Transform. Rule - Replace" implements "Transformation Rule"{    procedure TransformText(TransformationRule: Record "Transformation Rule"; OldValue: Text; var NewValue: Text);    begin        case TransformationRule."Transformation Type" of            TransformationRule."Transformation Type"::Replace:                NewValue := StringReplace(OldValue, TransformationRule."Find Value", TransformationRule."Replace Value");            TransformationRule."Transformation Type"::"Regular Expression - Replace":                NewValue := RegularExpressionReplace(OldValue, TransformationRule."Find Value", TransformationRule."Replace Value");        end;    end;    procedure IsDataFormatUpdateAllowed(): Boolean;    begin        exit(false)    end;

All 61 lines

Public procedures 5 in 29

TransformText(TransformationRule: Record "Transformation Rule"; OldValue: Text; var NewValue: Text)new in 25
IsDataFormatUpdateAllowed(): Booleannew in 25
CheckMandatoryFieldsInTransformationRule(TransformationRule: Record "Transformation Rule")new in 25
ValidateTransformationRuleField(FieldNo: Integer; var TransformationRule: Record "Transformation Rule"; var xTransformationRule: Record "Transformation Rule"): Booleannew in 25
GetVisibleGroups(TransformationRule: Record "Transformation Rule"; var VisibleTransformationRuleGroups: List of [Enum "Transformation Rule Group"])new in 25