sharepoint

Creating a development environment for SharePoint

落花浮王杯 提交于 2019-12-29 07:03:14
问题 I haven't touched sharepoint in years. If I want to setup a development environment to get up to speed, what options do I have? I don't have an MSDN license, is there anyway I can get up and running for free? (for development only) 回答1: You need a Windows 2003 Server (or 2008 Server, but I have no experience with that), no way around that. You can then of course use Visual C# 2005 Express and the SHarepoint Services 3.0 if that's your target. If you want to do development on Sharepoint 2007,

Check if Current Users belongs to SP group using javascript Client Side Object Model

谁说胖子不能爱 提交于 2019-12-29 04:20:06
问题 I havent found a specific example of how to get the current user and then check if it belongs to a specific sharepoint group, as I havent found anything I cant provide a code, help on the right direction is appreciated. 回答1: SharePoint 2013 CSOM Prerequisites: compatible with SharePoint 2013 CSOM API only since SP.GroupCollection.getByName Method is not available in SharePoint 2010 How to check if current user belongs to SharePoint group via CSOM (JavaScript): function

How do you copy a file into SharePoint using a WebService?

北战南征 提交于 2019-12-28 16:07:07
问题 I am writting a winforms c# 2.0 application that needs to put an XML file into a document library on SharePoint. I want to use a WebService instead of using the object model (no sharepoint.dll to reference here) I am currently using the http://webserver/site/_vti_bin/copy.asmx webservice. Here is some code: byte[] xmlByteArray; using (MemoryStream memoryStream = new MemoryStream()) { xmlDocument.Save(memoryStream); xmlBytes = memoryStream.ToArray(); } string[] destinationUrlArray = new string

Why don't errors rasied inside Get-SPWeb get propagated to powershell?

你说的曾经没有我的故事 提交于 2019-12-28 07:03:11
问题 If I have the following $webs = Get-SPWeb -Limit all -ErrorAction Stop foreach($web in $webs) { Write-Host $web.SiteUsers.xml } I know that the same code in .NET will get an exception from SPWeb.SiteUsers.xml for one site on my server. The actual exception or why isn't important - but running the code above I don't see any exceptions propogated or reported to PowerShell, $web.SiteUsers.xml just ruturns null on the site that errors. Is this a powershell thing or a quirk of Get-SPWeb? 回答1: When

How to manage column based access control in Sharepoint lists?

旧巷老猫 提交于 2019-12-28 06:25:01
问题 I'm making issue tracking portal based on Sharepoint. Users should be able to add entries, but in the entry itself I want one column to only be visible to a specific group of users (Administrators). Is there a way to set column based access control? 回答1: As far as I know that is not available in the standard platform. What you can do on the other hand is to handcraft your own fieldcontrol So in custom fieldtypes.xml <FieldTypes> <FieldType> <Field Name="TypeName">MyInteger</Field> <Field Name

【MOSS】Sharepoint中的PowerShell操作之站点备份与还原

青春壹個敷衍的年華 提交于 2019-12-27 15:19:10
备份站点 Backup-SPSite -Identity <Site collection name> -Path <backup file> [-Force] [-NoSiteLock] [-UseSqlSnapshot] [-Verbose] 那么就按照上面的代码敲吧(注意要有管理员的身份) 命令是: backup-spsite -identity http ://portal.sih.com.cn -Path c:\ yanpeng \ SIH_bak\2012-01-12 .bak 还原 站点 Restore-SPSite -Identity <Site collection URL> -Path <Backup file> [-DatabaseServer <Database server name>] [-DatabaseName <Content database name>] [-HostHeader <Host header>] [-Force] [-GradualDelete] [-Verbose] 命令是: restore-spsite -identity http://*** -Path c:\ yanpeng \ SIH_bak\2012-01-12 .bak -Force 来源: https://www.cnblogs.com/BruceGoGo/p

SharePoint 2010 网站集 备份 还原

筅森魡賤 提交于 2019-12-27 12:06:42
突然接到通知,要求系统上线,从新导入列表和工作流太费时间了,所以只能用还原测试环境的网站集的方法。 首先是生产环境要建好网站集,我子网站也建立了(不知道如果不建会不会有问题) 然后Windows PowerShell用敲命令的方法: 下面有的地方是从MSDN里拷贝过来的 在“开始” 菜单上单击“所有程序” 。 单击“Microsoft SharePoint 2010 产品” 。 单击“SharePoint 2010 Management Shell” 。 在 Windows PowerShell 命令提示符(即 PS C:\>)处,键入以下命令,然后按 Enter: Backup-SPSite -Identity <Site collection name> -Path <backup file> [-Force] [-NoSiteLock] [-UseSqlSnapshot] [-Verbose] 那么就按照上面的代码敲吧(注意要有管理员的身份) 我敲的命令是: backup-spsite -identity http://***:8000 -Path c:\backup\a.bak -force 还原的方法和备份的地方一样 Restore-SPSite -Identity <Site collection URL> -Path <Backup file> [

Best way to resolve file path too long exception

无人久伴 提交于 2019-12-27 10:35:08
问题 I created a app that downloads all document libraries in a SP Site , but at one point it giving me this error (I tried looking at google but couldn;t find anything, now if anyone knows any trick to solve this problem please respond otherwise thanks for looking at it) System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. at System.IO.Path

Best way to resolve file path too long exception

无人久伴 提交于 2019-12-27 10:33:53
问题 I created a app that downloads all document libraries in a SP Site , but at one point it giving me this error (I tried looking at google but couldn;t find anything, now if anyone knows any trick to solve this problem please respond otherwise thanks for looking at it) System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. at System.IO.Path

How to make webEnumerator.moveNext wait until executeQueryAsync query executes

南笙酒味 提交于 2019-12-25 18:48:28
问题 I want executeQueryAsync to complete before giving back control to webEnumerator.moveNext, anyway ? function onGetSubwebsSuccess(sender, args) { var webEnumerator = webCollection.getEnumerator(); while (webEnumerator.moveNext()) { alert("Loop 1"); web = webEnumerator.get_current(); this.props = web.get_allProperties(); context.load(this.props); context.executeQueryAsync(Function.createDelegate(this, gotProperty), Function.createDelegate(this, failedGettingProperty)); } } function gotProperty(