In the InfoPath event,
1).
strXMLString = K2SPUtil.UpdateDocumentWithView(K2.ProcessInstance.XmlFields.Item(i).Value, strView,K2.SerialNumber, K2.ProcessInstance.ID,"","",K2.ProcessInstance.DataFields("K2ShowViewFlowLink").Value,K2.ProcessInstance.DataFields("K2UseCachedViewFlowData").Value)
WHAT is the K2SPUtil.UpdateDocumentWithView() supposed to do?
2).
If I change the "ProcessInstance.XmlFields" into "ActivityInstanceDestination.XMlFields" (as the following),
WHAT will be the difference?
strXMLString = K2SPUtil.UpdateDocumentWithView(K2.ActivityInstanceDestination.XmlFields.Item(i).Value, strView,K2.SerialNumber, K2.ProcessInstance.ID,"","",K2.ProcessInstance.DataFields("K2ShowViewFlowLink").Value,K2.ProcessInstance.DataFields("K2UseCachedViewFlowData").Value)
3). It looks like that if some fields in the InfoPath form are changed by the users, there should be some "data manipulation events" to copy the changes from the ActivityInstance.XML back into the processInstance.XML after the InfoPath client event is done. Is this necessary? Or the ProcessInstace.XML will be updated accordingly automatically?
THANKS,
COENW
Be the first to reply!
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.