Posts

Enable empty SP search textbox does not update results

Hi Guys, This post is about enabling empty search queries. By default, when user press 'Enter' on an empty Search Box, nothing happens.  A very simple question might be asked that why would anyone search for empty string any way?  True, no one actually needs it desperately but while going in flow this case could cause user bed experiences because users are likely to start with the refiners. Problem: Consider this flow: Navigate to SharePoint Search page Search with any keyword like "Test" If search results are not relevant, I just removed Test keyword from the textbox and hit search button. Nothing actually happens here. It suppose to clear all existing results. Without the ability to search for the empty string (or a "clear" button), the only way to do same would be to reload the page. Solution:  The Search Box webpart supports empty string search. Yes, its true, it's just disabled by default.  This feature is controlled by a property,  A

Get user information SharePoint using REST Api

Hi, While working on a requirement, I encountered a scenario where I need to show welcome pop up to the first time users. First time user, SharePoint does not provide any api or any solution which gives information about users who logged on first time on your web site. I have documented the whole solution on some other post( Add welcome pop up for first time users of your site using AngularJs Material ) But this post I only want to scope it to retrieve information of logged on user. Information mean current user's accountId, First name, Last name, Email and other required details. I am only talking about client side code here i.e. using REST api or SP default APIs. Below are the various ways to get the property of current user who is logged on to SP site. There are many ways to achieve this requirement but I prefer to use SP.UserProfiles.PeopleManager Api to get it. It gives us vast option to retrieve any user information. Here are some details of getting various details: Ge

Add welcome pop up for first time users of your site using AngularJs Material

Image
Hi Guys, We really do only have one chance for putting a first impression for end users on our website. User's will never land back to your website if there is nothing interesting found on web site. Same logic works for SharePoint sites too. When a visitor lands on your site for the first time (and maybe the last), how you welcome them will have a big impact. This can be accomplished with pop-up boxes, fullscreen welcome mats, live chat invitations, and more. This post is all about a welcome popup on SharePoint site. In brief, I try my best to provide very easy solution of showing welcome pop up. Requirement:  One of my recent project client asked to show a welcome message. Server side webarts are not promoted by out clients because our site was built in SP online. It sounds very easy but complication added by showing this pop up only once per user. Solution : As a solution, i suggested to achieve this using Content editor web part. Just place some quick JS code on the land

Reassign a workflow task - Task update was not accepted. To edit a task associated with a workflow task process, you must be the person to whom the task is currently assigned.

Image
Hi guys, Recently one of my client has faced this issue while reassigning a task of default Approval workflow. Here is the screen shot:        SharePoint by default only allows the assignee to re-assign the task. If you try to re-assign a task that is not assigned to you, you get the following message: Task update was not accepted. To edit a task associated with a workflow task process, you must be the person to whom the task is currently assigned. Solution To overwrite this behaviour: Open SharePoint Designer Open the Workflow you wish to modify. On the step where you start the workflow task ‘Start <workflow task name> process on Current Item with…’, right click on the task name. Select Properties and look for the attribute  TaskProcessOwner . Click on the ‘ … ‘ button to select a group or specific user. You may wish to create a SharePoint group specifically for this purpose. All members of this group will have permissions to re-assign tasks that are assigned t

SharePoint Online/2013 Replace no results default text ‘Nothing here matches your search’ from search results web part

Image
  As we all aware, SharePoint search have great potential to provide very powerful search solution. Couple of new webparts are added in SharePoint 2013, like Content Search web part for which I should use rather a word "Smart" search web part. With a new rendering mechanism, content search webpart becomes more and more simple to edit and customize. That mechanism is called "Display Templates" and these are based upon simple Json to HTML templates. I recently has faced a project scenario, where I was asked to replace the part of search result web part and I provided a solution by updating search display template. Requirement:   When we add a search result web part on any result page along with a search text box web part to enter search keywords. Search results will be displayed in web part if keyword matches any text. When we add both these web parts on page and before entering the search term also the results web part show  “Nothing here matches your search” (as sho

Angular 5: Intallation and configuration with Angular CLI

Image
Hi Guys, In this blog, I am sharing how one can easily install angular (version 5.2.0). Angular 6 beta is out till date, which is not yet stable. Most of developers are excited to try one of the most modern and powerful frontend JS framework. Here is the quick guide to install angular 5 with CLI on development environment. I am choosing a stable version of Angular (5.2.0) for installation purpose in this blog. Lucky, if you are familiar with Angular 2 or 4 and have good experience with it, the process of starting a new Angular 5 project is pretty much the same. However, if you are new to angular and not having previous experience with Angular, don't worry -- installing Angular 5 is like a breeze. Let's get started. Pre-requisites: Here are the list of tools which you require before proceeding. Visual Studio Code/Visual Studio - Download Node.js - Download Node Package Manager(NPM) To check whether or not you have both of these installed, visiting your commend line(Win

SQL Server install error Wait on the Database Engine Recovery Handle Failed

Image
Hi Guys, Last week during the installation of SQL Server standalone instance, I have faced an issue. After installing all the prerequisites and I started installing SQL Server. Though, I did not get any warnings or errors in any of the rules or steps during the SQL Server installation wizard, but I got the below error at the end of the installation: The following error has occurred: Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes. This issue is giving misleading message. Well, I could not able to understand the cause of this error. I followed standard installation guide and completed pre-check before proceeding installation of SQL Server, but I still got this issue. In this blog, I will explain how did I resolved this issue. After many rounds of troubleshooting I decided to do some research on the web.  This was the first time I got this issue, so I had no clue about how to fix except for reading and analyzing the error log files.