Solved

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

Posted on 2011-09-22
2
1,224 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When installing SharePoint 2010 RTM I came across a strange error, I was getting timeouts during the installation. I searched the web and found the best solution to be found here (http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010genera…
Microsoft SharePoint Foundation 2010 and Microsoft SharePoint Server 2010 do not offer the option to configure the location of the SharePoint diagnostic trace log files during installation.  This can, however, be configured through Central Administr…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

920 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

15 Experts available now in Live!

Get 1:1 Help Now