Get worklist by data field

Last post 10-23-2007, 8:45 AM by Ockert. 1 replies.
Sort Posts: Previous Next
  •  10-23-2007, 7:49 AM 19330

    Get worklist by data field

    Hi,

     Can any one tell me how to get a worklist from a data field?

    Something like this;

    _myCriteria.AddSortField(SourceCode.K2ROM.WCField.ProcessStartDate, SourceCode.K2ROM.WCSortOrder.Descending);


    _myCriteria.AddFilterField(SourceCode.K2ROM.DataField["varDoId"].Value, SourceCode.K2ROM.WCCompare.Equal, "103");


    Worklist _myWorkList = _myConn.OpenWorklist(_myCriteria);
     

     Is this possible?

    Regards

    Ricardo Carvalho
     

  •  10-23-2007, 8:45 AM 19332 in reply to 19330

    Re: Get worklist by data field

    Hi Ricardo,

    Yes, it sure is possible.  Please refer to the HelpFile.

    You'll need something like:

    oWorklistCriteria.AddFilterField(K2ROM.WCLogical.And, K2ROM.WCField.ProcessData, "Department", K2ROM.WCCompare.Equal, "HR")

     HTH,

    Ockert


    The statements and opinions made in my postings are my own, and do not reflect the opinions of SourceCode Technology Holdings, Inc. or its subsidiaries. All information is provided as is with no warranties, express or implied, and grants no rights or licenses.
View as RSS news feed in XML