Skip to main content
We have a very complex workflow that is all driven from an InfoPath form. This form is extremely large, and in the interest of cutting it down in size to improve performance we had the idea of consolidating several views into a single view.

There are a dozen or so optional approvals that the initiator selects using checkboxes. Upon approval of a specific step, the selected optional approval steps are instantiated. Currently we have a view for each step that are all identical except for the title of the view. What we are trying to do is to set a value in the infopath schema to indicate which of the steps is the current one. That is, when we click on the approval task in the Sharepoint K2 taks list, we want to set this value and use it in the title of the form.

We've written code that sets the xml node value (by the way, we can't get the SetXMLValue method to work - the GetXMLValue does work), but we can't find an event that occurs when the task is clicked. We've tried to add a default server event to each of the optional approval steps, but that code is fired upont the approval of the previous step (when the new steps are instantiated).

Does anyone have any insight into how we might accomplish this? Can we add a custom event to the optional steps so that the event is fired when the task list item is clicked?

Thanks - I'm a newbie at K2, but eager to learn.
Steve,
Did you get this working? If not, please post code.

Thanks,
Rob
Yes Rob - we got this working a long time ago.

Reply