数据绑定不使用 InfoPath 表单显示数据
我有简单的工作流程,员工可以请求产品。此产品提交是在 Infopath 中设计的。然后经理可以批准或拒绝该决定。我使用 SPD 中的“从用户收集数据”操作向管理器添加了任务,其中添加了拒绝或批准复选框。但是,我还想设计一个表单,他还可以在其中查看谁是产品的请求者,产品信息存储在该工作流程运行的列表(假设为 ListA)中。
为此,我单击 SPD 中“表单”框中的 ManagerApproval.xsn。然后我向 ListA 添加了新的数据连接,并选择了获取所需信息的选项。然后,我使用 queryFields 在表单中添加了 requesterName、productName 等。有queryFields和dataFields,它们有什么区别?
然后,我发布表单,但当经理批准请求时,它不显示任何值,仅显示空文本框。不知道出了什么问题?谢谢
编辑:使用数据字段,我可以看到数据。但是,我看到的是产品的 id,而不是值(例如,我看到的是 1,2,而不是 ProdA、ProdB)。而且,我还看到 ListA 中的整个产品列表,我只想查看当前项目的值。当我将字段拖到表单中时,Infopath 表单中出现类似重复部分的情况。我如何过滤它以显示当前项目的值(实际上只有 1 个值 - 1 个产品名称、1 个请求名称,而不是之前请求的整个列表并且已经完成)?
或者,是否有任何方法可以使用 Infopath 设计用于经理审批的自定义表单,以便可以在工作流内部调用该表单?
I have simple workflow where employee can request for product. This product submission was designed in Infopath. Manager then gets to Approve or Reject this Decision. I added tasks to Manager using "Collect Data from User" action in SPD, where I added Reject or Approve Checkboxes. But, I also want to design a form where he can also see who is the requester of Product, Product information which are stored in the List (lets say ListA) that this Workflow runs on.
For this, I click on the ManagerApproval.xsn in Forms box in SPD. Then I added new data connections to ListA, and selected option to get required information. Then, I added requesterName, productName etc in the form using queryFields. There are queryFields and dataFields, what is the difference between them ?
I then publish the form, but it doesn't display any value only empty text boxes, when Manager is approving the Request. Don't know whats wrong ? Thanks
EDIT : Using datafields, I can see the data. But, I see id of the product not the value (eg I see 1,2 not ProdA, ProdB). And, also I see the whole list of products in ListA, I only intend to see values for the current item. There is something like repeating section in Infopath form, when I drag fields into Form. How can I filter it to show values (infact only 1 value - 1 product name, 1 requstername not the whole list from previous requests and already completed) for the current item ?
OR Alternatively, is there any way to design Custom Form for Manager Approval using Infopath, so that this form can be called inside Workflow ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查询字段 - 是在 XML 模式中定义的字段名称,
数据字段是实际数据
使用数据字段而不是查询字段。
创建连接时,您可以从 SharePoint XML 获取数据,如下例所示。
在此 - 包含查询字段: ows_LinkTitle
节点包含数据。
query fields - are field names, which are defined in XML schema,
data fields are actual data
Use data fields instead of query fields.
When you create a connection you get data from SharePoint XML something like the sample below.
In this - contains the query fields: ows_LinkTitle
Node contains the data.