Welcome!
This community is for professionals and enthusiasts of the Genio platform.
Share your questions and challenges, and help your partners!
Limit of records in a menu list
How can I have all the records of a menu list in the same page, rather than moving the lines to a new page after 15 lines?
Hi Alice,
Short answer to your question: In that menu list, set the number of records to -1. That will solve your problem in that case.
Long answer and explanation:
By default, the number of records (in all lists) is set to 0. Value 0 means that it will follow the general configuration of the application, which is by default set to 15 elements, through the variable defaultDBeditRows present in Configuracoes.xml file.
Configuracoes.xml file is written and mantained by WebAdmin solution (but this is not an available option, it must be set mannually, opening the file and changing this variable).
If you set anything that differs 0, it will not follow general configuration and will use that value to the number of records per page, yet, there is a special value that will not page and retrieve all records, and that value is -1.
Besides everything you do, while modelling, you should consider the performance downfall in your model when listing objects without any limit. By absurd, imagine how would your system react if you model a menu list of "Persons" without any limit, with a dozen columns from a table with the entire world population, and even worse, order it by date of birth... it would be a mess.
So, use it wisely.
Regards,
Attention: There are performance issues if you set very high record limits to be seen. Normally you should not touch the default values.
Keep Informed
About the Community
Question tools
Stats
Asked: 18/12/19, 17:39 |
Seen: 1856 times |
Last updated: 22/04/20, 09:30 |