Hot answers tagged

5

Try this for calling your function: SP.SOD.executeFunc('sp.js','SP.ClientContext',getMyTasks); You will get more info from below link: SP.SOD.executeFunc(key, functionName, fn) Method


4

Where have you inserted the script? In a webpart? If so, add ?contents=1 to the URL and close the webpart from there


3

Put this below script in CEWP on your page: <script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script> <script> $( document ).ready(function() { $("#DeltaPlaceHolderPageTitleInTitleArea span span a").attr("href", _spPageContextInfo.webServerRelativeUrl); }); </script> It will ...


3

Maybe use the Copy action from Site Settings -> (Site Administration) Content & Structure But be careful, it might actually do what it says and make a copy


3

Typically, it runs under the farm account but if you changed it then the possible workaround is. Stop the Application Discovery and Load Balancer Service Application Service's Instance Remove the Service Faulty service account using the powershell "Remove-SPManagedAccount -Identity " Now you can start the service instance, i think it will pick the Farm ...


3

No need to do this via SharePoint Designer and you should try to Open List > List Settings > Advance Settings > scroll down to dialogs check Yes as shown below.


2

Yes, there is a way to add multiple time lines. The limitation on SharePoint is that for a task list, there is only one default timeline in which the tasks are added. We can add another timeline to the list using the list folder properties. If we query the folder properties, we can find the timeline_timeline property which contains the metadata for the ...


2

It doesn't work in my tenant either. A workaround is to create a SharePoint group, add the built-in group to it, and then target the link to the group you created.


2

REST is only going to give the users results to what they have access to (I'm surprised the lookup column actually works as they currently don't have access to the data). If you don't give them permission, they won't see it. Set unique permissions on the list so everyone has read access, except for a group that will be responsible for maintaining the data. ...


2

