Tag Info

Hot answers tagged

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 Prefer SP.SOD.executeFunc over SP.SOD.ExecuteOrDelayUntilScriptLoaded ...


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

@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 ...


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

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 ...


5

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. ...


5

The following example demonstrates how to determine whether current users belongs to the specified groups: getCurrentUserWithDetails() .done(function(data) { var groupNames = ['News Owners','Approvers']; //determine wether current user is a memeber of group(s) var userGroups = data.d.Groups.results; var foundGroups = ...


5

There is a couple of reasons for this: SharePoint is from companies point of view a Microsoft product, so if there is a security risk then it's seen as Microsofts fault. This is the reason for Microsoft to putting in a lot of security into SharePoint which by default isn't in ASP.Net like: not running full trust not allowing updates on GETs and ...


4

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


4

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


4

Using an event receiver: You can check the last added item, then increment it with 1. Then modify the number as 2014/001, 2014/002 and ect... No need to have workflows. Another way is having a property bag value which stores the last added id, then increment it by 1 and save, set that value to the number to the list item. This too can be done using an ...


4

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


4

Something like this: $w = get-spweb "<webURL>" $list = $w.Lists.TryGetList("<Title of the list>") if($list -ne $null) { # The list already exists } Replace <webURL> and <Title of the list> with your actual values


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, ...


4

to install and Configure the SPF 2013, please check this Technet loaded with all resources. or more spefic to SPF check this. Check this blog for all feature comparison Its depend upon on the your requirement, How many users you have and what zone you want intranet or internet. For On-Premises, intranet sites are licensed using a Server/CAL (Client Access ...


4

hive folder indicates the major version number. %CommonProgramFiles%\Microsoft Shared\Web Server Extensions##, where ## indicates the major SharePoint version Reference https://habaneroconsulting.com/insights/The-SharePoint-Hive


4

You are trying to read the property values too early in the web part life cycle. The property values are populated from the content database after the constructor has run. If you check the property values in OnLoad or OnPreRender you will see the values you have set in the editor.


4

In SharePoint 2013 was introduced a so called Client Rendering Mode (CSR) which represents a rendering engine for list views, list forms and search results. I would recommend you to consider the following approach for your task. How to highlight the rows using CSR Below example demonstrates how to highlight list task rows based on their status ...


4

The Audit feature is there in Sharepoint 2007 foundation but there is no user interface associated for auditing in Sharepoint 2007 or 2010. You can use Powershell to get the desired results Check this link(This applies to Sharepoint 2007 also) How do we activate auditing in SharePoint Foundation 2010?


4

For reasons of security, by default, Microsoft SharePoint Foundation does not allow you to make posts from a Web application to modify the contents of the database unless you include security validation on the page making the request. You can update data for a single site or for a site collection by adding a page directive and a FormDigest control to the ...


4

you can use $().SPServices <script type="text/javascript" src="/sites/sprc/Resources%20%20jQuery/jquery-1.3.2.min.js"></script> <script type="text/javascript" src="/sites/sprc/Resources%20%20jQuery/jQuery%20SP%20Services/jquery.SPServices-0.5.4.min.js"></script> <script type="text/javascript"> function StartWorkflow(ItemURL, ...


4

After some amount of research i found a site which provides free site creation online!! https://www.cloudappsportal.com I also managed to create a free site :) This site is actually great! I gave this url and i was able to create sharepoint app for that site and deploy it!!


3

Here are all the CSS reference charts I have encontered so far. SharePoint 2007 http://www.heathersolomon.com/content/sp07cssreference.htm SharePoint 2010 http://erikswenson.blogspot.se/2010/01/sharepoint-2010-base-css-classes.html http://sharepointexperience.com/csschart/csschart.html SharePoint 2013 ...


3

It's a known issue for a publishing pages (here or here), sp.js library is loaded in the edit mode but not in the display mode. As part of Minimal Download Strategy (MDS) that was introduced in In SharePoint 2013, SharePoint JavaScript libraries like sp.js are not loaded until explicitly called. Solution Utilize SP.SOD.executeFunc method to load ...


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

~, #, %, & , *, {, }, \, :, <, >, ?, /, |, “ 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>"


3

It seems like there are really a few answers to this question -- First: If you want your Powershell script to work with the multiple single quotes, you can use Powershell character escaping to escape the single quotes that are really apostrophes (i.e. "deliver's"). If you add a back-tick (`) in front of the apostrophes, Powershell will not see them as the ...



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