Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Limit the number of records in list layout

georgechen
Kilo Guru

Is there a way to limit the number of records in list layout?       I've read Limit the number of Records display on Report ? which introduces a script include code, but I wonder if there is a Filter options accomplish the same?

Thanks,

7 REPLIES 7

Rushit Patel2
Tera Guru

Hi George Chen,



can u elaborate you problem?   u can use the filter on list layout to get top 5 recent rows.



thanks,


Rushit Patel


Thanks Rushit.   The List of Record by default lists all the records if no filter is set up.   I have found a way to limit to only one record on loading.  



Link type: URL (from Arguments;)


Argument: u_finance_list.do?sysparm_force_row_count=1



This way it loads 1 record, and the clients can add any filters they wish.



Thanks,


Community Alums
Not applicable

How it can be done ?

rahulpandey
Kilo Sage

Filter manipulation is only available through script include(AFAIK). However its allows you to reuse the function.