zoukankan      html  css  js  c++  java
  • Office

    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. 

  • 相关阅读:
    杭电2095--find your present (2) (异或)
    南阳168--房间安排(区间覆盖)
    南阳954--N!(数学)
    南阳--69(数的长度)
    杭电--N!(大数)
    杭电1005--Number Sequence
    杭电1108--最小公倍数
    动态规划:最长上升子序列(二分算法 nlogn)
    动态规划:最长上升子序列之基础(经典算法 n^2)
    vector函数用法
  • 原文地址:https://www.cnblogs.com/qijiage/p/3586201.html
Copyright © 2011-2022 走看看