K2 Worklist web part

  • 12 March 2009
  • 1 reply
  • 1 view

Badge +3

I have BlackPoint and I have created a workflow with InfoPath forms. The anoying thing with the InfoPath forms, is the message from InfoPath "This form has been closed" and the user has to close manually the form.


I was able to create a WebPart to open an Infopath form in a webpart based on the item selected in a sharepoint list. But I coulsd not do the same thing with the K2 Worklist because it doesn't allow connection.


I have found the file simplewebpart but it didn't help me and I could not make it to work.


Is it possible to create a custom webpart like the K2 worklist and add code to allow a connection so I can connect my infopathviewform webpart to the list?


 


1 reply

Badge +3

I have finally found a solution to avoid having the anoying "The form has been closed" after submitting the Infopath form.


For those who wants the solution, I have followed instruction based on the following article:


http://cyclops.nettrends.nl/blog/2009/02/infopath-k2-the-form-has-been-closed/


 And for the redirection I used the following in the ini file:


RewriteCond %{URL}   ^/recruit/_layouts/FormServer.aspx*
RewriteRule ^(.*)$     $1&Source=http://spsite/Pages/Default.aspx


Also you need to set the K2 Worklist webpart to not open the task in a new window.


So when the user opens a task from the K2 worklist, it opens the InfoPath task in the same browser and after the Infopath form is closed or submitted, the browser is redirected to the URL specified in the rewriterule.

Reply