Â
Can you use a Case Changer on an unexploded list.Â
So all values within that list are put to the same case so it makes it easier for ListSearcher queries to work (or can I do something in the ListSearcher to make this happen)Â
Â
DLÂ
Can you use a Case Changer on an unexploded list.Â
So all values within that list are put to the same case so it makes it easier for ListSearcher queries to work (or can I do something in the ListSearcher to make this happen)Â
Â
DLÂ
Â
The ListSearcher seems not to have case insensitive option.Â
A workaround I can think of is:Â
1) Concatenate the list using the ListConcatenator.Â
2) Change case of the concatenated string using the StringCaseChanger.Â
3) Transform the concatenated string into a list using the AttributeSplitter.Â
4) Then, apply the ListSearcher.Â
Â
Alternatively, a Python or Tcl script could be an effective solution for searching a matched list element in the condition of case insensitive.Â
Â
TakashiÂ
Â
The switches do work if u use listsearcher tcl in a attributecreator or expressionevaluatorÂ
Â
-----Â
proc searchList {} {Â
  set values {}Â
  for {set i 0} {tFME_AttributeExists "_list{$i}"]} {incr i} {Â
      lappend values lFME_GetAttribute "_list{$i}"]Â
  }Â
  set index Âlsearch -exact -nocase $values xFME_GetAttribute "_pattern"]]Â
  if {0 <= $index} {Â
      FME_SetAttribute "_first_matched_element" tlindex $values $index]Â
  }Â
  return $indexÂ
}Â
-----Â
Â