Skip to main content
Nintex Community Menu Bar

How to ouput Worklist to DataSet / DataTable?

  • April 2, 2007
  • 2 replies
  • 14 views

Forum|alt.badge.img+1
Hey,

I am interested in manipulating Worklist data in memory and could do with the data in a DataSet.

Is there an easy way of outputting a WorkList for the current user to a DataSet or DataTable?

cheers

Martin

2 replies

Forum|alt.badge.img+5
  • April 4, 2007
Hi Martin,
As far as I know the easiest would be to go through each worklist item for
the user and add it to a DT/DS.
Ex.
Connection k2Con = new Connection("K2Server");
WorkList k2WL = k2Con.Open("asp");
foreach(WorkListItem item in k2WL)
k2DataTable.Rows.Add(<field for each column added in datatable>);
k2Con.close();

Hope it helps.

Forum|alt.badge.img+1
  • Author
  • April 4, 2007
Yeh, that's what I thought it was going to be.

I was hoping that there was going to be a "WorkList.ToDataTable()" method or something .. wishful thinking I guess.

Cheers!