This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Client-side example usage | |
doThing(); | |
function doThing() { | |
new EfficientGlideRecord('incident') | |
.setLimit(10) | |
.addNotNullQuery('assignment_group') | |
.addField('number') | |
.addField('short_description') | |
.addField('assignment_group', true) //Get display value as well |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Script Include definition: | |
Name: JournalRedactor | |
Client Callable: false | |
Accessible from: All application scopes | |
Additional details: | |
Version: 1.3 | |
Usage documentation: http://redactor.snc.guru/ | |
License: https://gist.github.com/thisnameissoclever/767b8a738b929a0bd943965431061c1e | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ClientTimeZoneUtils = Class.create(); | |
ClientTimeZoneUtils.prototype = Object.extendsObject(AbstractAjaxProcessor, { | |
getCurrentTimeInTimeZone: function() { | |
var tz = this.getParameter('sysparm_tz'); | |
var tzu = new TimeZoneUtils(); | |
var gdt = tzu.setTimeZone(tz); | |
return gdt.getDisplayValue(); | |
}, |