Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Goran WitchDoc
ServiceNow Employee

Some people might find it kind of annoying when you make a gauge for the home page and when you look at it, you will get more than enough of records and it will cover the whole screen leaving the rest down below.

Perhaps something like this:

homepage 1.PNG

The list gauge just keeps showing all the records without any limits Making the things below disappear.

As you can see it shows all the records(1 to 11) on the same "page".

Well, how about have it like this instead:

homepage 2.PNG

Here you can see that I set a value of max 5 rows and suddenly the other gauges show up as well.

This is how you do it.

1. Go to the homepage pages and click on the homepage you want to change. Then you get this:

homepage 3.PNG

2. Now click on the dropzone that you want to set it on. In my case it's the one inside the circle. Now you got the preference of that dropzone.

Click on new and create a preference with the name sysparm_rows_per_page(don't forget the underline thingie) and set the value to how many you want to have. In my case I picked 5.

homepage 4.PNG

Now your gauge will only show the number of rows that you have picked. I noticed that this has stopped working in Helsinki and I'll put a HI-ticket on

it to hopefully get it fixed.

//Göran

11 Comments
jim pisello
Tera Expert

Thanks for this little gem, Göran. I wonder why ServiceNow doesn't present a field when the gauge is initially created to limit the number of rows, or at least document it in the wiki or on Docs... This is a no-brainer that could help a lot of users.


Goran WitchDoc
ServiceNow Employee

Thanks James,



Yea it strange. One thing I think is the problem is that there are so many things you can do and ServiceNow is growing so fast that all new people isn't aware of the things that have been there for quite a while and is forgotten in documentation. It becomes a bigger issue when it suddenly stop working like in Helsinki. I think I'll got a update on that soon thou.



//Göran


Goran WitchDoc
ServiceNow Employee

Got answer from HI as well about that it don't work in Helsinki and they have created a problem for it and they have already fixed it for Istanbul and looking for a patch for helsinki as well.


Jack42
Kilo Expert

Hello Göran,

thank you very much for this, it helped me a lot.

Do you know by any chance, how to do that with a 'Horizontal bars'-type report?

Best regards,
Jack

Goran WitchDoc
ServiceNow Employee

Hi jack,

 

How would you like to limit that report? Is it just the height?

 

//Göran

Jack42
Kilo Expert

Hello Göran,

I hope you had a nice weekend.
Many thanks for your fast reply, it's very much appreciated.

I'd like to display the first 10 bars only, like a Top Ten.. as you did it in your sample above with the records.
The size or height of the report itself does not matter, since users may customize it later.

find_real_file.png

With best regards,
Jack

Goran WitchDoc
ServiceNow Employee

Hmm.. I think you should be able to do it the easy way here. In the report you can define how many you want to see "Max number of groups" and 10 is actually a choice there. So if you select 10 there, it should also affect the look on the homepage.

 

//Göran

Jack42
Kilo Expert

Oh great.. guess I didn't see the wood for of all the trees.
Thanks a lot!

However 😉 is there a solution like yours above, to let's say, put it to 8 or 13 rows/groups.
I mean like adding a preference to the dropzone (i.e. sysparm_bars_per_page) to set up a custom value?

Regards,
Jack

Goran WitchDoc
ServiceNow Employee

Hi Jack,

Sorry haven't seen anything like that 😞

kkswamy
Tera Expert

Hi Goran,

Thanks for this post,

As an admin, can i limit the number of rows on all the homepages for all the users in servicenow in easy way?

Regards,

Kotaiah Swamy Kondru.