Projects:Performace WebPOS/Data Limit Documentation
Introduction
This feature allows to implement a data limit in javascript queries to the local database. In the case this limit is reached a message appears at the end of the list that shows data.
By default this limit is set to 300 in the following models: Products, Product Categories and Business Partners
Configuration
To configure the limit it is needed to modify the Backbone model definition by adding the property dataLimit. If this property does not exist or is set to null no limit is checked.
For example to modify the current limit in the Products, Product Categories and Business Partners models just add the following lines to your module code:
OB.Model.Product.dataLimit = 500; OB.Model.ProductCategory.dataLimit = 500; OB.Model.BusinessPartner.dataLimit = 500;