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

Forum Posts

Uncaught TypeError: Cannot read property 'scrollTop' of null

So, in Eureka, this code works fine:function close_and_reopen_UI_Page(){       // Close this current pop-up UI page       GlideDialogWindow.get().destroy();             // Re-open this UI pop-up page again, but now showing updated info       var dia...

find_real_file.png find_real_file.png
xiaix by Tera Guru
  • 4240 Views
  • 1 replies
  • 0 helpfuls

For each loop in workflow

Good morning,So basically I'm trying to setup a workflow, where in the order guide, I have a function to allow a user to add multiple "items" to one RITM. I then need each "item" to spawn a task. Is there an easy way to do this, kind of like making e...

anthonyt1 by Kilo Contributor
  • 2193 Views
  • 1 replies
  • 0 helpfuls

Resolved! Show Active Users on Current Record

SNC Community,How would you best go about attaining this functionality?I have been thinking about a few different ways to deliver this requirement but I wanted to see if anyone else had any design ideas before I went ahead and got started here. I was...

jcote by Giga Expert
  • 2365 Views
  • 12 replies
  • 2 helpfuls

addQuery() Date This Week

Hi - I'm attempting to write a query that only returns results when a field of type Date (called u_date_worked) contains a value in the current week.This is what I'm trying, which results in an "undefined" error.       var rs = new GlideAggregate("ta...

GlideDialogWindow HTML Via Variable

I'm creating a custom dialog, essentially following this article:Displaying a Custom Dialog - ServiceNow Wiki What I need to be able to do though, is pass some HTML code in via a variable and then display it, not as a string (e.g. <h1>Test</h1>) but ...

Resolved! Retrieving Incident State (in text) via REST

I'm building a fairly simple REST app for ServiceNow. Using the REST API Explorer (great tool!) and some examples on here I've been able to connect and raise Incident records with all the field information I need.The only thing I can't seem to wrap m...

rudyg by Giga Contributor
  • 9774 Views
  • 2 replies
  • 7 helpfuls

Resolved! Duplicate a Record Along with Related Lists?

Hello,Please excuse me, but I am a beginner at JavaScript and I am using other code examples but do not fully understand the code.   I am trying to "copy" an Incident record and include "all" the Affected CI's (related list items) and a Impacted Cust...

Resolved! Can hasRole() be used inside of a loop?

I am familiar with using it in reference to the current user using either g_user or gs but I am wanting to use it inside of an addQuery against my user table. Basically the goal is to walk through each user and determine if they have a role (and if t...

a99920 by Kilo Contributor
  • 4011 Views
  • 14 replies
  • 0 helpfuls

Resolved! URL view explanation

I m adding hyperlink like the below one which i was told that while giving like this, service now will take host name by default and attach the link...   I copied it from another working link and tried to replicate in my scenario but since i dont kno...