共享点审批任务页面中的项目适当性 [英] Item Propersites in sharepoint Approval Task Page

查看:82
本文介绍了共享点审批任务页面中的项目适当性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


   当我们使用sharepoint designer工作流分配任务时,


我在SharePoint 2007模板中看到,它包含批准者批准任务的同一页面中的项目属性,


但是在sharepoint在线,我没有看到任何选项。


任何人都可以帮助我如何获取工作流任务批准页面中的项目属性。


提前感谢 

解决方案


是否要在工作流任务列表的EditForm.aspx中显示相关项数据?


如果是这种情况,请参考以下代码,修改ListName in下面的代码并将代码添加到任务列表的editform.aspx页面中的脚本编辑器Web部件中。

< script type =" text / javascript" SRC =" // code.jquery.com/jquery-1.12.4.js"></script> 
< script type =" text / javascript">


(function(){
var listName =" MyTasks";
var itemId = getQueryStringParameter(" ID");
//开始通过网络调用
var requestUri = _spPageContextInfo.webAbsoluteUrl +
" / _ api / Web / Lists / getByTitle('" ; + listName +"')/ items(" + itemId +")?


select = RelatedItems";

//执行AJAX请求

Hi all,

    when we assign a task using sharepoint designer workflow,

I have seen in SharePoint 2007 template , it contains item properties in the same page where the approver goes to approve the task,

but in sharepoint online, i do not see any option as such.

can anyone help me on how to get the item properties in Workflow Task approval page.

thanks in advance 

解决方案

Hi,

Do you want to show the Related Items data in the EditForm.aspx in Workflow Task list?

If that is the case, the following code for your reference, modify the ListName in the code below and add the code into script editor web part in the editform.aspx page in Task List.

<script type="text/javascript" src="//code.jquery.com/jquery-1.12.4.js"></script>
<script type="text/javascript">


(function() { var listName="MyTasks"; var itemId= getQueryStringParameter("ID"); // begin work to call across network var requestUri = _spPageContextInfo.webAbsoluteUrl + "/_api/Web/Lists/getByTitle('"+listName+"')/items("+itemId+")?


select=RelatedItems"; //execute AJAX request


这篇关于共享点审批任务页面中的项目适当性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