Scripting

/Scripting

Schedule-based Date/Time Addition

By | October 26th, 2011|Categories: Business rules|Tags: , , |

I was recently asked to help a colleague figure out some date calculations based on a schedule. The requirement was to calculate a future date based on the existing value of a date/time field. I decided to document this solution (and come up with a solution for a similar problem…date addition from the current date/time based [...]

Animate ServiceNow with jQuery and Prototype Effects!

By | August 9th, 2011|Categories: Client scripts, System UI|Tags: , , , |

A while ago, I was trying to figure out how I could add some javascript animations and effects to a ServiceNow instance. What I really wanted was something like the jQuery Effects API but I didn’t want to have to incorporate a separate API and deal with the loading the bulk of jQuery everywhere in the [...]

Building a CI Change Calendar Macro – On The Fly

By | July 20th, 2011|Categories: Client scripts, Reporting, UI macros|Tags: , , , , |

A co-worker asked me for some help yesterday fulfilling an interesting requirement. He needed to set up a configuration item reference field or catalog variable that would display a calendar macro that, when clicked, would open a popup window containing a change calendar report for that configuration item. I figured this idea might be of use [...]