Codeunit CCS DIS Mapping Variable Mgt.
codeunit 5100955 "CCS DIS Mapping Variable Mgt."
Methods
AddWarning
public "CCS DIS Mapping Variable Mgt." AddWarning(Value: Text): None
Adds text to the warning of the mapping entry.
Parameters
Name | Type | Description |
---|---|---|
Value | Text |
The text to be added at the end of the warning text. |
Return Value
None
RemoveRepositoryEntityVariables
public "CCS DIS Mapping Variable Mgt." RemoveRepositoryEntityVariables(): None
Removes the current repository action, type, entity and record from the global variables.
Return Value
None
RemoveRepositoryFieldVariables
public "CCS DIS Mapping Variable Mgt." RemoveRepositoryFieldVariables(): None
Removes the current field identifier from the global variables.
Return Value
None
SetRepositoryEntityVariables
public "CCS DIS Mapping Variable Mgt." SetRepositoryEntityVariables(RepositoryAction: Code[20]; RepositoryType: Code[20]; RepositoryEntity: Text; RepositoryRecord: Text): None
Sets the current repository action, type, entity and record to the global variables.
Parameters
Name | Type | Description |
---|---|---|
RepositoryAction | Code[20] |
The current action as code, such as INSERT, UPDATE, DELETE or RENAME |
RepositoryType | Code[20] |
The current repository type as code, such as TABLE, XML, JSON, SHAREPOINT. |
RepositoryEntity | Text |
The current entity for identification, such as table number. |
RepositoryRecord | Text |
The current record for information, such as RecordId or path in file. |
Return Value
None
SetRepositoryFieldVariables
public "CCS DIS Mapping Variable Mgt." SetRepositoryFieldVariables(FieldIdentifier: Text): None
Sets the current field identifier to the global variables.
Parameters
Name | Type | Description |
---|---|---|
FieldIdentifier | Text |
The field identifier (number or name). |
Return Value
None
SolveVariableText
public "CCS DIS Mapping Variable Mgt." SolveVariableText(ValueText: Text; FldFormatString: Text; var FldValue: Variant): None
Solves a text containing variables.
Parameters
Name | Type | Description |
---|---|---|
ValueText | Text |
The original text containing variables. |
FldFormatString | Text |
The format string to format each variable. |
FldValue | Variant |
The solved value as return. If only one variable exists, the value can be different from text. |
Return Value
None
Events
OnBeforeGetVariableValue
event "CCS DIS Mapping Variable Mgt." OnBeforeGetVariableValue(var VariableName: Text; var VariableValue: Variant)
Subscribe this event to work with custom variables.
The event is fired before a variable is changed into the value.
The variable will be solved based on the order is repository variable, is global variable and is variable in register.
Parameters
Name | Type | Description |
---|---|---|
VariableName | Text |
The variable name to be looked up. |
VariableValue | Variant |
The to be returned value. |
Attributes
Name | Arguments |
---|---|
IntegrationEvent | False, False |
OnBeforeSolveVariableText
event "CCS DIS Mapping Variable Mgt." OnBeforeSolveVariableText(var ValueText: Text; var FldFormatString: Text)
The event is fired before the variable text is solved.
Parameters
Name | Type | Description |
---|---|---|
ValueText | Text |
The original variable text. |
FldFormatString | Text |
The format string to format the variables. |
Attributes
Name | Arguments |
---|---|
IntegrationEvent | False, False |
OnSetVariableValue
event "CCS DIS Mapping Variable Mgt." OnSetVariableValue(var MappingVariable: Record "CCS DIS Mapping Variable"; var FldValue: Variant)
The event is fired before the value is written into the variable in the register.
Parameters
Name | Type | Description |
---|---|---|
MappingVariable | Record "CCS DIS Mapping Variable" |
The mapping variable to set the value to. |
FldValue | Variant |
The value to be set in the register for the variable. |
Attributes
Name | Arguments |
---|---|
IntegrationEvent | False, False |