随笔分类 -  Sharepoint

摘要:这个示例里,我们将用JQuery AJAX去发送一个 REST请求,并查看返回结果。为了让我们更好地理解REST 接口,我们将添加一个输入框让用户可以指定REST的URL, 这将让我们尝试着用构造的URL从SharePoint去获取信息。 首先,我们将创建一个 SharePoint-hosted app。然后我们将在APP的default页面添加输入框,最后我们将添加一个 view-model 去请求 REST并显示结果。1. 打开 Visual Studio 2012. 2. 创建SharePoint 2013 app. 3. 选择SharePoint-hosted 4. 打开Def... 阅读全文
posted @ 2014-02-18 12:46 疯吻IT 阅读(1754) 评论(0) 推荐(0) 编辑
摘要:在这个示例里我们将详细介绍 TokenHelper 类, 我们将看到它是怎么简单地从远程web站点访问SharePoint的。我们还将取到它的一些值。这将帮助我们理解连接是怎么被构造的,同时也方便我们的以一的调试。我们将创建一个简单的 auto-hosted app,用TokenHelper类从相关的SharePoint服务器读取数据,并显示在页面上。我们还将取出一些token的值以方便看到它们的内容。 1. 打开Visual Studio 2012. 2. 创建一个新的 C# SharePoint app 项目:RemoteWebApp。 3. 选择 Autohosted (它... 阅读全文
posted @ 2014-02-15 16:34 疯吻IT 阅读(2299) 评论(0) 推荐(0) 编辑
摘要:这个示例里,我们将演示如何获取用户信息:1. 打开 Visual Studio 2012. 2. 创建一个新的 SharePoint 2013 app: UserProfileTest. 3. 选择SharePoint-hosted, 点Finish.4. 打开Default.aspx : 加入knockoutjs和sp.userprofiles.debug.js(包含user profile的信息): 修改title: User Information加入用户显示:Current User Properties ... 阅读全文
posted @ 2014-02-13 18:08 疯吻IT 阅读(2770) 评论(2) 推荐(0) 编辑
摘要:在这个示例里,我们将创建一个页面测试 SharePoint APP的权限。这个页面有二个按钮,一个从documents里读数据,一个往documents里写数据:1. 打开Visual Studio 2012,创建一个新的 Sharepoint 2013 app: PermissionTest,选择 Sharepoint-hosted,点击Finish 2. 打开Default.aspx : 引入knockoutjs 加入二个按钮: App Permission Test Press here to read from Documents. Press here t... 阅读全文
posted @ 2014-02-13 12:13 疯吻IT 阅读(3504) 评论(3) 推荐(2) 编辑
摘要:Sharepoint里我们经常遇到这样的错误信息:我们能通过下面的power shell 命令来查到详细的错误信息:cls$correlationid = read-host$date = (Get-Date).AddHours(-1)get-splogevent -StartTime $date | where-object {$_.Correlation -eq $correlationid.Trim() -and $_.Level -eq "Unexpected" } | select Area, Category, Level, EventID, Message | 阅读全文
posted @ 2014-01-27 17:56 疯吻IT 阅读(462) 评论(0) 推荐(0) 编辑
摘要:owa安装完后,在sharepoint网站上打开word,excel,报错,Sorry, something went wrong, 通过correlation id找到错误信息(如何在sharepoint里通过correlation id查找详细的错误信息): Area : SharePoint FoundationCategory : WOPILevel : Unexpe... 阅读全文
posted @ 2014-01-27 12:16 疯吻IT 阅读(2046) 评论(0) 推荐(0) 编辑
摘要:页面: 1 2 3 5 6 7 8 9 10 12 13 14 --%>15 16 17 18 19 20 22 23 24 26 27 28  --%>29 30 31 33 storage space allocation for more details about the content in this site collection." />34 35 36 37 View Code 用户控件: 1 2 3 4 5 6 ... 阅读全文
posted @ 2013-11-25 14:32 疯吻IT 阅读(391) 评论(0) 推荐(0) 编辑
摘要:打开下面path的web.config文件:C:\Program Files\Common Files\Microsoft Shared\Web ServerExtensions\12\TEMPLATE\LAYOUTS修改:......如果没有就添加: 阅读全文
posted @ 2013-11-21 18:17 疯吻IT 阅读(185) 评论(0) 推荐(0) 编辑