Tag Info

Hot answers tagged

9

Preparing your JS files for SP2013: Modify JQuery and all additional libraries to be in the SharePoint namespace To add a file into a namepsace surround it with this code: // Example for JQuery, replace jquery with your library name function $_global_jquery() { // Library code goes here } $_global_jquery(); This will ensure correct On Demand ...


9

As a part of the new Minimal Download Strategy (MDS) the sp.js library is not loaded until explicitly called in SharePoint 2013. Your case is pretty common, for example for a publishing pages, where sp.js library is loaded in the edit mode but not in the display mode. Solution Replace SP.SOD.ExecuteOrDelayUntilScriptLoaded the with SP.SOD.executeFunc ...


7

Minimum Limit is 2000 and Maximum limit is 2147483647 list view threshold by default is 5000 and 20000 for auditors and administrators. Effect on performance :The limitation actually comes from sql server. if SQL Server executes a query on a single table that would exceed 5,000 results, SQL Server will lock the entire table while the query executes. Since ...


6

use this powershell script to download Data from SharePoint Document Library.it takes around 2 minutes to download 1Gb data. if((Get-PSSnapin "Microsoft.SharePoint.PowerShell") -eq $null) { Add-PSSnapin Microsoft.SharePoint.PowerShell } #Script settings $webUrl = "http://xyz:1000/" $docLibraryName = "Documents" $docLibraryUrlName = "mydocs" ...


6

You can not just turn data.d.results on a string. You must make a grab for For all results that return in data.d.results. So you will have: for(var i = 0; i<data.d.results.length; i++){ $('#event_listing').append(data.d.results[i].ID); $('#event_listing').append(data.d.results[i].Title); } So you return the ID and title of all objects, since ...


6

user1901384 is correct, ExecuteOrDelayUntilScriptLoaded won't load it, it will just check to see if it has been loaded. Take a look at this code sample (full page here). You don't need the clientContext part, what you're looking for is SP.SOD.executeFunc() but I left in the clientContext because you might find that helpful as well. Put your console.log('2') ...


6

The rest interface is not available to anon users by default. It can be enabled, but MS recommends against it. The preferred solution is to enable the search rest api for anonymous access, and retrieve all data that you need via that. A good article that explains the above in detail. Waldek's post that is a good explanation of how to enable the search api ...


5

@PirateEric Sorry but this is untrue. Anyone who finds this as I did searching for a way to change the List URL of a SharePoint 2013 last can do so in Designer by following the steps outlined in this SO post: http://stackoverflow.com/questions/12904944/change-sharepoint-library-url Essentially: In SharePoint Designer just navigate to All Files navigation ...


4

WebPart (Farm Solution) GAC - DLLS placed in GAC, file level folders placed in the hive WebApplication- DLLS placed in BIN folder of the web app, file level folders placed in the hive WebPart (Sandbox) GAC - DLLS placed in UCCache, content stored in the web app database WebApplication -N/A No, you only have to add third party libraries to the ...


4

When we are creating new webparts when is it that we have to add safe controls to package or web.config. I am confused on this topic.. Pls guide. When you develop a new web part using Visual Studio 2010 or it later versions (Farm solution), it will create a WSP which is deployable to specific web application and a safe control entry is automatically ...


4

It is the "SharePoint Products and Technologies Configuration Wizard". Used for configuring SharePoint after installation, updates, farm modifications etc.


4

You need to use the overload for SPField.Update that takes a boolean parameter. That will push the changes to lists that use the field.. I.e., in Powershell: $myField.Update($true) MSDN documentation here.


4

Short answer. No. Create a Search centre and configure your refiners there. The OOTB ossearch.aspx page is not editable.


4

