Skip to main content


 

Symptoms


Using a 'WCCompare.Like' WorklistCriteria filter against an 'WCField.ProcessXml' field 'ItemReferences' does not seems to work. Sample code is as below:

WFC.Connection wfc = new WFC.Connection()
wfc.Open("DLX")
WFC.WorklistCriteria crit = new WFC.WorklistCriteria()
crit.AddFilterField(WFC.WCLogical.And, WFC.WCField.ProcessXml, "ItemReferences", WFC.WCCompare.Like, "97274847189")
var wl = wfc.OpenWorklist(crit)
label1.Text = string.Format("Found {0} Worklist Items", wl.Count)
wfc.Close()
 

Diagnoses


The 'WCCompare.Like' WorklistCriteria filter will require the usage of asterisk (*).
 

Resolution

Asterisks were added as below:

crit.AddFilterField(WFC.WCLogical.And, WFC.WCField.ProcessXml, "ItemReferences", WFC.WCCompare.Like, "*97274847189*")




 
Be the first to reply!

Reply