Development

Using multiline string variables in JavaScript

Javascript logo

Javascript never had good ways to use multiline strings before ES6 had appeared. In ES6 you can use template literals – strings delimited by backticks instead of quotes, single or double. But what to do if you can not use ES6 possibilities? Read more»

TypeScipt / Javascript

Convert date format dd.mm.yyyy to a SharePoint query string format with JavaScript regular expression

Javascript logo

In SharePoint queries you should use date in the format ‘yyyy-mm-ddTHH:MM:SSZ’, for example, 2019-09-30T09:00:00Z. But the input form of the SharePoint datetime controls returns the value as ‘dd.mm.yyyyy’, the time value you will recieve in another way. Read more»

TypeScipt / Javascript

Fix SharePoint 2010 PowerShell Error “The local farm is not accessible”

After installation several Windows updates on servers with SharePoint I had started to recieve the warnings “The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.”. It means that I can not use PowerShell for administration SharePoint. Read more»

SharePoint

Render HTML file with C# console application and open it in browser

I created an application which rendered a report in HTML. To improve it, I wanted it to open the rendered file in browser to simplify the viewing one. In the beginning I thought about using the CMD file, but I found a better solution. Read more»

.Net & C#

SharePoint feature is not displayed in Features List

SharePoint 2016 Logo

Today in a test SharePoint environment I found that I don’t have one of SharePoint features which I have in the productive environment. I reinstalled the solution with this feature several times, but it hadn’t appeared. Read more»

SharePoint

Display multiline HTML text in SharePoint DispForm.aspx

By default, in SharePoint display form the multiline text field is written as a string without html-tags. To display text as the multiline one with HTML-tags, you should modify the default parameters of the XSL expression. Read more»

SharePoint

Create Save and Stay on Page button in SharePoint list Edit Form page

SharePoint 2016 Logo

Recently I was looking for the solution about how to add the button to “Save and Stay on page” for SharePoint Edit Form page. I read several articles how to do it, but most of them were no good. But also I found one useful page which became the base for my solution. Read more»

SharePoint

Open specific tab on page load with JQuery UI

jQuery logo

I made a simple HTML page with JQuery UI tabs. But the customer asked to give URLs for each tab. I was a bit surprised with it, because I remember only how to make default tab on page load. You can do it with the syntax like this: $(“#tabs”).tabs( { selected: x  });  where ‘x’ […] Read more»

TypeScipt / Javascript

Flush Blob cache in SharePoint

SharePoint 2016 Logo

To flush blob cache on SharePoint servers you should execute a PowerShell script on each front end server. Blob cache is set on each front-end server in a farm, that is why you have to do this way. Read more»

SharePoint

Render and Save PDF file from HTML in MVC 5 Application

In my application I had rendered JSON data with AngularJS and I had to send it to a controller in my MVC application to render PDF file and to allow a user to save it. So, the task was dynamically to submit the request, render a file and allow user to save it. Read more»

.Net & C#

Popular Posts