随笔分类 -  Sharepoint

sharepoint获取用户属性
摘要:1.通过Jsom获取用户属性 <script type="text/javascript" src="/_layouts/15/sp.runtime.js"></script><script type="text/javascript" src="/_layouts/15/sp.js"></scri 阅读全文

posted @ 2019-04-18 17:14 赢在当下_Victor 阅读(483) 评论(0) 推荐(0)

客户端开发添加sharepoint凭证
摘要://1.promise ClientContext context = new ClientContext(siteUrl); NetworkCredential myCredential = new NetworkCredential(account, securepassWord,[domin]); context.Credentials = myCredential; //2.onlin... 阅读全文

posted @ 2019-04-17 13:32 赢在当下_Victor 阅读(259) 评论(0) 推荐(0)

sharepoint等脚本加载完后再执行对应的方法
摘要:ExecuteOrDelayUntilScriptLoaded(myFunction,"sp.js"); //SP.SOD.executeFunc('sp.js', 'SP.ClientContext', myFunction); function myFunction() { //逻辑代码 } 阅读全文

posted @ 2019-03-07 15:33 赢在当下_Victor 阅读(197) 评论(0) 推荐(0)

Caml语句中筛选当前用户UserID
摘要:var query='\ \ \ \ '; 阅读全文

posted @ 2019-03-07 15:23 赢在当下_Victor 阅读(193) 评论(0) 推荐(0)

pnp的getItemsByCAMLQuery
摘要:var camlQuery={ ViewXml: "\ 1\ \ \ \ \ \ \ " }; ... 阅读全文

posted @ 2019-03-07 15:18 赢在当下_Victor 阅读(274) 评论(0) 推荐(0)

利用pnp获取用户的property
摘要://Retrieve Properties of Current User $pnp.sp.profiles.myProperties.get().then(function(result) { props = result.UserProfileProperties.results; var propValue = ""; props.forEach(function(... 阅读全文

posted @ 2019-03-07 15:04 赢在当下_Victor 阅读(217) 评论(0) 推荐(0)

开启Group Work Site功能
摘要:Group Work Site只针对sharepoint本地版本,需要变更服务器配置文件。 Go to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\1033\XML open WEB 阅读全文

posted @ 2019-02-22 16:33 赢在当下_Victor 阅读(122) 评论(0) 推荐(0)

设置用户字段
摘要:1.设置单用户 2.设置多用户 阅读全文

posted @ 2019-02-22 14:58 赢在当下_Victor 阅读(187) 评论(0) 推荐(0)

sharepoint lookup字段的读取与赋值
摘要:1.读取 2.赋值(单个) 3.赋值(多个) 阅读全文

posted @ 2019-02-20 14:53 赢在当下_Victor 阅读(332) 评论(0) 推荐(0)

Caml语句中筛选lookup字段
摘要:15 阅读全文

posted @ 2019-02-20 14:42 赢在当下_Victor 阅读(455) 评论(0) 推荐(0)

sharepoint Jsom一些基本操作
摘要:引用 Microsoft CDN 中的 AJAX 库。 通过使用相对于加载项 Web 的 URL 引用 SP.Runtime.js 文件。 通过使用加载项 Web 相关 URL 引用 SP.js 文件。 <script src="//ajax.aspnetcdn.com/ajax/4.0/1/Mic 阅读全文

posted @ 2019-02-20 14:18 赢在当下_Victor 阅读(793) 评论(0) 推荐(0)

JSOM启动工作流
摘要:工作流重新发布后,想重新启动新发布的工作流,先到List的workflow Setting里将之前已经启动了工作流的项目的工作流全部删除, 然后通过JSOM将新的工作流绑定到项目上。 阅读全文

posted @ 2019-02-20 13:50 赢在当下_Victor 阅读(423) 评论(0) 推荐(0)

数据量太大时,如何实现分页查询-CSOM
摘要:static List getEmployee() { string account = ConfigurationManager.AppSettings["account"]; string password = ConfigurationManager.AppSettings["password"]; string empUrl = ConfigurationManager.AppSetti... 阅读全文

posted @ 2019-02-20 11:02 赢在当下_Victor 阅读(822) 评论(0) 推荐(0)

数据量太大时,如何实现分页查询-JSOM
摘要:利用Jsom实现分页查询: var data=[]; function getItems() { licenceContext=new SP.ClientContext(); //var licenceContext =SP.ClientContext.get_current(); licenceWeb=licenceContext.get_web(); licenceList=lice... 阅读全文

posted @ 2019-02-20 10:54 赢在当下_Victor 阅读(1190) 评论(0) 推荐(0)

导航