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
[regexp -nocase -all -inline {@Value(expression ()) } @Value(Attribute)] or something like that.
-----
proc searchList {} {
set values {}
for {set i 0} {[FME_AttributeExists "_list{$i}"]} {incr i} {
lappend values [FME_GetAttribute "_list{$i}"]
}
set index [lsearch -exact -nocase $values [FME_GetAttribute "_pattern"]]
if {0 <= $index} {
FME_SetAttribute "_first_matched_element" [lindex $values $index]
}
return $index
}
-----
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.