Wednesday, November 2, 2011

State Machine Workflow logtohistorylistactivity or task not updating

Problem: Changing logtohistorylistactivity in the workflow isn't working/updating on workflow history.
Only when created it gets updated.


Solution: Every time you deploy the workflow you have to restart the service spusercodev4:
1- open cmd and run "net stop spusercodev4"
2- "net start spusercodev4" in order to refresh the service

Now the workflow gets updated ;))

Form error Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus

Problem: When openning the InfoPath Form, we get a javascript error "Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus".

If we check the code in javascript it check if toolbar is visible.
"if(e.v3RichTextControlOnFormInIE)"

Solution: Add toolbar on Form, so when you editing an RichText, you have the toolbar in top of the page without errors! Looks like it's a bug, when you don't add Form toolbar...

1- Go to Form Options
2- Browser Show InfoPath commands/ Mostrar comandos do InfoPath no Friso
3- Ok
4- Create a new form and check if error disappear.

Worked for me ;-) Hope it works for you.