Pregnant cams - Itemupdating event not

Based on the latest recommendations from Microsoft, User Interface Share Point 2013 & Share Point Online should be customized using Client Side Frameworks and not using Traditional Master Page Customization based on Branding Solutions.

itemupdating event not-39itemupdating event not-41

And we can go back to Host Web to ensure that the Site Icon and Original Title are restored back as usual.

So we can clearly see the “Embed Java Script Pattern” is very effective as it gives you handle on customizing Host Web Elements from outside the Share Point itself.

Since this is the Service that will be hosted somewhere outside Share Point due to this usual Share Point Tokens will not work here which means “~remote App Url” Url Token will not work in this case.

So in order to get the complete path to the Service Class we need to make use of “Operation Context” class.

Since this solution deploys the Java Script file into a folder under the _layouts virtual directory, you have provided that relative path.

The second parameter is the entry point function which is Load JSInside Host Web.

This requirement can be achieved simply by deploying a Farm Solution containing the Event Receiver SPI hooked up with the Products List Item Deleting Event.

But what if we are not allowed to deploy any code solution in Share Point Environment?

This approach will ensure that this Java Script will work both with MDS enabled & disabled sites.

Steps 5 – Inside Load JSInside Host Web function, we are calling Load JQuery function to include JQuery file from the CDN and once loaded successfully it is calling Modify Host Web which will do the actual job of Injecting Java Script Code to the Host Web Steps 6 – Inside Modify Host Web function Steps 7 – Inside Load JQuery function we are loading JQuery File from the CDN Steps 8 – Here we are hooking up the button click event for Inject Js & Remove JS HTML buttons Inside each event handler we are calling Inject Java Script & Remove Java Script functions by passing Client Context to the Host Web & Web Object referring the Host Web and setting the notification message on the Share Point App Page (default.aspx) to show the status of the operation Steps 9 – Inside Inject Java Script function we are making use of Custom Actions Framework for Share Point to inject Java Script based customization inside the Host Web in the following steps- Preparing path of the Script file that we are going to inject into the Host Web and embedding it by creating the dynamic script block with src attribute set to the script file path.

You can refer to following of my earlier blogs on Remote Event Receivers to get better understanding on usage While working with Remote Event Receivers I came across a scenario where we need to hook up the Event Handlers to any of the existing lists in a site.

Tags: , ,