使用 InfoPath 预填充启动表单值
我目前正在探索 SP2010、Designer 和 InfoPath 中有关工作流程和启动表单的一些新功能。我想要的是在现有列表项上手动启动工作流程,使用启动表单为工作流程提供一些输入值,然后整体处理工作流程。
工作流是更新当前列表项的一组连续操作。无需等待或其他输入。一旦开始,它应该在设置操作之后立即完成。
问题是,我想用列表项本身的值预先填充一些启动表单参数。然后,用户可以选择更改此设置或保留它。
我尝试了一些方法,例如尝试使用 URL 中的查询字符串参数 (id={id}) 启动并运行辅助数据连接。看起来 InfoPath 和 SharePoint 会自动设置一些配置设置,并且 InfoPath 正在精简版本中运行;需要配置的东西更少,没有代码隐藏。
对我的问题有任何提示、建议和解决方案吗:-)?
预先感谢,
帕特里克
I'm currently exploring some new features in SP2010, Designer and InfoPath regarding Workflows and Initiation Forms. What I want is to manual start a workflow on a existing list item, give the workflow some input values with the initiation form and then process the workflow in its whole.
The workflow is a sequential set of operations updating the current list item. No waits or other input is required. Once started it should complete immediately after the set-operations.
The problem is, I would like to pre-populate some of the initiation form parameters with values from the list item itself. The user then has the choice to change this, or leave it be.
I tried a couple of things, like trying to get a secondary data connection up and running using the query string parameter in the URL (id={id}). It looks like InfoPath and SharePoint automatically set some configuration settings, and that InfoPath is running in a cut-down version; less stuff to configure, no code behind.
Any tips, advice, solutions to my problem :-)?
Thanks in advance,
Patrick
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在提交工作流的 InfoPath 启动表单之后之前,工作流进程不会输入 init 活动的代码隐藏。必须有一种方法可以根据两个表单的命名空间将该表单的数据字段与关联表单的数据字段同步,但我还没有找到确切的方法。
The workflow process does not enter the init activity's codebehind until after the workflow's InfoPath Initiation Form has been submitted. There must be a way to sync the data fields of this form with those of the Association Form, based on the namespaces of the two forms, but I have not yet found exactly how to do that.