Tag Info

Hot answers tagged

4

I wonder if it is possible to achieve this in OOTB search results. However, i came across a workaround here. It does not use SharePoint Search,instead, it uses CAML query with a property to show recurring events as different item. The RecurrenceID field identifies a specific instance of a recurring event and its value represents the starting date and time ...


3

Yes you can, but be sure to try this in your test environment first. Follow the steps in the article SharePoint with more than one SQL instance: possible or not possible On the SQL server Backup the content database. Restore the database on the second instance Add the same permissions for the content database that you had on the source ...


2

The assembly declaration seems wrong. Report here the Page directive, so we can see what's wrong. Anyway, it should resemble this: Inherits="AssemblyNameSpace.CustomPageClassName, AssemblyNameSpace,Version=1.0.0.0,..."


2

It appears I was simply missing accurate domain information. My "user" variable changed to include the domain name and user name combined allowed me to finally remove a user from the group. function deleteClick(arrayPos){ var group = userArray[arrayPos][0]; //group name var user = userArray[arrayPos][1]; //user.name var domain = ...


2

Every document has several properties, such as ModifiedBy, Author, etc. You can display them using, e.g. $ctx.Load($document) $ctx.ExecuteQuery() Write-Host $document.Author What you will receive, however, here will look like: SharePoint.User.User You will need to load the users separately from the documents, otherwise you will get only the name of the ...


2

I think you must include your third party assembly like describded here: Just include the assembly in the package The complete process is described here. http://blog.mastykarz.nl/including-additional-assemblies-wsp-visual-studio-sharepoint-development-tools/ Also look into your ULS to identify the error.


1

The following example demonstrates how to reorder fields in content type using CSOM var ctId = "0x01020047F5B07616CECD46AADA9B5B65CAFB75"; //Event ct var listTitle = "Calendar"; using (var ctx = new ClientContext(webUri)) { var list = ctx.Web.Lists.GetByTitle(listTitle); var contentType = list.ContentTypes.GetById(ctId); //retrieve fields ...


1

Run the command to find hidden features as suggested previously. If that doesn't help, run SharePoint 2010 Management Shell from one of the SharePoint servers and type: Install-SPFeature -ScanForFeatures This will show you any features that are available in SharePoint but have not been installed. You can install any missing features using the command: ...


1

Try adding: context.Response.AddHeader("content-disposition", "attachment;filename=" + file.Name);


1

Add the reference using System.Collections.ObjectModel; to the file.


1

You should pass a SPQuery object to the GetItems method. In the query attribute you have to put just the <Query> tag. Use: SPQUery query = new SPQuery(); query.Query = "" //your <Query>...</Query> tag //for all your view field query.ViewFields ="<FieldRef Name='ID'/>" To specify the row limit use: query.RowLimit = 100; To ...


1

We can't put calculation formulas in filter text so something like Today()+8 etc will not work. Two work arounds Use CSR/JSLinks to hide rows which don't fall in that time period. Use query string filtering. I.e. calculate the date range and sent it via query string ( ex: on link click which open the view page)


1

First of all, you should use the ItemAdded event, instead of the ItemAdding, as in the latter you don't have access yet to the SPFile object. That said, here is how to get hold of the file that was added to the library: public override void ItemAdded(SPItemEventProperties properties) { var file = properties.ListItem.File; // open the file either as a ...


1

Depending on the field type, you may not be just able to set the field value like you do it with simple text field type. E.g., with multi-choice fields you would do it like this: $choicevalues = New-Object Microsoft.SharePoint.SPFieldMultiChoiceValue; $choicevalues.Add("Green"); $choicevalues.Add("Blue"); $i["multiplechoicefield"] = ...


1

This is the way I found to really know which server has FAST installed. (without opening each server one-by-one and checking for the FAST 2010 Server in installed programs) Browse one of the application servers Look for Install_Info.txt (default FAST configuration output file) Pray that someone copied it to one of the servers (and the server hasn't changed ...


1

Two options come to my mind: Implementing a Delegate Control and deploying it to the AdditionalPageHead control ID (see here and here for reference) a custom action that inject a piece of javascript, through which you check if the user belongs to some SharePoint group (see here an example of how to do that) and otherwise redirect to the homepage.


1

This has nothing to do with SharePoint. Add a css class to your image tag, then add the following style <img class="no-border" src="..."> <style> .no-border, .no-border a { border: none; } </style>


1

Append IsDlg=1 to your url string



Only top voted, non community-wiki answers of a minimum length are eligible