Enhancements

Comments Field

Is it possible to get the current value in the comments field of an incident record?

I am using this syntax:

var comments = current.comments.getDisplayValue();

But this logic appears to be grabbing the entire string of comments/history for the incident record. I would like to just capture what the user has presently typed into the comments field.

Thanks!

Mark Didrikson

Custom Approval UI Macro

We have a few catalog items that require approval and I have recently moved the approval process into the workflow editor. In doing so, it became clear that the out of the box Approval UI Macro leaves out a lot of information that the approver(s) would find very helpful in making their decision.

On the Service-now Wiki I found the following article on how to enhance the Approval UI Macro on the task level:
http://wiki.service-now.com/index.php?title=Custom_Approval_UI_Macro

Is there a way to convert a newValue of a datetime field to the system's timezone?

I am about to implement User Time Zones and have an existing Client Script that checks a datetime field if it is within maintenance window or not. Is there a way to convert what the user entered into the system's timezone so I can still use my client script?

here is my script

function onChange(control, oldValue, newValue, isLoading) {

if (!isLoading) {
var flag = 1;
var script = "dayOfWeek('" + newValue + "')";
//call the global business rule function dayOfWeek()
var dayOfWeek = AJAXEvaluateSynchronously(script);

Adding an information line text with URL at the top of a form

We are looking to add a text line including a URL at the top of the User form for the ESS view.

Is it feasible?

Basically it is to mention that the user information is coming from AD and if they want to update it, they have to click on the external link

Thanks!

Change UI Action Button Color

Is there a way to change the color of the Reject and Cancel button (UI Actions) in the Approval form?
Thanks

Why does this script only update run on the first two records???

I added a "Has Attachment" field to the task table and then I added a style that looks at this and adds an icon to the list view, that works great except that there are a few conditions that cause the "Has Attachments" to not be set, I hunted them down and fixed them, now I am trying to update the records that need the "Has Attachments" to be set and it is not, so I wrote the below script. The record count is 16662, yet in the log once I update one record the script stops going thru records, can anyone tell me why.

Please and thanks

**************Script===========

Removing the Email Icon based on Roles

I am trying to put together a script to remove the email icon everyone but 2 roles and having issues.

I thought that it might be as east and putting email_client=true^roles=admin on the same line to active the Email Client but it does not seem to work and not having much scripting experience I was hoping someone had an idea on how to do this.

thanks

Steve

Script Include Help

Hi All,

I'm working on a script to auto fill billing details based on user data in relation to their location in our organisation.

I am trying to use a Script Include to do this on submit of the incident using GlideAjax to make the call from a OnSubmit Client Script.

Trouble is the Script Include keeps returning 'null' to the Client Script...

Here is the OnSubmit:

function onSubmit() {

var sdCheck = g_form.getReference('u_owner_sd');
var billCheck = g_form.getValue('u_billable_fsd');

if (billCheck == '' && sdCheck.u_name =='ITS'){

Does anyone know if there is a property to tell if an incoming email has an attachment?

Does anyone know if there is a property to tell if an incoming email has an attachment? I have a field added so that I can display a paper clip but I am trying to find documentation of all of the properties and methods of the email object that you have access to with an Inbound Action.

Table names

How come when I'm selecting tables in my dev instance I see the raw table names (e.g. sc_task) in drop down lists when I building business rules for example. When I'm looking at my test instance I see friendly names (e.g. Catalog Task)? Is there a setting somewhere that controls how table names are displayed?

Syndicate content