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

Gunjan Kiratkar
Kilo Patron
Kilo Patron

Hi @George P ,

By Default, all related lists load at the time a Form loads.  ie: before rendering the form to a user, every related list query has to first run.  Once all the data has been queried, THEN the form is presented to a user.

Similar to the rowcount setting, there is also another variable that can be set: ‘glide.ui.defer_related_lists'.
This loads the related lists after the form has loaded.

This can greatly increases the response time of forms.
By setting related lists to load after a form loads, the user will almost immediately see the form data, and by the time they scroll down to the related lists they are likely to be have loaded in the background.

 

Reference :https://www.servicenow.com/community/developer-forum/related-list-taking-too-long-time-to-load-in-so... 

 

Check below article as well :-

https://docs.servicenow.com/en-US/bundle/tokyo-platform-user-interface/page/use/using-forms/task/t_C... 

 

  1. Click the settings icon (
     

     

    ) in the banner frame to open the system settings menu.
  2. Select one of the following options under Related List Loading.
    In Core UI, click the Forms tab to see this setting.
    Option Description
    With the Form Related lists load when you open the form, which is the default setting.

    When selected, it sets the value of the glide.ui.related_list_timing system property to default.

    After Form Loads Related lists load after the rest of the form loads.

    When selected, it sets the value of the glide.ui.related_list_timing system property to deferred.

    On-demand Related lists load on demand. When this option is selected, a Load Related Lists button appears at the bottom of each form that contains related lists. Click the button to load related lists.

    When selected, it sets the value of the glide.ui.related_list_timing system property to ondemand.

 


Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy

I tested this idea and it doesn't seem to function very well.  First, even though the form loads and displays data, you can't do anything on the form until the related list loads.  Additionally, this would affect all lists on all forms and we only have the problem with a single related list on a single form.

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?

 

 

This is the most viable suggestion so far.  I'll need to discuss this with the team.