DIAdem Help

Object: PropertyValueMapping

  • Updated2024-09-12
  • 1 minute(s) read

Object: PropertyValueMapping

The PropertyValueMapping mapping combines all rule for mapping a property in the data preparation.

The following example creates a mapping for the name property at channel level and displays the search pattern, the replacement pattern, an example text that needs to be replaced, and the replaced example text:

VBScriptPython

 

Dim oMyMapper, oMyChnNameMapping, oMyRule
Set oMyMapper = Navigator.Settings.CreateValueMapper()
Set oMyChnNameMapping = oMyMapper.Mappings(eSearchChannel).Add("name")
Set oMyRule = oMyChnNameMapping.Rules.Add(_
    "([[:alpha:]]+)([\_\-\/\\\?\ \:]+)([[:digit:]]+)","$1~text~$3","Example_1")
MsgBox "Pattern: " & oMyRule.Pattern & vBCrLf _
& "Scheme: " & oMyRule.Schema & vBCrLf _
& "Example to map: " & oMyRule.Example & vBCrLf _
& "Mapped example: " & oMyRule.MapProperty(oMyRule.Example)

Properties

PropertyName | Rules

Methods

MapProperty