Tag Info

Hot answers tagged

6

I hade the exact same problem last week and found no built in way of solving it. What I ended up doing was checking the value of beforeProperties and afterProperties of what I wanted to update, and if there was no difference, then I broke out of the method. I actually wrote a blog post about it. This is an annoying problem that I hope Microsoft improves in ...


6

I find your requirement interesting, as it is quite common for a ticketing system. SharePoint can't do this natively, the reason being that the created and modified dates get written when an item is actually inserted and updated. You need to track the time spent on a form, that is the timespan between the click on the "add new item"/"edit item" button and ...


5

Elevated privileges is not enough to write to the configuration database. With elevated privileges you will use the the web application app pool’s identitty, which has only read permission to the config db by default. Of course admin user (which runs the central admin should have read and write permissions). See more at: ...


4

You cannot change any properties in the User Profiles via client OM code (neither .NET nor via JavaScript) with the exception of the user's profile picture. MSDN - Work with user profiles in SharePoint 2013 Not all functionality that you find in the Microsoft.Office.Server.UserProfiles assembly is available from client APIs. For example, you have ...


4

No, not by default. You need to do a workaround like this: Data on the app web is not crawled by the search indexers, so custom data must be deployed remotely or in the host web. This applies to all apps for SharePoint, but we note it here because apps intended for anonymous access often require search functionality. Reference: How to: Create apps for ...


4

Use SPField.ShowInNewForm and SPField.ShowInEditForm properties to control the visibility of fields in form pages. PowerShell example $web = Get-SPWeb http://intranet.contoso.com $list = $web.Lists["Tasks"] $field = $list.Fields["TaskStatus"] $field.ShowInNewForm = $False $field.ShowInEditForm = $True $field.Update() $list.Update() CSOM (JavaScript) ...


4

Tools For use: 1. FBA Configuration Manager for SharePoint 2013 – Author and Credit goes to Steve Peschka. The download comes with a ReadMe file. Please read it, since you need to register the WSP that comes with it. SharePoint 2013 FBA Pack – Author and Credit goes to Chris Coulson. Here is the documentation that will tell you how to ...


3

You mention that the form is stored in http://sharepoint/travel, but the error mentions the form residing in http://sharepoint/services. It could be that /travel and or /services are (in) different site collections using explicit managed paths. Get a listing of all Site Collections in that Web Application and see if this is the case.


3

Yes. You can use 2 WFEs without load balancing (via NLB or other hardware). It won't automatically fail-over, but if one WFE has an issue, you can access your content via the other WFE. If you are using a dns name (e.g, http://portal.company.com) instead of machine names you have two options: 1) enter both IPs for DNS entry which will provie "dumb" ...


3

your looking for term based navigation: goto site settings -> look and feel -> click on navigation for both global and current select managed navigation now goto term store managment tool 1.From the site collection Home page, click Site Contents 2.On the Site Contents page, click Settings. 3.On the Site Settings page, in the Site ...


3

This method getTermSetsByName returns a collection of termsets, not a single termset, so you should probably do something like: var clientContext = new SP.ClientContext.get_current(); var tSession = SP.Taxonomy.TaxonomySession.getTaxonomySession(clientContext); var ts = tSession.getDefaultSiteCollectionTermStore(); var tset = ...


3

When developing a high trust provider hosted app in VS, you are asked "How do you want you app to authenticate". Here you have got two options. If you are developing for on premise you can select "Use a certificate". The certificates are created in IIS. See this for more information on setting up dev environment for provider hosted apps. ...


3

Looks like Google is not supporting the non-FQDN url: Your company intranet In order for Google Analytics to generate reports for your corporate intranet usage, your corporate network must be able to reach the Google Analytics JavaScript file (analytics.js). Try loading the file in your browser using one of the following links: ...


3

In order to set Url Field value in SharePoint REST specify the following JSON object: URL: {Url: 'http://www.microsoft.com',Description: 'MSFT'} where URL is the name of a field. Example var metadata = { Title: 'myTitle', URL: {Url: 'http://www.microsoft.com',Description: 'MSFT'}};


3

The real answer here is to create a result source where you for "Type" choose "People Search Results". You don't need to add ContentClass=urn:content-class:SPSPeople For example: {?({searchTerms})} {?OR (({searchTerms}) spcontenttype:contact)} will give people + results of contenttype=Contact When testing this in the query wizard it will append ...


