Codeunit 1245 Transform. Rule - Formatting

Base Application, System.IO

Source AL, 131 lines

src/Layers/W1/BaseApp/System/DataExchange/Transformations/TransformRuleFormatting.Codeunit.allines 13 to 28 of 131, Copyright (c) Microsoft Corporation. MIT

codeunit 1245 "Transform. Rule - Formatting" implements "Transformation Rule"{    procedure TransformText(TransformationRule: Record "Transformation Rule"; OldValue: Text; var NewValue: Text);    begin        case TransformationRule."Transformation Type" of            TransformationRule."Transformation Type"::"Title Case":                NewValue := TextToTitleCase(OldValue, TransformationRule."Data Formatting Culture");            TransformationRule."Transformation Type"::"Date Formatting":                NewValue := DateFormatting(OldValue, TransformationRule."Data Format", TransformationRule."Data Formatting Culture");            TransformationRule."Transformation Type"::"Date and Time Formatting":                NewValue := DateTimeFormatting(OldValue, TransformationRule."Data Format", TransformationRule."Data Formatting Culture");            TransformationRule."Transformation Type"::"Decimal Formatting":                NewValue := DecimalFormatting(OldValue, TransformationRule."Data Formatting Culture");        end;    end;

All 131 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