在SharePoint Workflow中使用InfoPath Form的几个Tips

简介:
Q:为什么InfoPath Form作为Task Form的时候,可以通过SPWorkflowTaskProperty.ExtendedProperties属性(一个哈希表)直接获得InfoPath Form中的数据,而用InfoPath Form作为Initiation Form的时候,就必须要通过SPWorkflowActivationProperties.InitiationData属性(一个包含InfoPath Form数据的XML字符串)来自己手工处理这个XML字符串?

A:使用Microsoft.Office.Workflow.Utility.Form类的XmlToHashtable(),就可以把一个包含InfoPath Form数据的XML字符串直接转换转换成一个哈希表。SPWorkflowTaskProperty.ExtendedProperties就是这么干的...

Q:可以在InfoPath Form中使用SharePoint页面上的那个人员/组选择器吗?

A:可以,那个人员/组选择器有一个现成的ActiveX控件:Contact Selector,而InfoPath支持在表单上放置ActiveX控件。详见 http://blogs.msdn.com/infopath/archive/2007/02/28/using-the-contact-selector-control.aspx

Q:如何在一个InfoPath Form上放置多个Contact Selector控件?

A:详见: http://community.sgdotnet.org/blogs/kitkai/archive/2007/06/03/Multiple-Contact-Selectors.aspx

Q:如何在SharePoint Workflow代码中获取InfoPath Form上Contact Selector控件中选取的用户信息?

A:使用Microsoft.Office.Workflow.Utility.Contact类。首先,用上面所说的办法(Microsoft.Office.Workflow.Utility.Form.XmlToHashtable())得到InfoPath Form数据中表示用户信息的XML字符串("<Person>...</Person>"),然后,使用Contact.ToContacts()方法来从这个XML字符串得到Contact[](你可以用那个人员/组选择器选择多个用户,对吧?)。




本文转自 kaneb0y 51CTO博客,原文链接:http://blog.51cto.com/kaneboy/280824,如需转载请自行联系原作者
目录
相关文章
|
3月前
|
设计模式 前端开发 JavaScript
关于 SAP Fiori Elements List Report Go 按钮的实现
关于 SAP Fiori Elements List Report Go 按钮的实现
23 0
|
6月前
|
存储 JSON API
使用 SAP Business Application Studio Data Editor 生成 Mock Data
使用 SAP Business Application Studio Data Editor 生成 Mock Data
56 0
使用application log分析Fiori navigation target解析错误
当点击tile时遇到error message “Cannot open application”, F12里能找出详细的error log number:
使用application log分析Fiori navigation target解析错误
Fiori elements执行过程解析:When click go in table list, odata service is sent
Fiori elements执行过程解析:When click go in table list, odata service is sent
Fiori elements执行过程解析:When click go in table list, odata service is sent
upload Fiori application to ABAP server via report /UI5/UI5_REPOSITORY_LOAD
upload Fiori application to ABAP server via report /UI5/UI5_REPOSITORY_LOAD
110 0
upload Fiori application to ABAP server via report /UI5/UI5_REPOSITORY_LOAD
How to render S4 Code List extension field into CRM WebUI product search view
This question is asked by Wade. Suppose I have created one extension field in S4 with type CodeList which contains all possible queue type supported by JDK. This extension field must be exposed to CRM Product Search WebUI. POC is done in X3C/504:
How to render S4 Code List extension field into CRM WebUI product search view
在S4 key user tool里创建Custom Logic的后台实现
在S4 key user tool里创建Custom Logic的后台实现
在S4 key user tool里创建Custom Logic的后台实现
custom field further usage - add into UI and report
custom field further usage - add into UI and report
113 0
custom field further usage - add into UI and report
|
XML 数据格式
SAP Form print tool
Sent: Thursday, October 30, 2008 8:05 PM
157 0
SAP Form print tool

热门文章

最新文章