RemoveMultiLanguageValues
You can use this function for Optiva Workflows, and Copy Methods.
Purpose
The function RemoveMultiLanguageValues is used to remove all language-specific values for one or more fields in an Optiva object.
Syntax
int RemoveMultiLanguageValues(string objectSymbol, string objectKey, List<string> fieldNames);
Return Values
If the code is successful a value greater than zero (0) is displayed.
Arguments
| Part | Description |
|---|---|
objSymbol |
The object type or current object type of the data.
Note: Use empty quotation marks to indicate the current symbol of the workflow.
|
objkey |
The object key or the current object key of the data.
Note: Use empty quotation marks to indicate the current object of the workflow.
|
| fieldNames | The name of the field in which the multi-language value of the field is to be removed. |
Description
RemoveMultiLanguageValues is used to remove language values of a field.
This is an example to remove the multi-language values for all supported fields.
Dim rc As Long = RemoveMultiLanguageValues("", "")
Syntax
RemoveMultiLanguageValues(objectSymbol As String, objectKey As String, fieldNames As List (Of String)) As Integer.
Arguments
| Part | Description |
|---|---|
objSymbol |
The object type or current object type of the data.
Note: Use empty quotation marks to indicate the current symbol of the workflow.
|
objkey |
The object key or the current object key of the data.
Note: Use empty quotation marks to indicate the current object of the workflow.
|
fieldNames |
The name of the field in which the multi-language value of the field is to be removed. |
Description
RemoveMultiLanguageValues is used to remove the Description and Comment values in all supported languages.
This is an example to remove the Description and Comment values for all supported fields.
RemoveMultiLanguageValues("", "", New List(Of String) From {"DESCRIPTION", "COMMENT"})
RemoveMultiLanguageValues("", "");
This example removes the multi-language values for all supported fields for the current object on which workflow is launched.
Example 2:List<string> fieldlist = new List<string>();
fieldlist.Add("DESCRIPTION");
RemoveMultiLanguageValues("ITEM", "00551", fieldlist);
This example removes the multilanguage values for the field DESCRIPTION in the Item 00551.
Arguments
| Part | Description |
|---|---|
objSymbol |
ITEM |
objkey |
00551 |
fieldNames |
The field names are passed through the list fieldlist. |
Syntax
int RemoveMultiLanguageValues(string objectSymbol, string objectKey, List<string> fieldNames, List<string> languageCodes)
Arguments
| Part | Description |
|---|---|
objSymbol |
The object type or current object type of the data.
Note: Use empty quotation marks to indicate the current symbol of the workflow.
|
objkey |
The object key or the current object key of the data.
Note: Use empty quotation marks to indicate the current object of the workflow.
|
fieldNames |
The name of the field for which the multi-language value must be removed. |
languageCodes |
The list of language codes for which the multi-language values must be removed. |
Description
RemoveMultiLanguageValues is used to remove the Description specified in multi-language.
This is an example to remove the Description specified in multi-language.
RemoveMultiLanguageValues("", "", New List(Of String) From {"DESCRIPTION"}, New List(Of String) From {"EL-GR"})
RemoveMultiLanguageValues("", "", New List(Of String), New List(Of String) From {"FR-FR"})
List<string> fieldlist = new List<string>();
fieldlist.Add("DESCRIPTION");
List<string> languageCodes = new List<string>();
languageCodes.Add("FR-FR");languageCodes.Add("DE-DE");
RemoveMultiLanguageValues("ITEM", "00551", fieldlist, languageCodes);
This example removes the multilanguage values for FR-FR, DE-DE of the field DESCRIPTION in the Item 00551
Arguments
| Part | Description |
|---|---|
objSymbol |
The object type or current object type of the data.
Note: Use empty quotation marks to indicate the current symbol of the workflow.
|
bjectKey |
00551 |
fieldNames |
The field names are passed through the list fieldlist |
languageCodes |
The language codes are passed through the list languageCodes |