KBEC-00120 - Changing the jobs and resources and project page size

Summary

ElectricFlow web pages limit the number of records displayed by default to keep from overwhelming the browser, and limits the number of objects retrieved by default to keep from overwhelming the data engine. Some ElectricFlow installations want to add more objects on the browser page or to retrieve more objects from the data engine.

Solution

Let's say you want to display 250 records per page of up to 10000 objects retrieved.

Records per page

The pull-down box labeled "Records per page:" at the bottom left of the web page can be changed by editing the file startup_init.php located in apache/htdocs/commander directory to include the following attributes:

  1. The default page size for the "browse" style pages like jobs, projects and resources:
     
    // The default page size for the 'browse' style pages like jobs, project, resources, etc.
    $config["browsePageSize"] = "250";
  2. Where object is job, project, resource, or plugin. Overrides the default.
     
    // Where object is job, project, resource or plugin. Overrides above default.
    $config["${object}PageSize"]  = "250";

Objects retrieved

The number of records retrieved in the lower right of the web page can be changed by editing the file config.php located in apache/htdocs/commander directory to include the following attributes:

  1. The default maximum number of results for the 'browse" style pages like jobs, project, resources, etc.:
     
    // The default maximum number of results for the 'browse' style pages like jobs, project, resources, etc.:
    $config["maxBrowseResults"]  = "10000";
  2. Where object is job, project, resource, or plugin. Overrides the default.
     
    // Where object is job, project, resource or plugin. Overrides above default.
    $config["max${object}Results"]  = "10000";

Limitations

  1. New default values are not maintained during upgrade and must be redone after the upgrade.
  2. Some changes don't take effect until the user logs out and logs back in again.
Have more questions? Submit a request

Comments

Powered by Zendesk