Tag Info

Hot answers tagged

3

You might be using a wrong 'Web' object. It shouldn't be System.Web or Microsoft.Web. It should be from Microsoft.SharePoint.SPWeb namespace. So first of all you need to get an 'SPWeb' object from 'properties'. Depending on where you are activating the feature, it should be something like this: If you are activating a Web scoped feature: SPWeb web = ...


3

Since SP.Taxonomy.Term exposes CustomProperties property you could replace the line: taxonomyTerm.get_objectData().get_properties().CustomProperties; with this one: taxonomyTerm.get_customProperties() In order to optimize the request, you could specify explicitly what properties to retrieve for SP.Taxonomy.Term object via SP.ClientContext.load method, ...


2

You can look at this post below, demonstrating how to custom sort your results using display templates. The managed property must also be sortable. http://www.eliostruyf.com/add-sorting-display-templates/


2

I would recommend using a query against the change log. The "Event Receiver" really isn't it's just a timer job using the same approach detailed in the article. You could even run it all external to SharePoint from PowerShell if you wanted. No need to deploy custom code to SharePoint.


2

You could apply the following filter to exclude the fields that are not available in List forms: /_api/web/lists/getbytitle('<list title>')/fields?$filter=Hidden eq false and ReadOnlyField eq false


2

The below PowerShell script let you know whether 'State Service' application is running or not. Provide your State Service Application Name against $ServiceName" variable. $ServiceName = "State Service Application" $serviceApp = Get-SPStateServiceApplication -Identity $ServiceName Write-Host -ForegroundColor DarkGray "Checking if " $ServiceName " ...


1

Yes, you can use REST to query a list regardless of Search and its crawl status. You can use REST to list items from any list on any site in any site collection. To view a list: <site>/_api/Web/Lists/GetByTitle('My List') or <site>/_api/Web/Lists(guid'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx') To view list items: ...


1

Yes, you can do it. Virto Bulk Download is using the service for creating archives. . You need to pass several parameters to this service. The url of download service is "/_vti_bin/Virto.FileDownloader.Services/DownloadService/DownloadService.svc/Download/{ListId}/{ViewId}/{archiveName}/{keepFolder}/{fileSize}?items{items}&caml={caml}"; ListId - the ...


1

Not at server side if your interested in Office 365 server status. Your only options are client side tools, but they don't measure server performance.


1

in CA under Application Management->Manage Content Databases click on the Databases which do not host the MySite Sitecollection and reduce the number of Sitecollections to the absolut necessary amount. Example: I plan to use 2 SCs in PortalDB, 3 SCs in TeamDB. I set the Max Number of SCs on those DBs to 2 and 3 and create my SCs in them. Now the Maximum of ...


1

You don't actually have a value in your NameAndTitle field; you have a lookup that gets the values from two other fields. Sounds like you want to abstract that again -- a lookup on a lookup? That doesn't work in SharePoint. You have to write the value you want to the NameAndTitle field -- if you have SQL access you can do it with a trigger. Otherwise, you ...


1

using (SPSite site = new SPSite("http://pbmossdev")) { using (SPWeb web = site.OpenWeb()) { string listName = "New List"; string listDescription = "Test content types on lists"; Guid listId = web.Lists.Add(listName, listDescription, SPListTemplateType.GenericList); SPList myList = ...


1

Go to the List Settings page for your list, scroll down to the Content Types section, click on the link 'Change new button order and default content type', and on the following page uncheck 'Visible' for the Item content type. It will no longer be visible in the new item ribbon menu.


1

It should just be a matter of clicking on the Content Type in the library settings and clicking the delete this content type link. It won't delete it from the site collection, but will remove it from the library.


1

Thanks to Submits help for achieving my scenario. Here is the complete solution for the same. It will read the Image and Title from a library and when you click on it you can redirect to another page. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js "></script> <script type="text/javascript" language="javascript"> ...


1

This isn't the most elegant solution, so feel free to tweak: var row = document.createElement("tr"); var j = 0; for(i=0; i<this.pictureArray.length; i++) { //alert(this.pictureArray[i]); if (j == 0) txtHTML += "<tr>"; var fgh='http://google.com'; var res = this.pictureArray[i].split("/_t/"); var ...


1

What is going on is that Visual Studio deploys your solution globally and your feature is being activated on all webs. This is how it works. First of all set the project property of "Active Deployment" to "No Activation". Deploy the solution. Then activate/reactivate the feature on a specific web. The C# code, though, will be deployed to GAC or WebApp and ...


1

You can use following JS for this: function HideTiles() { $("#applist .ms-vl-apptile").css({ "display": "block" }); $("#applist .ms-vl-apptile").css({ "min-height": "50px" }); $("#applist .ms-vl-appinfo").css({ "min-height": "50px" }); $("#applist .ms-vl-appinfo").css({ "width": "500px" }); $("#applist .ms-vl-appimage").css({ "height": "50px" }); ...


1

Either will work - the feature ID or the feature name. From Technet documentation here: https://technet.microsoft.com/en-us/library/ff607803.aspx Specifies the name of the Feature or GUID to uninstall. The type must be the name of the Feature folder located in the 14\Template\Features folder or GUID, in the form 21d186e1-7036-4092-a825-0eb6709e9281.


1

For 2013, Check this out using (var ctx = new ClientContext(webUri)) { var currentUser = ctx.Web.CurrentUser; ctx.Load(currentUser); ctx.ExecuteQuery(); Console.WriteLine(currentUser.IsSiteAdmin); } Greetings


1

You should use the parameter DefaultProxyGroup when using New-SPMetadataServiceApplicationProxy


1

In SharePoint Online you cannot change the crawled property mappings of the Title managed property. What you could do is to use one of the predefined RefinableString.. managed properties and add the crawled property mappings that you want. Wait for the next full crawl and once that is done and you should get your field values.


1

Looping through the Word docs programmatically, as spmaster_jack suggested is probably your best bet. Depending on your level of comfort with programming languages and IDEs, you might be better off creating an Excel macro to loop through the Word documents, copying their table info to the current spreadsheet. This macro code may help point you in the right ...


1

Microsoft InfoPath has an Import from Word feature (File > New > Convert Existing Form).... However, I suspect this won't give you what you want. The proper solution here would be to write a small C# console app to iterate over each document and use OpenXML to extract the data from the table and then write this into a more suitable structure (e.g. SQL ...


1

The following example demonstrates how to update enterprise wiki page content: function updateWikiPage(pageUrl,pageContent,success,error) { getFileWithProperties(pageUrl, function(file){ var listItem = file.get_listItemAllFields(); var itemProperties = {'PublishingPageContent': pageContent}; ...


1

The upper boundary for documents is 30 million documents in a library. If you are anticipating this type of growth, you will need to leverage column indexes and ensure you are using filtered views. If you try to render a view that will return more than 5,000 items, you'll throw errors. So don't give out an unfiltered All Documents view. Carefully plan how ...


1

Deleting files is not an answer when a SharePoint library can contain millions of files without any performance issues. List View threshold is not about the number of items in a list. It is more about the views. The number of items returned by a particular view should not exceed it as it causes performance issues. You should instead look to filter your views ...


1

If you're using SharePoint 2010 or newer you could possibly look into Information Management Policy. Policy and Retention in SharePoint Server 2010 - should still apply for SP2013 on-premise. It is however date based. Otherwise a timerjob is a pretty solid alternative as you control the circumstances of when to do what.



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