使用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: