Skip to main content

Hi,

I have some problem with the WorklistCriteria class. Following code works just fine:

// (criteria.AddFilterField(WCLogical.StartBracket, WCField.None, WCCompare.Equal, null);// WorklistItemOwner = Mecriteria.AddFilterField(WCLogical.Or, WCField.WorklistItemOwner, WCWorklistItemOwner.Me.ToString(), WCCompare.Equal, WCWorklistItemOwner.Me);// )criteria.AddFilterField(WCLogical.EndBracket, WCField.None, WCCompare.Equal, null);



...but when I'm trying to use WCWorklistItemOwner.Other value:

// (criteria.AddFilterField(WCLogical.StartBracket, WCField.None, WCCompare.Equal, null);// WorklistItemOwner = othercriteria.AddFilterField(WCLogical.Or, WCField.WorklistItemOwner, WCWorklistItemOwner.Other.ToString(), WCCompare.Equal, WCWorklistItemOwner.Other);// )criteria.AddFilterField(WCLogical.EndBracket, WCField.None, WCCompare.Equal, null);



...I'm getting an exception "Additional information: Incorrect syntax near the keyword 'AND'.

Incorrect syntax near ')'."

w SourceCode.Workflow.Client.InternalConnection.Call(ArchiveX ar, MessageType msgtype)
w SourceCode.Workflow.Client.InternalConnection.CallFunction(ArchiveX ar)
w SourceCode.Workflow.Client.Worklist.Open(WorklistCriteria wc)
w SourceCode.Workflow.Client.Connection.OpenWorklist(WorklistCriteria Criteria)

 

Anyone can help?

 

Regards,

arnam

Hi,


 


Try if this works:


 


// (
criteria.AddFilterField(WCLogical.StartBracket, WCField.None, WCCompare.Equal, null);

// WorklistItemOwner = other)
criteria.AddFilterField(WCLogical.OrBracket, WCField.WorklistItemOwner, WCWorklistItemOwner.Other.ToString(), WCCompare.Equal, WCWorklistItemOwner.Other);

 


Reply