In SharePoint, any file (outside _layouts: _layouts is a huge exception to what's following here) is either "ghosted" or "unghosted". "Ghosted" means the file source (content) is stored on the disk of each SharePoint server (WFE) of the farm. Whenever a user requests a page from SharePoint, and the page is ghosted (and marked as ghosted in the DB, along ...


2

To answer the first question, you MUST either create or clone the DOM element that you pass to the showModalDialog, because MS deletes it when they are done with it (!) To answer the second, to close a dialog there are two options. You can either simulate a click on the X in the corner of the dialog, or call the close method on the dialog. For example (...


2

all Updates for SharePoint 2013 require SharePoint Server 2013 SP1 to be installed first.Read More here: May 2016 CU for SharePoint 2013 product family is available for download It is required to have SP2 installed for the base product and all installed language packs to install May 2016 CU for SharePoint 2010. Read more here May 2016 CU for SharePoint 2010 ...


2

I think you should better know abut SharePoint Survey feature, Quick steps: Click Settings , and then click Add an app. On the Your Apps page, look for and click the Survey icon. Type a name for the survey and Create it. You will see your Survey listed in the 'Site Contents' page. Click on the “Survey” we just created. The next screen should take you to ...


2

At the point in your code where you want to get the choices, ctx.CurrentFieldSchema.Choices is an array of lookup choice objects, which each have two properties, LookupId and LookupValue. Here is a screenshot illustrating what I mean: In order to find out what is available to you, I highly recommend setting a breakpoint in your script, and just ...


2

I answered a similar question here. Your JavaScript would look similar to this (note the use of jQuery): var count = 0; $.when( RestGet("listname1", "yourErrorDiv", "Couldn't get from listname1"), RestGet("listname2", "yourErrorDiv", "Couldn't get from listname2"), RestGet("listname3", "yourErrorDiv", "Couldn't get from listname3")).done(...


2

You can not increase the limit. Possible workaround You can use Multi-Text column find more here OR You can use URL shortener like https://goo.gl/ and then store the URL in your hyperlink column. Google's URL shortener has JavaScript API. So call this API from your JS code and then store it in your hyperlink column. https://gist.github.com/hayageek/...


2

Threshold is not a boundary or a limit, instead it's a restrictiona in which the default value can't be exceeded unless that value is explicitly modified. You can not set List View threshold for a single list. This can only be done on Web Application level. Follow these steps: Login to Central Admin Go to Application Management -> Manage Web Applications ...


2

Sample code to create document library . url: http://site url/_api/web/lists method: POST body: { '__metadata': { 'type': 'SP.List' }, 'AllowContentTypes': true, 'BaseTemplate': 101, 'ContentTypesEnabled': true, 'Description': 'My list description', 'Title': 'Test' } Headers: Authorization: "Bearer " + accessToken X-RequestDigest: form digest ...


2

Doing this using the Client Object Model would be much easier. Unless you have a reason that you absolutely need to use the REST API, I suggest you switch. That said, here's the code you need to create a list using the REST API: private ICredentials creds = new NetworkCredential("username", "password", "domain"); private string GetFormDigest() { var ...


2

Antivirus Always cause the issue. MSFT have the guideling regaring the AV. You ave to exclude the Certain folders from the AV scan. Hive Folder ULS Logs Folder IIS virtual Direcotries App / Local Fodler for the service account. SharePoint Installed Location and more Please check Below KB for complete list of the exclusion. Certain folders may have to be ...


2

No need to re-invent the wheel in SharePoint Designer. Adjust the list settings > Advanced settings > Launch form in dialog > Yes


2

SharePoint Compliance requires to comply users with a specific usage policy, In your SharePoint sites, it consists of : IRM for Document Libraries : to disallow user copy your document content Record Center and In-Place Holds : for archiving with 3 Tera content database. Auditing : to audit any changes occurs in your SharePoint site. Retention or ...


2

For your question "Is it possible to attach a Remote Event Receiver to a list programmatically?, The answer is YES. Yes it is possible to attach the remote event receiver programmatically. We can make use of EventReceiverDefinitionCreationInformation class to make this possible in AppInstalled event. For your query there is perfect article written here ...


2

The possible reasons for that: You didn't look at the correct site, Recycle Bin in SharePoint is site-specific, a document deleted from http://myportal/mainsites/site1 will not appear in the top-level site’s http://myportal/mainsite/ Recycle Bin. Recycle Bin is not only site-specific, it is also specific for each user. Thus the Recycle Bin contents you see ...


2

Use the PnP JavaScript Library to check the page type. We can determine the Page type by using Content Type Id, Wiki Page - content type id starts with "0x010108" Web Part page - Content type id starts with "0x010109" Publishing Page will have the Property called PublishingPageLayout field. Example 1: ( Determine based on Content type ...


1

Below reference will help you to understand about JSOM MSDN reference SharePoint JSOM RenterGroup Renter group templates


1

Did you create a Managed Property for "A"? If not your query will not work. If "A" was created as a Site Column, SharePoint will create an "Automatic" Managed Property based on the name and data type. For example, if "A" is of type TEXT you could try AOWSTEXT:"Text in A" There are tons of examples on how to create Managed Properties if you search for it.


1

You can't increase the character limit of the hyperlink column. But you have a workaround for it, Add a Multi-Text column to your list Edit the item that has long URL Go to the Multi-Text field and you will get Rich-Content Ribbon Click Insert on the Ribbon > Link > To Address Add your Title and long URL in the respected field Source: ...


1

You can achieve this by keeping the following code in Content Editor WebPart. $(document).ready(function(){ $('#DeltaPlaceHolderPageTitleInTitleArea').wrap('<a href="Your Link" />'); }); Where DeltaPlaceHolderPageTitleInTitleArea is the Id of your title placeholder. I achieved this functionality in past.


1

The issue may be caused by the versioning settings for the list. If Require content approval for submitted items in versioning settings for the list is selected, then you can decide who can view the draft items. It depends on the user's permission that they can see draft item in the list. Resolution So if you want to make the users be able to view the ...



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