Hi, I would like to know which client event u have used. Infopath client event or aspx client event. If you use aspx client event, u have to update process or activity XML field / datafield and then u have to map these fields in the SPListitems update event. Can u elaborate ur scenario...
Srikanth
Thank you so much for your reply..
I am new bie to K2 ,what i have done is I used SharePoint workflow intergration client event for creating tasks.Which bascially created task for 3-4 approver at the same time(Creates slots for each destinations) .I was able to read the comments of approver who is approving first from XML field -->SPComment-->FormComments-->Body
It will be great help for me if you can provide me some more details for the same..How do i update the XML field ?Do i need to use any code event?
From which value(Mapping value) i need to read and update in XML field.Please provide some more information.
Vijay
Hello All,
Can any one please help me on this issue?
Thanks in Advance.
Vijay
Sorry for the late reply. To update xml fields in the workflow by taking a server event or using a sharepoint get list items event. Below code may help you how to update xml fields in the process.
K2.Synchronous = true;
System.Xml.XmlNode oNd = null;
// create a new XML doc
System.Xml.XmlDocument oDoc = new System.Xml.XmlDocument();
// load up the XML doc with the XML Field
oDoc.LoadXml(K2.ProcessInstance.XmlFieldsl"TestXMLField"].Value.ToString());
// set the first name
oNd = oDoc.SelectSingleNode("Root/Employee/FirstName");
oNd.InnerText = "Jane";
// set the last name
oNd = oDoc.SelectSingleNode("Root/Employee/LastName");
oNd.InnerText = "Doe";
// set the K2 XML field
K2.ProcessInstance.XmlFieldst"TestXMLField"].Value = oDoc.OuterXml;
Let me know if this doens help.