We help IT Professionals succeed at work.

Infopath, SharePoint & approval status

1,223 Views
Last Modified: 2012-05-06
Hello experts!

I've got a infopath from that submits to a SharePoint library. All is fine with this, although I need some advice and an assosiated approval workflow.

The workflow fires when the form is submitted. I want to dsplay the approval status in a control on the form. How would I achive this?
Comment
Watch Question

CERTIFIED EXPERT

Commented:
You should be able to create a workflow in SharePoint Designer which fires when the approval status of the form is changed. You can specify that, for example:
 
If ApprovalStatus = Approved
Set (in the form) Approval Status to Approved.
 
:-)

Author

Commented:
Thanks robbie. How exactly would I get a workflow in sharepoint designer to change a control field in the actual infopath form? That's what i'm trying to achive.

Commented:
I would use State Workflow in Visual Studio to handle this.  
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
What I think you want to do can be achieved if you are using Sharepoint Designer for your workflow. Create a promoted property to hold the approval status on your form. If you need the workflow to fire when the state of the form is "approved" and not "submitted," make the property default to Submitted when the form is submittedand have the workflow only fire when the status is changed to Approved. Hope this helps!

Author

Commented:
Managed to do this by setting a data connection to the Sharepoint library that looks at approval status. Set a view for every possible status, then set up an open form rule that changes the view depending on the status. Job done. Very usful Microsoft guide here:

http://msdn.microsoft.com/en-us/library/bb251016.aspx
 
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.