| | | Junior Member
       
Group: Forum Members Last Login: Wednesday, November 24, 2010 Posts: 6, Visits: 56 |
| | Can you provide an example of using the List Navigation Activity to query current work items in a Queue. I would like to query on a work item field. An example is that there is a queue called AP Pending. It has workitem fields for PO#, Invoice # and Receiving. I want to query for any items in it that match particular PO#. Thanks;
Rich Jones (EMC) |
| | | | Supreme Being
       
Group: Forum Members Last Login: Thursday, June 02, 2011 Posts: 90, Visits: 150 |
| Hi Rich Jones,
The List navigation activities are used only to get the recorsd from Lists. In your case if yoiu woulfd like to get the workitems, you can yty using workitem collection API.
Skelta.Core.ApplicationObject app = new Skelta.Core.ApplicationObject("SqlRepo"); Skelta.Core.WorkflowObject wf = new Skelta.Core.WorkflowObject("TestManager", app); string uid = "sqlprovider::7"; Skelta.HWS.Actor actor = new Skelta.HWS.Actor(app, uid); Skelta.HWS.WorkItemCollection col = new Skelta.HWS.WorkItemCollection(app, wf, actor, true, "");//pending activities for a userSkelta.HWS.WorkItemCollection col = new Skelta.HWS.WorkItemCollection(app, null, actor, false, "");//pending activities for a user wrt one workflow
GridView1.DataSource = ds;GridView1.DataBind();
You can also make use of append to where caluse with some condition.
Regards,
Moderator |
| | | | Junior Member
       
Group: Forum Members Last Login: Wednesday, November 24, 2010 Posts: 6, Visits: 56 |
| Thank you, I will give that a try.
Rich Jones (EMC) |
| |
|
|