Element Details: Replace+Value
 Back


Available in: Logi Info Source code name: ReplaceValue

Replace a string with a new string on columns that contain the target value. Optionally if the column contains a null value or empty string, define a default value.

The returned string can update the original column, or be stored in a new column. To save the updated strings in a new column use the NewColumnNames attribute.

Element Group:String Elements



ATTRIBUTES

Click attribute Name to drill down for more information.

NamePossible ValuesDescription
CaseSensitive
True
False
Set CaseSensitive to "False" when comparing and matching values regardless of character case. For elements using DataLayer.ActiveSQL, CaseSensitive may be set to "DataSourceCollation". Then case sensitivity is defined by the database column's "collation" which may be sensitive or not. This option can provide better performance for case-insensitive filters. For AnalysisFilter with DataLayer.ActiveSQL and SqlCompareFilter, the default is "DataSourceCollation". The default is "True" for all other elements.
ColumnNames
UserDefined
UserDefined
(Required) A list of column names, separated by commas. For example: OrderID, CustomerID, EmployeeID, OrderDate
CompareType
NotEqual
LessThanOrEqual
LessThan
GreaterThanOrEqual
GreaterThan
Equal
Defines the type of comparison to perform.
DataType
Text
Number
Date
Specifies the type of data present.
DefaultColumnValue
UserDefined
UserDefined
The default value to use if the column does not contain value.
ID
UserDefined
(Required) The ID attribute is a pervasive attribute that uniquely identifies an element within a definition file. The ID needs to be a unique value within the definition.
NewColumnNames
UserDefined
UserDefined
A list of column names, separated by commas. The number of items in this list must match the number in the ColumnNames attribute. For example: OrderID, CustomerID, EmployeeID, OrderDate
NewValue
UserDefined
A new string value.
TargetValue
UserDefined
The string value to seach for.



PARENT ELEMENTS

Click element to drill down for more information.

DataLayer.Cached
DataLayer.CSV
DataLayer.Definition List
DataLayer.Directory
DataLayer.ETL
DataLayer.Excel
DataLayer.Fixed Format File
DataLayer.Google App
DataLayer.Google Spreadsheet
DataLayer.GPX File
DataLayer.JSON
DataLayer.KML File
DataLayer.LDAP
DataLayer.Linked
DataLayer.Plugin
DataLayer.REST
DataLayer.SimpleDB
DataLayer.SP
DataLayer.SQL
DataLayer.Static
DataLayer.Twitter
DataLayer.Web Feed
DataLayer.Web Scraper
DataLayer.Web Service
DataLayer.XML


CHILD ELEMENTS

Click element to drill down for more information.

Else Replace


 Back to top


 Chart Debug