Bulletproof Blog

Bulletproof Solutions Inc.
Tags >> Event Handlers

Does hiccup have 2 Cs? Does it have one C on the weekdays and 2 Cs on the weekend?

So anyway, I was writing some SharePoint itemUpdating event handlers and ran into some funny inconsistencies between when an event fires from an update done through the single item view and when the event is fired from the Edit in Data Sheet View.

When we look at a Yes/No field the AfterProperty will return a True or False in the single item view but it will return a -1 or 0 in the Data Sheet View.
So in my code where I wanted some special code to run when the Yes/No field named ‘Ready' was Yes, I had to double up my logic

 





About Bulletproof

We've focused on building a company that can offer Atlantic Canada and the Maritimes the type of world-class IT service professionals that would otherwise only be available to the very largest enterprises. We're here when you need us. Read more...

Privacy Policy

Your Privacy is Guaranteed. We will never give, lease or sell your personal information.

Period!

Associate Login