Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2011-09-22
2
Medium Priority
?
1,348 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 14

Accepted Solution

by:
abhitrig earned 2000 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

What Is Blockchain Technology?

Blockchain is a technology that underpins the success of Bitcoin and other digital currencies, but it has uses far beyond finance. Learn how blockchain works and why it is proving disruptive to other areas of IT.

Question has a verified solution.

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

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. …
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

730 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