Itemupdating event receiver badgely dating
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.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?
For example we got a list called “Products” in which we need to stop the users to delete any list item.We must make use of Custom Actions with Share Point App Model in order to implement Embed Java Script Pattern by utilizing location identifier Script Link that can be accessed through User Custom Actions collection of SPWeb Object.In this in this article we will see how to implement Embed Java Script Pattern in real time business applications as below- Lets’ start with a Share Point App Project by selecting App for Share Point Project Template Specify the Site URL Choose Provider-Hosted as hosting model in order to develop High Trust Apps Choose ASP.Assign the value of the Full Path that we have retrieved in Step 2 Sequence Number – Specifies the Sequence Number for the Event Receiver to add to the Event Receivers Collection of the Product List Step 7 – Add the Event Receiver Object to Products List Event Receivers Collection Step 8 – The other Event that we consider is “App Uninstalling”.
Since this Event is quite useful to perform cleanup activities like removing the Event Receiver registration with the respective as soon as the App gets uninstalled.
This approach will ensure that this Java Script will work both with MDS enabled & disabled sites.