Thursday, June 6, 2013
Adding Work follow Start button in your page (sharepoint 2013)
var itemId=-1;
var itemids=-1;
var listTitle = '';
$(document).ready(function()
{
var thisListGuid = '{F01484D1-FC55-4F81-94DE-CF503FEAF322}';
ExecuteOrDelayUntilScriptLoaded(
function()
{
itemId = window.location.search.substring(4);
// itemId = $().SPServices.SPGetLastItemId({listTitle : "Material Reuisition Form"
listTitle = "Material Form";
var ctx = SP.ClientContext.get_current();
var list = ctx.get_web().get_lists().getByTitle(listTitle);
var item = list.getItemById(itemId);
ctx.load(item);
ctx.executeQueryAsync(
function ()
{
itemids = item.get_item('UniqueId');
},
function(sender, args)
{
alert('Request failed. \nError: ' + args.get_message() + '\nStackTrace: ' + args.get_stackTrace());
});
}, "sp.js");
$("#inputwfllow").click(function () {
var lnk= 'http://abc/afd/_layouts/15/IniWrkflIP.aspx?List=' + thisListGuid + '&ID='+ itemId + '&ItemGuid=' + itemids + '&TemplateID={35214bc5-00f3-4aeb-add0-6f648c7c765e}&Source=http%3A%2F%2F10%2E100%2E21%2E32%2FInventoryTracking%2FSitePages%2FMR%5FRequest%2Easpx';
var title = "Ascertain Jurisdiction Report";
window.open(lnk);
});
});
Subscribe to:
Post Comments (Atom)
How to Build interactive Design in Power Pages
Need to Create a design in figma/or any UX tool Create a Power pages site. Create new Page Open page in VS Code in every page there are the...
-
SQL Server Reporting Services 2012 anonymous access Posted on March 28, 2012 by Constantin Rotariu Disclaimer: ANONYMO...
-
Go --> Internet Information Services (IIS) Manager Locate the website (whose port number you want to change) To change a port right ...
No comments:
Post a Comment