提醒我如何获取Infopath表单中的当前商品ID? [英] Alert me How to get current item ID in Infopath form?

查看:58
本文介绍了提醒我如何获取Infopath表单中的当前商品ID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经添加了数据连接以从列表中接收数据,但这给出了整个数据列表.我需要按ID过滤结果,但无法获取ID.

解决方案

详细步骤如下:

1.我在任务"列表上创建了一个工作流.我想在工作流启动"表单上显示标题"和分配给"列.首先添加三个名为ID,标题,分配给的初始化参数.

2.在InfoPath中打开初始化表单.添加数据连接以从任务"列表中接收数据.

3.单击"ID"列,然后选择管理规则".

4.添加规则.不添加任何条件.将操作设置为设置字段的值".

5.在下一个窗口中,将字段选择为标题".

6.单击值">插入字段或组"后面的"fx"按钮,然后选择标题"列以形成任务"数据连接.

7.单击过滤器数据,然后单击确定按钮.

8.添加类似此ID的过滤器(在主数据连接中)等于ID(在Tasks数据连接中).

9.在规则中添加其他操作,以设置分配给"列的字段值.

10.保存并发布表单.

最好的问候,

王恩(Dean Wang)


I have a customised workflow initiation form. I need to display some fields of the related item, how can i do this? I notice there is an ID query string in the IniWrkflIP.aspx page, but there seems to be no way to get it. 

I already added the data connection to receive data from the list, but that gives the whole list of data. I need to filter the result by the ID, but there's no way i could get the ID.

解决方案

Hi,

Here are the detailed steps :

1. I created a workflow on the Tasks list .I want to show the Title and Assigned To column on the workflow Initiation form .First add three initiation parameters named ID ,Title, Assigned To.

2. Open the initiation form in InfoPath .Add a data connection to receive data from the Tasks list.

3. Click on the ID column and choose Mange Rules.

4. Add a rule .Don’t add any condition .Set the action as ‘Set a field’s value’.

5. In the next window ,choose the Field as ‘Title’.

6. Click on ‘fx’ button behind the Value >Insert  field or group>Choose Title column form the Tasks data connection.

7. Click on filter data before click OK button.

8. Add a filter like this ID(in main data connection ) is equal to ID (in Tasks data connection).

9. Add another action in the rule to set the field’s value for Assigned To column.

10. Save and publish the form.

Best Regards,

Dean Wang


这篇关于提醒我如何获取Infopath表单中的当前商品ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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