Catégorie : English

Redirect after Deleting [Sharepoint]

When I open a dialog for an EditFrom and use the « Delete Item » button from the ribbon, then the main page is redirected to the related Sharepoint list. This behavior is very bad for the user experience. To change it I used the below Javascript code: // replace the Delete Item default action when into […]

Yes, you can be lazy and get more than 5000 SharePoint Items

To reply to this blog post I wanted to share the same thing but with SharepointPlus. To use the paging option and get all the content from a large Sharepoint list you can simply do the below code: $SP().list(« My List »).get({ fields: »ID,Title », rowlimit:5000, paging:true, progress:function progress(nbItemsLoaded) { // for each new page this function will be […]

Execute an action before saving a form but after the form validation [Sharepoint]

Let’s say you want to do an asynchronous request just before saving a Sharepoint form, but after Sharepoint verified all the fields in your form (for mandatory ones, or for format, …). Here is my solution to do it (using jQuery.Deferred): // this function will do our asynchronous check function beforeSaving() { var deferred=jQuery.Deferred(); setTimeout(function() […]

Disable X-Frame-Options on Sharepoint

I needed to communicate with an iframe on Sharepoint, however Sharepoint returned Load denied by X-Frame-Options … To override this limitation you have to create a Webpart page where you’ll add the code <WebPartPages:AllowFraming runat= »server » /> into the <asp:Content> section (that might work somewhere else, but I did this way). You can also add it […]

Capture HTTP(S) traffic from Android using a sniffer

I wanted to debug an Android app that uses HTTPS requests with a JSON API. Thanks to this article I’ve been able to use my Windows 10 computer to get all the network from my Android phone thru my local network and decode the HTTPS requests ! I’m going to summarize the steps from the […]

Hide a field into a form with JSLink based on field’s description [Sharepoint]

On Sharepoint 2013 I was trying to hide a field (the complete row) based on some elements into its description. To do so we will call our file using the JSLink (see my previous post about it). The JS file looks like that: (function() { // do some actions as soon as the fields are […]

Bypass a lookup field not displayed because of threshold on NewForm and EditForm [Sharepoint 2013]

EDIT 22/Dec/2016: there is s a new version of this article at https://blog.kodono.info/wordpress/2016/12/22/2-bypass-a-lookup-field-not-displayed-because-of-threshold-on-newform-and-editform-sharepoint-2013/ Sharepoint is really annoying to limit the access to the list with more than 5,000 items… It causes many troubles, and one of them is when you use a lookup field into a form that is tied to a big list. Sharepoint […]

Send an email to several recipients from a String in a workflow [Sharepoint 2013]

I found the case in which I have to send 1 email to several recipients. I have the names stored into a Sharepoint list. Using REST API and a call into my Workflow I’ve been able to get a list of login names (using $expand=MyUserField and $select=MyUserField/Name), then you just need to concatenate them separate […]

Add a SharePointWebControls into a HTML version of a MasterPage [Sharepoint 2013]

In Sharepoint 2013 it’s now possible to create the MasterPage based on an HTML file. Here is the snippet you need to add into your HTML page to get a SharePointWebControls: <!–SPM<%@ Register Tagprefix= »SharePointWebControls » Namespace= »Microsoft.SharePoint.WebControls » Assembly= »Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c » %>–> <!–CS: Start Create Snippets From Custom ASP.NET Markup Snippet–> <!–SPM:<SharePointWebControls:TextField runat= »server » FieldName= »Title » />–> <!–CE: End […]

Illegal use of $_SERVER. You must use the request class or request_var() to access input data. [phpBB]

When I want to update my phpBB forum I get this annoying message because I’m using a homemade auth file where $_SERVER is used. I found the solution on the phpBB forum: Modified /forums/config/parameters.yml. Set core.disable_super_globals to false and delete the cache