如何将 InfoPath 表单提交到多个文档库?

发布于 2024-08-02 18:03:25 字数 190 浏览 6 评论 0原文

我需要设计一个提交到不同 SharePoint 库的 InfoPath 表单。基本上需要有一个下拉列表,用户可以在其中选择特定部门。然后,所选部门将指定 InfoPath 表单提交到哪个 SharePoint 库以及通知谁批准请求表单。表格获得批准后,需要将表格传输到另一个SharePoint库以供我们的薪资部门处理。有人能指出我实现这一目标的正确方向吗?提前致谢

I need to design an InfoPath form that submits to different SharePoint libraries. Basically there needs to be a drop down list where a user selects a specific department. The department that is selected would then specify which SharePoint library the InfoPath Form gets submitted to and who gets notified to approve the request form. After the form is approved, the form needs to transfer to another SharePoint Library for processing by our Payroll dept. Can someone point me in the right direction to achieve this. Thanks in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

世态炎凉 2024-08-09 18:03:25

处理此问题的一种方法是将 XmlFormView Web 部件包装在自定义 Web 部件中并响应 SubmitToHost 事件。为此,您需要将 InfoPath 中的提交选项设置为“托管环境”。这样您就可以根据代码和其他表单数据将表单保存到任何库。

有关包装 XmlFormView 的一些提示,请参阅 "我们是如何做到的 – 使用 InfoPath Forms Services 自动执行服务请求"

至于选择哪个库,您可以在该表单指向部门的 SharePoint 列表以及表单将提交到的图书馆的 URL。然后,您的代码可以从表单数据中获取要提交的列表。

至于到新库的批准路由,这听起来像是自定义工作流程或 SPItemEvent 处理程序。对于第二种情况,您可以响应 ItemUpdated 事件并在新的表单库中创建表单的副本。不确定是否可以使用 SPD 2007 工作流程来完成此操作。

希望这会有所帮助。

One way of handling this would be to wrap the XmlFormView webpart in a custom webpart and respond to the SubmitToHost event. To do this you need to set the Submit option in InfoPath to "Hosting environment". This way you could save the form to any library based on code and other form data.

For some tips on wrapping the XmlFormView see "How We Did It – Automating Service Requests using InfoPath Forms Services"

As for which library to choose, you could have a secondary data source(s) on the form that pointed to a SharePoint List for the Departments and URL of the library to which the form would be submitted. Your code could then obtain the list to submit to from the form data.

As for the approval routing to a new library, this sounds liek a custom workflow or an SPItemEvent handler. For the second case, you could respond to the ItemUpdated event and create a copy of the form in a new form library. Not sure if you could do this with a SPD 2007 workflow.

Hope this helps a bit.

陌上芳菲 2024-08-09 18:03:25

拥有一份包含该表格的文档。上传到库并让一个事件或工作流程在保存表单时移动该表单,

或者

让一个包含该表单的文档库并对其进行不同的视图过滤。

have one documet lidry containing the form. upload to the libaryand have an event or workflow move the form when it's saved,

or

have one documet lidry containing the form and have diffrent vuiews filtering on it.

神经大条 2024-08-09 18:03:25

不确定您是否仍在寻找此问题的解决方案,但不介意添加我的两分钱。我认为您可以使用提交选项中的规则在 InfoPath 中完成此操作。首先定义多个数据连接,每个库一个。接下来使用条件/操作对设置规则。就像如果组合框中的值为 x,则使用提交数据连接 1 提交,...

至于发送通知,您可以将工作流附加到每个文档库。
希望有帮助。

Not sure if you are still looking for a solution to this one, but wont mind adding my two cents. I think you can accomplish this in InfoPath using Rules in Submit Options. First define multiple Data Connections, one for each library. Next setup the rules using conditions/actions pair. Like if value in combo box is x then submit using Submit Data Connection1, ...

As for sending out the notifications, you can attach workflows to each of the document libraries.
Hope it helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文