3

For every web application you can do the following: Get your timer job definition (SPJobDefinition) from SPWebApplication.JobDefinitions Get the guid: string jobDefID = SPJobDefinition.Id.ToString(); Add the guid in the query string http://srvr/_admin/JobEdit.aspx?JobId=jobDefID


2

It would help to know what load balancer you are using so I can help narrow the possible cause but the likely reason is detailed below. If you are using a hardware based load balancer such as F5 LTM then it will load balance traffic across the two nodes on the ports you specify. You will need to setup monitors to probe the health of the nodes and based on ...


2

I can't really provide a sensible answer to why this is happening (I can confirm I'm experiencing the same weird behavior. I'm sure this is related to the fact that they cut out the designer part without properly thinking about the consequences this would have had). What I can offer is a dirty workaround that proved to be almost always working in my case. ...


2

If you are only concerned about what documents users can see in the web part you are making then this is relatively straightforward using the Audience Targeting option in the web part. To do this you would make a web part for each of the different user groups, and for each one input the respective audience in the web part settings. The audience targeting ...


2

If you want to append to the url, you can add something like this - osssearchresults.aspx#Default={"k":"Amit","o":[{"d":1,"p":"Created"}]} Above, k = queryText ; d - can be 0 or 1 for specifying the sorting order ; p - parameter based on which you want to sort. Further you may look into this link Also if you are using result source for search results, ...


2

To add a calendar with just the current events to a page, click the gear icon and you should see the Edit page option. It seems like SharePoint online's UI might be different from on prem. I've added an on prem screen shot to this step. On SP online go to the Page tab and select Edit. * Click the Insert then WebPart => Apps => Events where Events is ...


2

There is no such feature out of the box . You need to write your own code for achieving it. something like protected void ExporttoPDF_Click(object sender, EventArgs e) { Response.ContentType = "application/pdf"; Response.AddHeader("content-disposition", "attachment;filename=ExporttoPDF.pdf"); ...


2

Based on your comment, create a separate feature for page provisioning and add it in FeatureSiteTemplateAssociation after the lists are created and put the feature which adds XsltListViewWebPart third in the order. So by the time the code in feature activated event of third feature is called both Lists and Pages will be available.


2

It depend upon your requirement. If you don't want write back to Active Directory just import from AD then SharePoint AD Import if your Option. you will get these Key benifits with ti. no requirement to deploy the UPS service instance, no “stuck on starting” it runs in the UP service instance it’s wicked fast in comparison to the FIM approach you can ...


2

For this, you'll want to use the ListItemCollectionPosition property of SPQuery. SPListItemCollectionPosition is the class which helps to achieve paging and sorting the results fetched by SPQuery. See here: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitemcollectionposition.aspx and here for a more comprehensive example


2

You have two ways: Use the GetLimitedWebPartManager that give to you access on what web part you have on the current page. You can use JQuery to find all the div tag that using one of the following css class: ms-WPBody, also ms-webpart-, and also the webpart's id start with a "WebPartWP" Do some crawling on your DOM and you will find what do you need. ...


2

You have to make a POST to _api/contextinfo to get a form digest. Scot Hillier has a library to help. http://www.shillier.com/archive/2013/09/08/managing-sharepoint-2013-app-context.aspx


2

Here is a way of changing it with powershell (still needs to be done per webpart though..) # Author: Mikael Svenson - @mikaelsvenson # Company: Puzzlepart # Date: December, 2013 # Reference: http://www.sharepointnutsandbolts.com/2013/12/Using-CSOM-in-PowerShell-scripts-with-Office365.html # replace these details (also consider using Get-Credential to enter ...


2

To be honest this sounds a lot like the same issue I've seen in our own environment, and once again at a client. But these two are a minority of cases. Here's additional info: http://social.technet.microsoft.com/Forums/sharepoint/en-US/56a3aaae-14c5-40dd-b87b-23c046f75980/sharepoint-2013-random-authentication-issue-where-users-are-suddenly-anonymous ...


2

You can use SPSiteDataQuery for getting List data from multiple sub sites of same site collection. Below is the basic code to start with ,bywhich you can use to get all announcement list items from the different sub sites: using (SPSite oSPsite = new SPSite(SPContext.Current.Web.Url)) { using (SPWeb oSPWeb = oSPsite.OpenWeb()) ...



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