Codeunit 5505370 M365 Translation Management
Codeunit 5505370 M365 Translation Management
Methods
MemoEditor
procedure MemoEditor(editorCaption: Text; helpText: Text; var memoText: Text): Boolean
Opens a simple text based memo editor window with the specified window caption and showing provided help- and memo text.
Parameters / Return Value
editorCaption
Text[]Text
helpText
Text[]Text
memoText
Text[]Text
Returns
BooleanBoolean
MemoEditor
procedure MemoEditor(editorCaption: Text; var memoText: Text): Boolean
Opens a simple text based memo editor window with the specified window caption and showing memo text.
Parameters / Return Value
editorCaption
Text[]Text
memoText
Text[]Text
Returns
BooleanBoolean
MemoEditor
procedure MemoEditor(editorCaption: Text; helpText: Text; var memoTempBlob: Codeunit "Temp Blob"): Boolean
Opens a simple text based memo editor window with the specified window caption and showing the text provided in helpText and memoTempBlob Blob field.
Parameters / Return Value
editorCaption
Text[]Text
helpText
Text[]Text
memoTempBlob
Codeunit "Temp Blob"Codeunit “Temp Blob”
Returns
BooleanBoolean
MemoEditor
procedure MemoEditor(editorCaption: Text; var memoTempBlob: Codeunit "Temp Blob"): Boolean
Opens a simple text based memo editor window with the specified window caption and showing the text provided in memoTempBlob Blob field.
Parameters / Return Value
editorCaption
Text[]Text
memoTempBlob
Codeunit "Temp Blob"Codeunit “Temp Blob”
Returns
BooleanBoolean
MemoEditor
procedure MemoEditor(editorCaption: Text; helpText: Text; recordVariant: Variant; fieldId: Integer): Boolean
Opens a simple text based memo editor window with the specified window caption and help text. Edit the value stored in the passed record variant in field id fieldId. Note that the record is modified and must be re-read if directly used afterwards.
Parameters / Return Value
editorCaption
Text[]Text
helpText
Text[]Text
recordVariant
VariantVariant
fieldId
IntegerInteger
Returns
BooleanBoolean
MemoEditor
procedure MemoEditor(editorCaption: Text; recordVariant: Variant; fieldId: Integer): Boolean
Opens a simple text based memo editor window with the specified window caption. Edit the value stored in the passed record variant in field id fieldId. Note that the record is modified and must be re-read if directly used afterwards.
Parameters / Return Value
editorCaption
Text[]Text
recordVariant
VariantVariant
fieldId
IntegerInteger
Returns
BooleanBoolean
Any
procedure Any(): Boolean
Checks if there any translations present at all.
Parameters / Return Value
Returns
BooleanBoolean
Has
procedure Has(forRecordVariant: Variant; forFieldId: Integer; languageId: Integer): Boolean
Returns true, if a system translation is found for the specified record, field id, and language id.
Parameters / Return Value
forRecordVariant
VariantVariant
forFieldId
IntegerInteger
languageId
IntegerInteger
Returns
BooleanBoolean
Has
procedure Has(forRecordVariant: Variant; forFieldId: Integer): Boolean
Returns true, if a system translation is found for the specified record, field id, and the current global language.
Parameters / Return Value
forRecordVariant
VariantVariant
forFieldId
IntegerInteger
Returns
BooleanBoolean
Has
procedure Has(forRecordVariant: Variant; forFieldId: Integer; languageCode: Code[10]): Boolean
Returns true, if a system translation is found for the specified record, field id, and language code.
Parameters / Return Value
forRecordVariant
VariantVariant
forFieldId
IntegerInteger
languageCode
Code[10]Code[10]
Returns
BooleanBoolean
Get
procedure Get(forRecordVariant: Variant; forFieldId: Integer; languageId: Integer; defaultTranslation: Text[2048]; var returnTranslation: Text[2048]): Boolean
Returns true and reads an existing system translation for the specified record, field id, and language id. The specified default translation is returned, if no translation could be found.
Parameters / Return Value
forRecordVariant
VariantVariant
forFieldId
IntegerInteger
languageId
IntegerInteger
defaultTranslation
Text[2048]Text
returnTranslation
Text[2048]Text
Returns
BooleanBoolean
Get
procedure Get(forRecordVariant: Variant; forFieldId: Integer; languageCode: Code[10]; defaultTranslation: Text[2048]; var returnTranslation: Text[2048]): Boolean
Returns true and reads an existing system translation for the specified record, field id, and language code. The specified default translation is returned, if no translation could be found.
Parameters / Return Value
forRecordVariant
VariantVariant
forFieldId
IntegerInteger
languageCode
Code[10]Code[10]
defaultTranslation
Text[2048]Text
returnTranslation
Text[2048]Text
Returns
BooleanBoolean
Get
procedure Get(forRecordVariant: Variant; forFieldId: Integer; languageId: Integer; var returnTranslation: Text[2048]): Boolean
Returns true and reads an existing system translation for the specified record, field id, and language id.
Parameters / Return Value
forRecordVariant
VariantVariant
forFieldId
IntegerInteger
languageId
IntegerInteger
returnTranslation
Text[2048]Text
Returns
BooleanBoolean
Get
procedure Get(forRecordVariant: Variant; forFieldId: Integer; var returnTranslation: Text[2048]): Boolean
Returns true and reads an existing system translation for the specified record, field id, and current global language.
Parameters / Return Value
forRecordVariant
VariantVariant
forFieldId
IntegerInteger
returnTranslation
Text[2048]Text
Returns
BooleanBoolean
Get
procedure Get(forRecordVariant: Variant; forFieldId: Integer; languageCode: Code[10]; var returnTranslation: Text[2048]): Boolean
Returns true and reads an existing system translation for the specified record, field id, and language code.
Parameters / Return Value
forRecordVariant
VariantVariant
forFieldId
IntegerInteger
languageCode
Code[10]Code[10]
returnTranslation
Text[2048]Text
Returns
BooleanBoolean
Get
procedure Get(forRecordVariant: Variant; forFieldId: Integer; languageId: Integer): Text[2048]
Returns an existing system translation for the specified record, field id, and language id.
Parameters / Return Value
forRecordVariant
VariantVariant
forFieldId
IntegerInteger
languageId
IntegerInteger
Returns
Text[2048]Text
Get
procedure Get(forRecordVariant: Variant; forFieldId: Integer; languageCode: Code[10]): Text[2048]
Returns an existing system translation for the specified record, field id, and language id.
Parameters / Return Value
forRecordVariant
VariantVariant
forFieldId
IntegerInteger
languageCode
Code[10]Code[10]
Returns
Text[2048]Text
Get
procedure Get(forRecordVariant: Variant; forFieldId: Integer): Text[2048]
Returns an existing system translation for the specified record, field id, and the current global language id.
Parameters / Return Value
forRecordVariant
VariantVariant
forFieldId
IntegerInteger
Returns
Text[2048]Text
Set
procedure Set(forRecordVariant: Variant; forFieldId: Integer; languageId: Integer; newTranslation: Text[2048]): Boolean
The system translation for the specified record, field id, and language code is written. This can be creation or an update.
Parameters / Return Value
forRecordVariant
VariantVariant
forFieldId
IntegerInteger
languageId
IntegerInteger
newTranslation
Text[2048]Text[2048]
Returns
BooleanBoolean
Set
procedure Set(forRecordVariant: Variant; forFieldId: Integer; newTranslation: Text[2048]): Boolean
The system translation for the specified record, field id, and the current global language is written. This can be creation or an update.
Parameters / Return Value
forRecordVariant
VariantVariant
forFieldId
IntegerInteger
newTranslation
Text[2048]Text[2048]
Returns
BooleanBoolean
Set
procedure Set(forRecordVariant: Variant; forFieldId: Integer; languageCode: Code[10]; newTranslation: Text[2048]): Boolean
The system translation for the specified record, field id, and language code is written. This can be creation or an update.
Parameters / Return Value
forRecordVariant
VariantVariant
forFieldId
IntegerInteger
languageCode
Code[10]Code[10]
newTranslation
Text[2048]Text[2048]
Returns
BooleanBoolean
Delete
procedure Delete(forRecordVariant: Variant; forFieldId: Integer): Boolean
The system translations for the specified record and field id are deleted.
Parameters / Return Value
forRecordVariant
VariantVariant
forFieldId
IntegerInteger
Returns
BooleanBoolean
Delete
procedure Delete(forRecordVariant: Variant): Boolean
The system translation for the specified record is deleted.
Parameters / Return Value
forRecordVariant
VariantVariant
Returns
BooleanBoolean
Show
procedure Show(forRecordVariant: Variant; forFieldId: Integer)
Opens the system translation page for the specified record and field id.
Parameters / Return Value
forRecordVariant
VariantVariant
forFieldId
IntegerInteger
ShowForAllRecords
procedure ShowForAllRecords(forTableId: Integer; forFieldId: Integer)
Opens the system translation page for the specified record and field id.
Parameters / Return Value
forTableId
IntegerInteger
forFieldId
IntegerInteger
Copy
procedure Copy(fromRecordVariant: Variant; fromFieldId: Integer; toRecordVariant: Variant; toFieldId: Integer; languageId: Integer): Boolean
Copies a system translation in the specified language id from one record and field to another record and field if any.
Parameters / Return Value
fromRecordVariant
VariantVariant
fromFieldId
IntegerInteger
toRecordVariant
VariantVariant
toFieldId
IntegerInteger
languageId
IntegerInteger
Returns
BooleanBoolean
Copy
procedure Copy(fromRecordVariant: Variant; fromFieldId: Integer; toRecordVariant: Variant; toFieldId: Integer; languageCode: Code[10]): Boolean
Copies a system translation in the specified language id from one record and field to another record and field if any.
Parameters / Return Value
fromRecordVariant
VariantVariant
fromFieldId
IntegerInteger
toRecordVariant
VariantVariant
toFieldId
IntegerInteger
languageCode
Code[10]Code[10]
Returns
BooleanBoolean
Copy
procedure Copy(fromRecordVariant: Variant; fromFieldId: Integer; toRecordVariant: Variant; toFieldId: Integer): Boolean
Copies system translations for all languages from one record and field to another record and field if any.
Parameters / Return Value
fromRecordVariant
VariantVariant
fromFieldId
IntegerInteger
toRecordVariant
VariantVariant
toFieldId
IntegerInteger
Returns
BooleanBoolean
Move
procedure Move(fromRecordVariant: Variant; fromFieldId: Integer; toRecordVariant: Variant; toFieldId: Integer): Boolean
Moves system translations from one record and field to another record and field if any.
Parameters / Return Value
fromRecordVariant
VariantVariant
fromFieldId
IntegerInteger
toRecordVariant
VariantVariant
toFieldId
IntegerInteger
Returns
BooleanBoolean
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.