Update an InfoPath From K2

  • 29 September 2009
  • 2 replies
  • 0 views

Badge +6

Hi, 

 

It is little bit weired, but i wish to ask how can i update a field in my infoPath Form once it reachs a certain activity in my workflow and in an automated way.

I tried to use the SharePoint document wizard but it didn't work once i reached the document metadata.  


2 replies

Badge +11

This is not weird at all; in fact, it is very common.  There are a couple of ways:



  1. If your source data is in a SmartObject, use the SmartObject event wizard and specify your InfoPath field as the destination.
  2. Use a server code event and manipulate the InfoPath XML using .NET XmlDocument and XPath.  There are many samples here on UG and it is covered in the K2 book.

When you manipulate InfoPath fields, you should always do this in an activity that does not also contain a client event.

Badge +6

Thanks for your reply DAvid, 

 

I would like just to make sure that there are no possibility to update the field in the wizard similar to the List Item in SharePoint using the SP list item envent ?  

Reply