You cannot use the following characters in file/folder name: Tilde (~), Number sign (#), Percent (%), Ampersand (&), Asterisk (*), Braces ({ }), Backslash (), Colon (:), Angle brackets (< >), Question mark (?), Slash (/), Plus sign (+), Pipe (|), Quotation mark ("). You cannot use the period character consecutively in the middle of a file/folder ...


4

CAMLViewFields: '<ViewFields>'+ '<FieldRef Name="NamePage" />'+ '<FieldRef Name="Date" />'+ '<FieldRef Name="Title" />'+ '<ViewFields>' should be CAMLViewFields: '<ViewFields>'+ '<FieldRef Name="NamePage" />'+ '<FieldRef ...


4

The template file from the article that you mentioned in the question contains some typos and hard-coded parameters like title and list url. Instead I would recommend you to utilize the template provided below. Regarding template file, in fact, there are several ways how to apply custom template to List View, and not necessary only via JSLink property. ...


4

Nothing is 100% secure, Because if a person who has right permission and he decided to misue of the documents than he can. But their are couple of things to try. Information Rights Management (IRM) is a persistent file-level technology from Microsoft. It uses permissions and authorization to help prevent sensitive information from being printed, forwarded, ...


3

You can set the view that you have configured as the default view, and then delete the allitems.aspx view. That way when people navigate to the list they are taken to the new default view (your view). It is important to be aware though that this is no substitute for security. Users will stil be able to access individual list items by their unique url, and ...


3

If you're following that tutorial, remember that in SharePoint 2013 the LAYOUTS directory has a /15/ node. So in SP2010, the path might have been /_layouts/awesomeness/jquery.js but that exact same path in SharePoint 2013 might be /_layouts/15/awesomeness/jquery.js.


3

Check the below blog, She first explain the case why we need the retention then how to implement in the SHarepoint, I think this will solve your issue. Applying Document Retention in SharePoint 2010


3

SPList list = web.Lists["Notifications Group"]; foreach (SPListItem item in list.Items) { string fieldValue = item["Specific users"].ToString(); SPFieldUserValueCollection users = new SPFieldUserValueCollection(web, fieldValue); foreach (SPFieldUserValue userValue in users) { SPUser user = userValue.User; //Do something with ...


3

you dont need to extend the web app rather you have to update the IIS bindings. On the WFE servers, Add the Binding for the SSL & attach the certs. Now update the Https entry into the AAM via Central Admin. check this guide: http://blogs.msdn.com/b/sowmyancs/archive/2010/02/12/how-to-enable-ssl-on-a-sharepoint-web-application.aspx


3

The main issue with the specified approach that Calendar view is not yet generated when an event handler is bound to the mouseover JavaScript event. It is recommended to take a look at a different approach, where instead of modifying DOM of Calendar, you could customize the Calendar control behavior and properties. How to customize Calendar New Item ...


3

Add a CustomAction and specify Location="EditControlBlock". Example: <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <CustomAction Id="SomeID" RegistrationType="List" RegistrationId="101" ImageUrl="/_layouts/1033/Images/SOMEIMAGE.GIF" Location="EditControlBlock" Sequence="301" Title="My Custom ECB Menu ...


3

WOW, thats alot of lazy changes to IIS. Stuff that i wouldnt recommend.... if you need to do it than do one thing at a time or atleast test it on a test server first! i understand you might have 100's of web apps and app pools but doing multiple changes for all webapps is crazy --- unless well tested on just one webapp to start with!! as for the issue: ...


3

Please use RowLimit Property and don't write RowLimit in CAML itself as described below: SPQuery oQuery = new SPQuery(); oQuery.RowLimit = 10; oQuery.Query = "<OrderBy Override=\"TRUE\">" + "<FieldRef Name=\"FileLeafRef\" /></OrderBy>"; Please change the CAML Query according to your needs.


3

Use windows explorer, in 2010/2013 it's found on the library tab of the library (and only works in IE on windows)


3

~, #, %, & , *, {, }, \, :, <, >, ?, /, |, “ above special character is not allowed for files/folder.. you need to replace these characters for create folder or files..


3

Without access to Designer to create a workflow, your best bet would be to use an alert on the list. The alert can be configured to send an immediate email when an item is added to a certain individual(s). It will contain all the list item data as well as a link to the item. I don't really like the alters myself, but given your situation, this would be the ...


3

Don't add View Tag, reform the query as follows: CAMLQuery = "<Query><OrderBy><FieldRef Name='Fiscal_x0020_Year' Ascending='TRUE' /></OrderBy></Query>"



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