We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Developer forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Forum Posts

XMLHttpRequest();

Hi Team , Can you please guide me how to call var client=new XMLHttpRequest();from Script Include, i have few parameters to be added to api call, so i cant use Rest Outbound here,please suggest me

ravi1021 by Kilo Contributor
  • 4505 Views
  • 1 replies
  • 0 helpfuls

Addition & subtraction of two duration field

Hi All,Could anyone please let me know how to add or subtract two duration field? below are the line of codes:-var gr = mi.getNewRecord();   gr.start = current.sys_created_on;   gr.end = current.sys_updated_on;   var duration = gs.dateDiff(gr.start.g...

manish123 by Giga Guru
  • 2733 Views
  • 2 replies
  • 1 helpfuls

storing and calling g:evaluate scripts

I am creating a front end portal that requires using g:evaluate to call on variables from different tables.   For example:<g:evaluate var="jvar_user_name">   var gr = new GlideRecord('sys_user');   gr.get('sys_id', gs.getUserID());   gr.first_name;  ...

yundlu316 by Kilo Guru
  • 1992 Views
  • 3 replies
  • 0 helpfuls

Resolved! Prevent multiple logins

How to prevent multiple logins with the same user id at the same time from different devices(computers)?

praneeth24 by Kilo Contributor
  • 3772 Views
  • 6 replies
  • 1 helpfuls

Use Email Client with an UI Action in a pop-up

Hello everyone,  Actually, I try to develop an UI action who open email_client.do in a pop-opI use the GlideDialogWindow method for my window, but I don't know how to link with email_client.doAfter that, it is possible to pre-fill the target field ?e...

email_do.PNG email_window.PNG
xif1 by Mega Expert
  • 4891 Views
  • 2 replies
  • 2 helpfuls

Contextual search, formatters, and double trouble.

Okay, here's a stumper. On our incident form, default view, we have the Contextual Search Results formatter. This is good.When you type in the short description field, the formatter expands, and suddenly there are two "Related Search Results" buttons...

find_real_file.png find_real_file.png find_real_file.png find_real_file.png
kimf by Kilo Contributor
  • 2875 Views
  • 3 replies
  • 0 helpfuls

Resolved! UI Action - List Button

Hello,I'm trying to write a UI Action to perform some operations on multiple records selected in a list. I've created the UI Action and selected 'List Button'.I'm using this well tried and tested method from SNC Guru, to run a client side script befo...

Jamsta1912 by Tera Guru
  • 5868 Views
  • 7 replies
  • 1 helpfuls

Resolved! Update selected with input from dialog window

Hi,In short: I'm trying to update selected list items using a UI Action + UI Page, but the processing script doesn't run properly.When standing in the list view and having one or more items selected, I want to open a popup that asks the user for a co...

Resolved! How to set mm-dd-yyyy value from string to date field

Hi all,Need to some help to set value received in a string field with format mm-dd-yyyy to date field(not datetime field). Can anyone help here. I am setting this value in variable of catalog item.Thanks in advance.Richa

richam by Tera Expert
  • 9300 Views
  • 5 replies
  • 7 helpfuls

Resolved! Set Calendar duration / default time problem?

Hi everyone,I've trying to calculate the duration of tasks. I've got a simple business rule that does in fact update the duration but I noticed something that I would like some help understanding. even though it updates the field correctly with the v...

snip.PNG code.PNG