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. 

  • 相关阅读:
    SQL利用Case When Then多条件判断
    SQL 中LTrim、RTrim与Trim的用法
    SELECT 与 SET 对变量赋值的区别(存储过程)
    exec/sp_executesql语法
    SQLServer : EXEC和sp_executesql的区别
    使用系统监视器监视系统性能
    Centos6.5下OpenLdap搭建(环境配置+双机主从配置+LDAPS+enable SSHA)
    迁移与裁剪linux系统
    Windows Server 2008 R2远程桌面服务配置和授权激活(转)
    cookie、session、sessionid 与jsessionid(转)
  • 原文地址:https://www.cnblogs.com/qijiage/p/3586201.html
Copyright © 2011-2022 走看看