Load a single Related List on-demand

George P
Tera Guru

I have a Related List that is slow to load, but is only used occasionally.  I would like to devise a means to set only this Related List to load on demand.  I know there is a user preference, but that is per user and affects all Related Lists.  I would like some ideas on how to do this for a single list for all users.

1 ACCEPTED SOLUTION

Kieran Anson
Kilo Patron

Hey @George P , if it's only used occasionally could you have a separate view where the Related List is present? It would then become an activity for those users interested in that information to switch views but could be beneficial. Would that work? Or is the "occasionally" a bit more sporadic and not dependent on the user type? If not, could you provide a bit further context?

 

 

View solution in original post

5 REPLIES 5

GTSPerformance
Tera Guru

Hi @George P , another option I've seen customers do is to use the "Related Links" feature to trigger a modal popup list.

 

Many many years ago sncguru made a page on how to create a record list from a popup here:
https://www.servicenow.com/community/it-service-management-forum/is-there-is-a-way-to-have-glidewind...


Here's an example that follows the same principles and creates a "Related Link" on the incident form to replace the default "Incidents by Same Caller" Related List.

 

Find out how the related lists builds its list of records.

  1. Open "System Definition > Relationships"
  2. Open "Incidents by Same Caller"

As you can see this related list is built by querying the incident table for any record where caller_id is equal to the caller_id of the current record (i.e. parent.caller_id). You will need to re-create the "sysparm_query" parameter of the related list that you want to duplicate.

 

Create a new "Related Link"

  1. Click "System Definition > UI Actions"
  2. Click "New"
  3. Fill out the form values as follows:

IncidentsBySameCaller.jpg

FYI - the GlideDialogWindow API has been replaced with a newer API, the GlideModalV3 - Client. You should probably use the newer API.

 

Good luck!