使用WebPart过滤器显示特定的列表项 [英] Using webpart filters to show a specific List Item

查看:60
本文介绍了使用WebPart过滤器显示特定的列表项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个列表,该列表会在添加项目后启动工作流程,然后我的工作流程会分配一些任务以供批准.

I have a List that initiates a workflow upon adding Items and then I have the workflow assigning some Tasks for approval purposes.

我想在任务批准"页面上显示启动工作流程的特定项目.

I would like to show the specific Item that initiated the workflow at the Task Approval page.

在寻找解决方案时,我找到了过滤器零件作为可能的解决方案, 已连接列表,可以提取所需的列表项.

Searching for a solution I found as possible solution the Filter Parts that when connected with a list, the required list item could be extracted.

我尝试使用查询字符串(URL)过滤器,但是它不起作用.

I tried using the Query String (URL) Filter but it doesn't work.

我认为这与列表项的 ID 没有传递到任务页面有关.

I think it has to do with the ID of the List Item not being passed to the Task Page.

有人对此主题有知识吗?

Anyone with some klowledge on this subject?

推荐答案

作为一种解决方法,我们可以使用REST API以任务项形式获取ReletedItems字段.

As a workaround, we can get the ReletedItems field in task item form using REST API.

/_api/web/lists/getbytitle('MyTasks')/items(1)?


select = RelatedItems
select=RelatedItems

然后基于商品ID获取列表商品数据库,然后使用JavaScript代码在任务批准页面中添加一些信息.

Then get the list item data base on the item id, then add some information into the task approval page using JavaScript code.

或检查以下类似的线程:

Or check the similar thread below:

最好的问候,

丹尼斯


这篇关于使用WebPart过滤器显示特定的列表项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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