This component represents the translation entry fields. It supplies a Get method for each field in the entry.
The TranslationEntry component represents one translation entry. The component supplies only Get methods. The OnTranslationEntry method in the script gets one parameter called EntryDetails, which is a TranslationEntry component.
Each of the following methods (or attributes) returns the value of a specific field in the translation entry, except for AllFieldsValues, Dump, and NumberOfFields.
|
Attribute |
Description |
|---|---|
|
EntryId |
Translation entry ID. |
|
TableId |
Translation table ID. |
|
TableName |
Translation table name. |
|
TableType |
Translation table type. Must always use capital letters (legal values). |
|
TableReturnType |
The Return type. Must always use capital letters (legal values). |
|
Status |
Must always use capital letters (legal values). One of the following values: {"PENDING","TRANSLATED","IGNORED","DELETED"} |
|
IsManualTranslation |
Manual translation (legal values). |
|
NumberOfFields |
The number of input fields. |
|
FieldName |
Gets one parameter: field number. |
|
FieldValue |
Gets one parameter: field number. |
|
ResourceId |
Resource ID (only if it translated to, otherwise id is 0 and string is empty. |
|
ResourceName |
Resource name. |
|
EventTypeId |
Event type ID. |
|
EventTypeName |
Event type name. |
|
ServiceId |
Service ID. |
|
ServiceName |
Service name. |
|
ContractPartyId |
Contract Party ID. |
|
ContractPartyName |
Contract party name. |
|
TimeZoneId |
Time zone ID. |
|
TimeZoneName |
Time zone name. |
|
TranslatedTo |
Translated to the desired value. |
|
CreatedByAdapterId |
The ID of the adapter that created the translation entry. |
|
CreatedByAdapterName |
The name of the adapter that created the translation entry. |
|
CreatedByUserId |
The ID of the user that created the translation entry. |
|
CreatedByUserName |
The name of the user that created the translation entry. |
|
LastActionDate |
Date of the last action. Date that the last action (e.g., add / translate /ignore /delete) was done to the translation entry. |
|
CreateDate |
Date the translation entry was created. |
|
ModifyDate |
Date the translation entry was last modified. Same as LastActionDate. |
|
Dump() |
Returns string with the translation entry details. |
|
AllFieldsValues(Delimiter) |
Delimiter character that will be inserted between the field values. This method returns string with all values separated by the given delimiter. Example:
Sub OnTranslationEvent(EntryDetails)
If EntryDetails.TableName <> "resourceTable" Then
Tools.Log EntryDetails.Dump
Else
Tools.log EntryDetails.TableName & " (" & EntryDetails.TableId & ") > " & EntryDetails.AllFieldsValues("-")
End If
End Sub
|
| Copyright © 2012 CA. Tous droits réservés. | Envoyer un courriel à CA Technologies sur cette rubrique |