Posts

It's time to sharp Your JavaScript Skills

Image
If you check the “Stack Overflow Survey 2017”, you will find JavaScript still on the top. The number of jobs and future prospective it is worth to learning some of the new framework.  Why JavaScript Popular? Now days, almost every type of application you can built using JavaScript. Thanks to NodeJS and NPM community. The JavaScript boom comes when first NodeJS server comes into the existence. NodeJS has its own package manager i.e. open source libraries same as nugget Visual Studio package manager.  JavaScript Object Oriented: With the help of TypeScriptis a free and open-source programming language developed and maintained by Microsoft. It is a strict superset of JavaScript, and adds optional static typing and class-based object-oriented programming to the language. Cross Platform Desktop App: If we have front end skills and you want to develop the desktop application, with the help of Electron Atom framework you still built a desktop cross platform app. As Electron tag line “Build c…

SharePoint 2013 Search =>Increase CutoffMaxBuckets size of the refiner

Image
As we know by default refiner cut off max bucket size is 1000. So what if some time we as the developer wanted to increase it or having a requirement where we have more than 1000 refiners values.



In this scenario, if you want to increase the size of the refiner you need to update the managed property by using the following powershell command.
RefinerConfiguration CutoffMaxBuckets Property
Full PowerShell code download from Github gist.



SharePoint 2016 JavaScript framework

Image
Now As you know SharePoint 2016 JavaScript framework totally based on following technologies. you can create JavaScript web part based on following technologies.
NodeJS (nodejs has npm:- package manager tool which helps developer to Find, share, and reuse packages of code from hundreds of thousands of developers — and assemble them in powerful new ways) TypeScript Yeoman (Provide scaffolding tool for modern webapps , same Visual studio has templates example website, SharePoint project) Gulp/Grunt (Task automation tool based on JS framework, will help you run the workflow example, generate your builds) Angularjs/Reactjs/Ploymerjs  All above technologies based on "JavaScript". Microsoft developed on free tool called "Visual Studio Cod"e is a code editor redefined and optimized for building and debugging modern web and cloud applications.

To connect with updates please check the Microsoft PNP page http://dev.office.com/patterns-and-practices

I have created Mean stack …

SharePoint 2013 Search Center In Iframe

Image
While placing the search center URL in Iframe , we got the following issue known issue(cross domain issue. )
Chrome Console error

IE Error message To fix this issue we need to do the following steps.Add this line in you custom Master Page.<meta http-equiv="X-Frame-Options" content="allow" />
Add the following line your layout page. The following tells SharePoint to allow this page to be hosted in an IFrame<WebPartPages:AllowFraming runat="server" />

After done with the above changes you will face one more issue in IE, i.e. when you click the search vertical, Unfortunately, init.js throws an exception in this context (as it tries to access window.frameElement, which belongs to the other domain). MSDN mentioned same issue.

To fix this issue you need to override the existing code using the monkey patch in JavaScript as discussed in this post.
To fix this issue either you can place the below mentioned code in Script Editor or placed JavaScript file…

Send Email using SharePoint Rest API

We have a requirement to send email vai SharePoint Rest API. We dig and find the below solution to send email using SharePoint API.
Point Must be remember End point "/_api/SP.Utilities.Utility.SendEmail" end point to send email. In JSON __metadata we used the type "SP.Utilities.EmailProperties".The User / Group must have a read permission for particular site. where we placed this site code. JS Dependency JQuery
Code URL: https://gist.github.com/BasantPandey/05189832546f2c6cc0bd008fcfec3264#file-sharepointsendemail-js
Code varEmail=function(){// Email Either email groupname or email addressvarfrom='abc.yahoo.com', to ='abc.yahoo.com', cc ='abc.yahoo.com', subject='My Email Subject'; this.options=this.options|| {};