从 InfoPath 表单中打开一个表单,其中的值从第一个到新的

发布于 2024-09-17 19:54:08 字数 275 浏览 4 评论 0原文

过去两个月左右我一直在使用 InfoPath 表单,现在我有以下需求:

我有一个由某些用户填写的表单,然后发送给其他用户。后者在查看表格上的数据后,可以选择“接受”或“接受”。回复或拒绝。

当他们点击“接受并”时回复,触发另一个表单,其中某些字段重复。我想知道如何从第一个表单获取值到触发的表单。

让我明确一下,我没有使用 SharePoint;他们正在从 LAN 上的共享文件夹访问表单。

预先感谢您对此的帮助。

优素福

I have been working with InfoPath forms for the last two months or so, and I now have the following requirement:

I have a form which is filled in by certain users, then sent to other users. The latter, after viewing the data on the form, have the possibility to either Accept & Reply or Reject.

When they click on Accept & Reply, another form is triggered, in which some of the fields are repeated. I would like to know how to get the values from the first form to that triggered form.

Let me precise that I am not using SharePoint; they are accessing the forms from a shared folder on the LAN.

Thanks in advance for your help on this.

Yusuf

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

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

发布评论

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

评论(1

那小子欠揍 2024-09-24 19:54:08

据我所知,您无法直接访问新表单,因为 Infopath 将所有实例分开(SDI 与 MDI)。您需要一个“中间”存储位置。如果您有一个可用的数据库,那么数据库并不是一个坏主意 - 当用户单击按钮时,数据将保存到数据库中,然后打开新表单并在表单加载时从数据库中读取数据。

我们使用的另一种方法(同样麻烦)是使用表单本身的空白副本(不是原始的 xsn)。这很糟糕,因为如果您更改模板,您必须手动使空白副本保持最新,但对于您正在做的事情来说效果很好。仅当您确实需要填充这些字段并且没有可用于临时存储的数据库时才建议使用。

打开表单模板,就像您要填写表单一样,但只需将“空白”副本保存到共享(它将另存为 xml)。源表单上按钮背后的过程是:创建空白表单的唯一副本(我们将它们全部存储在一个每晚清理的子文件夹中),以编程方式打开并编辑该新的空白副本(很容易,因为它是 xml)正确字段中的数据,保存编辑后的副本,为用户而不是 xsn 打开编辑后的副本。

That I know of you can't directly access the new form since Infopath keeps all instances separate (SDI vs MDI). You need a "middle" storage location. A database isn't a bad idea if you have one available - when the user clicks the button, data is saved to the DB, then the new form is opened and reads from the DB on form load.

Another way we have used (which is equally as cumbersome), is to use a blank copy of the form itself (not the original xsn). It is bad because you have to manually keep the blank copy up to date if you change the template but works well for what you are doing. Only recommended if you REALLY need those fields populated and you don't have a DB you can use for temp storage.

Open your form template like you are going to fill in the form but just save a "blank" copy to the share (it will save as xml). The process behind the button on your source form is: create a unique copy of the blank form (we store them all in a subfolder that gets cleaned out nightly), programmatically open and edit that new blank copy (easy since it is xml) putting data in the correct fields, save the edited copy, open the edited copy for the user instead of the xsn.

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