Office - InfoPath

1. 移除隐藏空间后剩余的空白:

http://social.technet.microsoft.com/Forums/sharepoint/zh-TW/3dea3014-f808-428b-b283-bb99f6bff676/hiding-the-blank-space-behind-a-hidden-sectioninfopath-2010?forum=sharepointcustomizationprevious

2. InfoPath中的translate函数可以用于替换字符串中的字符,类似replace;

3. Repeating Group -- http://alecpojidaev.wordpress.com/2010/01/07/accessing-previous-rows-in-repeating-group-for-browser-enabled-forms/

4. 博客:

Alec Pojidaev's InfoPath Blog

http://alecpojidaev.wordpress.com/

5. 使用跨域的web service时,需要激活cross-domain access, 然后将其保存为UDC文件,再使用;

6. InfoPath使用其它List作为数据源时,这个List中最好不要包含Look Up字段,因为在InfoPath 2013中拿到的Look up列的值为ID值;

7. InfoPath使用其它List作为数据源时,最好不要有分页,否则,只有当前第一页的内容可以显示出来;

8. 使用Formula得到当前年月:concat(substring(now(), 1, 4), "-", substring(now(), 6, 2))

9. 大小写转换:

//Convert To UPPER case
translate(., "abcdefghijklmnopqrstuvwyxz", "ABCDEFGHIJKLMNOPQRSTUVWYXZ")

//Convert to lower case
translate(., "ABCDEFGHIJKLMNOPQRSTUVWYXZ", "abcdefghijklmnopqrstuvwyxz")

//make the first letter capital and the rest of the word lowercase
concat(translate(substring(field1, 1, 1), "abcdefghijklmnopqrstuvwxyz", "ABCDEFGHIJKLMNOPQRSTUVWXYZ"), translate(substring(field1, 2, string-length(field1)-1), "ABCDEFGHIJKLMNOPQRSTUVWXYZ", "abcdefghijklmnopqrstuvwxyz"))

10. SharePoint 2013下获取当前用户的登录名(不含域名):

concat(substring(userName(); 1; string-length(userName()) * not(contains(userName(); "\"))); substring-after(userName(); "\"))

11. 获取当前日期时间:

translate(translate(substring(now(); "1"; "16"); "T"; " "); "-"; "/") 
//得到–> 2014/08/23 12:30

  concat(substring(now(); 1; 4); "-"; substring(now(); 6; 2)) 

  //获取当前年月:2015-01

12. 从多选People Picker控件中获取人员登录名:

eval(eval(Person; 'concat(pc:AccountId, ";")'); "..")

13. 在InfoPath 2010的多行文本中添加换行:

concat(now(); " 设计工程师"; Designer; "拒绝了申请,批注是:"; DesignerComments; ";"; "
";ApprovalHistory);

14. 

posted @ 2014-08-25 16:09  Jacky Ge  阅读(443)  评论(0编辑  收藏  举报