Tag Info

Hot answers tagged

5

CSOM and REST was introduced in SP 2010 so you wont be able to use that with 2007. SOM is an option but requires that your code runs on the servers of each farm. SharePoint Web Services will be your best option if you need to support all three versions with the same code from client computers. Lists Web Service (/_vti_bin/Lists.asmx) for getting libraries ...


3

CSOM: will work in SP online, SP 2010, 2013 and most probably 2016 REST: will work in SP online, SP 2010, 2013 and most probably 2016 OOTB Web service: will work in SP 2007, 2010, 2013 but maybe not in 2016 (and maybe not with future versions of SP online) Creating your own Web service with SOM: will work in SP 2007, 2010, 2013 and 2016


3

After some intense debugging I am answering my own question. And wasted +50 StackOverflow points on this, so am an idiot. I copied and de-minified the original (global) SharePoint RenderGroupTemplate function The relevant lines: b[d+".groupHeader"]=true; a+=spMgr.RenderFieldByName(c,d,b,h); delete b[d+".groupHeader"]; Became: ...


2

You would use Get-SPLogLevel -Identity <value>, e.g. Get-SPLogLevel -Identity Database to show the current level for the Database category. You can also exclude the Identity parameter to get all categories.


2

If you're going to develop a custom following feature, you don't have to use MySite. You can have a database outside of SharePoint databases which isn't governed by ConfigDB. I guess you have good reasons to do so. The users MySite isn't created when the user signs in to SharePoint for the first time. It's created when the user clicks her name and when she ...


2

RIGHT click on IE hold SHIFT and then RIGHT click again on IE LEFT click "Run as different user" login Repeat 1.- 4. for other users :)


2

Goto the search page where you are showing the results Edit the Search results webpart Edit the Query change query to speaker:{searchboxquery}


1

Change the pagination of list views to how you want and copy the changed URL. The next time you paste this URL, you'll see your pagination persisted. Some background info on how this works: If you notice the URL when you change the page of the list view, you'll notice something like #InplviewHash appended. This is because in SP 2013, inplview.js handles ...


1

I would create 3 different views with filters: View1 to display 1 to 35 items View2 to display 36 to 70 items View3 to display 71 to 100 items Add webparts to each column and select each webpart properties to display View1, View2 and View3. Tada...


1

The client object model was created in 2010. CSOM did not exist in 2007. So I would recommend the server object model.


1

You could add a number column to the list, call it, say, "Sort Order", and then create a view that sorts on the values of your "Sort Order" column.


1

Check out http://www.viewmaster365.com/#/How and http://www.viewmaster365.com/#/Create/ActionDelete It step by step explains how to execute JavaScript from a Calculated Column. The ID for an item is available on the Table Row, because a Calculated Formula is displayed inside that TR structure; all you have to do is: var ...


1

Use chrome and create multiple users In settings you can shift to a different user using top right menu every user login will be opened in a seperate window. Each window will have its own cache, saved passwords, bookmarks etc.


1

Personally, I use 3 browsers for testing with different users, this is the best way I think, you don't need to install a small VM, that's too dear and long to do it. Chrome, Firefox, Safari, Opera and Maxthon is your friends. Easy to install and test, just enjoy it.


1

There's a bunch of options: You can easily open up to 6 browser sessions: IE, IE InPrivate, Chrome, Chome Incognito, Firefox, Firefox Private browsing (+ Opera or else if you want!). They all have their own session/authentication information, and you can log in with 6 different users. At the same time, if you're developping in SharePoint, you can test ...


1

You may check the SPListItem.Workflows property on a given list item (e.g. the current list item) (see https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitem.workflows.aspx). That would give you the list of WF instances running in the scope of that item.


1

Add these scripts to your masterpage: <script type="text/javascript" src="/_layouts/sp.core.js"></script> <script type="text/javascript" src="/_layouts/sp.runtime.js"></script> <script type="text/javascript" src="/_layouts/sp.js"></script>


1

I had that same issue. Certificate turned up when I used this: foreach (var certificate in store.Certificates) { if (certificate.SerialNumber.ToLower().Equals(ClientSigningCertificateSerialNumber)) { storedCert = certificate; break; } } Update (original method, slightly changed): //removes unwanted characters string newString = ...


1

The follow function needs the MySite Site Collection. The information is stored in the site collection. There is a special List named Social in every MySite storing this information. For the Followed Document are store under the url: https://mysite.host/personal/<name>/Social/Followed Document


1

Use SPServices for this. You can pass the lastname / first name and get the user object using which you can fetch user properties. See: http://spservices.codeplex.com/wikipage?title=SearchPrincipals


1

I'm sorry but the setup user/farm user has to be a domain account. You can find more information about this following this link Setup user account - Domain user account Server farm account - Domain user account


1

If your lists are in site collections which are within the same farm (or server), you can try this: Function Copy-SPView([string]$WebURL, [string]$SourceList, [string]$SourceView, [string]$TargetURL, [string]$DestList ) { Write-Host "Loading Sytem Modules"; #Get-Module -listAvailable | import-module if ( (Get-PSSnapin -Name ...


1

I'm not sure that I fully understand the question (and I don't have enough rep to comment), but it sounds like you could add ?Source=http://URLHERE.com to the end of your URL to redirect. If you already have another parameter set, you'll have to change it to &Source=http://URLHERE.com.


1

You can try: function openModall(pUrl) { SP.UI.ModalDialog.showModalDialog( { url: pUrl, dialogReturnValueCallback: CloseCallback } ); } function CloseCallback(result, returnValue) { if (result == SP.UI.DialogResult.OK) { // some code } else if (result == SP.UI.DialogResult.cancel) { // ...


1

Their are two ways to check this. You can Use the powershell commands [Get-SPLogLevel][1]. This example displays throttle levels for all categories. You can go to Central admin Site of farm. Central Admin> Monitoring > Configure Diagnostic logging. On this page you can expand all the categories and check th level of Log.


1

I think it would be best to have them follow a standard naming convention for the Content Type names, like VendorName(or abbrev) Document, VendorName Project, etc and use separate groups. They could then use a singular CT hub and would reduce collisions. This gives total visibility to everyone and can help with governing it too. I would fear that if it was ...


1

I finally found a solution which is satisfying for me. Even though I wrote, that postMessage is not what I want to do - this has now become the solution. I always knew that I can solve this problem with postMessage (refer to @Rafael Dabrowski post for details). What I didn't like about it, was always that I thought I would have to edit every single page ...



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