Table of Contents

Codeunit "Fabdis Tools BTCAP"

ID 70345332
Namespace: CapVision.CapBati.FabDis

Properties

Name Value
Access Public
SingleInstance True

Events

OnBeforeConvertTextToFieldType

Se produit lorsqu'un champ texte doit être converti en un type de données particulier.

[IntegrationEvent(False,False)]
local procedure OnBeforeConvertTextToFieldType(FldRef: FieldRef, TextValue: Text, CultureName: Text, var Handled: Boolean)

Parameters

Name Type Description
FldRef FieldRef

Référence du champ dans lequel placer le texte converti.

TextValue Text

Texte à convertir.

CultureName Text

Spécifie la culture dans laquelle le texte doit être évalué.

Handled Boolean

true si la convertion a été gérée, false sinon.

Examples

L'exemple de code ci-dessous présente comment vous pouvez convertir un texte en un champ de type booléen avec comme valeur vrai si le texte est 'oui'. [EventSubscriber(ObjectType::Codeunit, Codeunit::"Fabdis Tools BTCAP", OnBeforeConvertTextToFieldType, '', false, false)] local procedure OnBeforeConvertTextToFieldType(FldRef: FieldRef; TextValue: Text; CultureName: Text; var Handled: Boolean) begin if FldRef.Type = FieldType::Boolean then begin FldRef.Value := TextValue = 'oui'; Handled := true; end; end;

See also