Solved

How to add a button to start workflow in DispForm in WSS sharepoint?

Posted on 2011-09-22
2
1,202 Views
Last Modified: 2012-05-12
I want to add a custom button in the DispForm to run a specific workflow which similar if you click "Workflow" button from the FormToolBar, then select specific workflow, then click "Start" button.

Any advise?
Thank you.

workflow1.jpg
Workflow2.jpg
0
Comment
Question by:dickchan
2 Comments
 
LVL 14

Accepted Solution

by:
abhitrig earned 500 total points
ID: 36587313
1. Try creating a custom action for the list item for every workflow you need. Not exactly a button, but the feel will be similar. http://www.codestore.net/store.nsf/unid/BLOG-20100811-0741

2. Create a custom field and change the display logic so that it displays a button with the WF name. http://sharepointmagazine.net/articles/customizing-the-user-experience-of-sharepoint-custom-fields-deep-dive-part-5-of-6

3. Edit the page and create a html button that calls a Javascript function. The function can then call a Webservice to start your WF. http://weblogs.asp.net/jan/archive/2009/04/09/calling-the-sharepoint-web-services-with-jquery.aspx http://darrenjohnstone.net/2007/05/28/querying-a-sharepoint-list-with-javascript/

0
 

Author Comment

by:dickchan
ID: 36712368
I ceated a hyperlink at DispForm.

It will load a workflow initiate page as below.

http://servername/Workflows/SyncDel5a/SyncDel5a.aspx?List=2f891869-16d8-4730-a94b-af80bcb70e5d&ID=25&TemplateID={96db947d-615b-4be1-a356-e1edd6672ae1}&Source=http%3A%2F%2Frsweb%2FLists%2FRooma%2Fcalendara%2Easpx

But i still need to click "Start" Button to run the workflow, any idea can i run the workflow directly after click the hyperlink?

I am new to javascript, could you advise some sample code?
Thank you.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
Last week I faced a strange issue recently, i have deployed SharePoint 2003 servers for one project and one of the requirements was to open SharePoint site from same server. when i was trying to open site from the same server i was getting authentic…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now