Skip to main content
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
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.
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!

Reply