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
Boolean
Boolean
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
Boolean
Boolean
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
Boolean
Boolean
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
Boolean
Boolean
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
Variant
Variant
fieldId
Integer
Integer
Returns
Boolean
Boolean
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
Variant
Variant
fieldId
Integer
Integer
Returns
Boolean
Boolean
Any
procedure Any(): Boolean
Checks if there any translations present at all.
Parameters / Return Value
Returns
Boolean
Boolean
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
Variant
Variant
forFieldId
Integer
Integer
languageId
Integer
Integer
Returns
Boolean
Boolean
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
Variant
Variant
forFieldId
Integer
Integer
Returns
Boolean
Boolean
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
Variant
Variant
forFieldId
Integer
Integer
languageCode
Code[10]
Code[10]
Returns
Boolean
Boolean
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
Variant
Variant
forFieldId
Integer
Integer
languageId
Integer
Integer
defaultTranslation
Text[2048]
Text
returnTranslation
Text[2048]
Text
Returns
Boolean
Boolean
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
Variant
Variant
forFieldId
Integer
Integer
languageCode
Code[10]
Code[10]
defaultTranslation
Text[2048]
Text
returnTranslation
Text[2048]
Text
Returns
Boolean
Boolean
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
Variant
Variant
forFieldId
Integer
Integer
languageId
Integer
Integer
returnTranslation
Text[2048]
Text
Returns
Boolean
Boolean
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
Variant
Variant
forFieldId
Integer
Integer
returnTranslation
Text[2048]
Text
Returns
Boolean
Boolean
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
Variant
Variant
forFieldId
Integer
Integer
languageCode
Code[10]
Code[10]
returnTranslation
Text[2048]
Text
Returns
Boolean
Boolean
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
Variant
Variant
forFieldId
Integer
Integer
languageId
Integer
Integer
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
Variant
Variant
forFieldId
Integer
Integer
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
Variant
Variant
forFieldId
Integer
Integer
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
Variant
Variant
forFieldId
Integer
Integer
languageId
Integer
Integer
newTranslation
Text[2048]
Text[2048]
Returns
Boolean
Boolean
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
Variant
Variant
forFieldId
Integer
Integer
newTranslation
Text[2048]
Text[2048]
Returns
Boolean
Boolean
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
Variant
Variant
forFieldId
Integer
Integer
languageCode
Code[10]
Code[10]
newTranslation
Text[2048]
Text[2048]
Returns
Boolean
Boolean
Delete
procedure Delete(forRecordVariant: Variant; forFieldId: Integer): Boolean
The system translations for the specified record and field id are deleted.
Parameters / Return Value
forRecordVariant
Variant
Variant
forFieldId
Integer
Integer
Returns
Boolean
Boolean
Delete
procedure Delete(forRecordVariant: Variant): Boolean
The system translation for the specified record is deleted.
Parameters / Return Value
forRecordVariant
Variant
Variant
Returns
Boolean
Boolean
Show
procedure Show(forRecordVariant: Variant; forFieldId: Integer)
Opens the system translation page for the specified record and field id.
Parameters / Return Value
forRecordVariant
Variant
Variant
forFieldId
Integer
Integer
ShowForAllRecords
procedure ShowForAllRecords(forTableId: Integer; forFieldId: Integer)
Opens the system translation page for the specified record and field id.
Parameters / Return Value
forTableId
Integer
Integer
forFieldId
Integer
Integer
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
Variant
Variant
fromFieldId
Integer
Integer
toRecordVariant
Variant
Variant
toFieldId
Integer
Integer
languageId
Integer
Integer
Returns
Boolean
Boolean
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
Variant
Variant
fromFieldId
Integer
Integer
toRecordVariant
Variant
Variant
toFieldId
Integer
Integer
languageCode
Code[10]
Code[10]
Returns
Boolean
Boolean
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
Variant
Variant
fromFieldId
Integer
Integer
toRecordVariant
Variant
Variant
toFieldId
Integer
Integer
Returns
Boolean
Boolean
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
Variant
Variant
fromFieldId
Integer
Integer
toRecordVariant
Variant
Variant
toFieldId
Integer
Integer
Returns
Boolean
Boolean
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.