By default, the maximum number of business objects
that can be displayed on a Management Center page is 500. You can
increase the maximum value by updating the appropriate component configuration
file, and then updating the Management Center user interface Page
size list.
In the Management Center, the page size option
is in .
CAUTION: Increase
the maximum number of entries to an appropriate value that your environment
can handle. If you set the value too high, Management Center performance
can be significantly affected. It is not recommended to increase this
value in your production environment.
Procedure
- Change the page size property in the appropriate component
configuration file.
For example, if you want to display
a maximum of 1500 objects when you are working with the Catalogs tool,
then you would do so in the WC_eardir\xml\config\com.ibm.commerce.catalog-ext\wc-component.xml file.
- Open WebSphere Commerce Developer and switch to the
Enterprise Explorer view.
- Navigate to the following path:
WC_eardir\xml\config\
- In the config folder, create a com.ibm.commerce.catalog-ext folder
so the path resembles the following structure:
WC_ear\xml\config\com.ibm.commerce.catalog-ext\
If
this folder exists and it contains a customized version of the wc-component.xml file,
then open the file and skip to step 1.g.
- Create an empty wc-component.xml file
in the com.ibm.commerce.catalog-ext folder. This
file is your custom wc-component.xml file.
- Copy the following basic XML elements into the file:
<?xml version="1.0" encoding="UTF-8"?>
<_config:DevelopmentComponentConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.ibm.com/xmlns/prod/commerce/foundation/config ../xsd/wc-component.xsd "
xmlns:_config="http://www.ibm.com/xmlns/prod/commerce/foundation/config">
</_config:DevelopmentComponentConfiguration>
- Navigate to the default catalog component configuration
file at the following path:
WC_eardir\xml\config\com.ibm.commerce.catalog-fep\wc-component.xml
Never
change properties directly in this file because your changes will
be overwritten with future IBM software updates.
- Copy the XML elements for the maximumPageSize property.
Even though you are copying only certain elements, you must
maintain the XML hierarchy for those elements in the file.
For example, copy the following XML element to your custom
configuration file:
<_config:dataservice
dataMediatorType="JDBC"
metadataClass="com.ibm.commerce.catalog.facade.server.metadata.CatalogMetadata"
maximumPageSize="1000">
</_config:dataservice>
-
Update the maximumPageSize value to the maximum number of objects that you
want to display on one page.
For example, 1500.
- Save and close the custom configuration file.
- Update UserPreferencePanel.lzx to
add a new option to the Page size list to reflect
the new value that you set in wc-component.xml:
- Navigate to .
- Open the UserPreferencePanel.lzx file.
- Find the following code block:
<class name="wcfPageSizeList"
- Add a value to the code block that corresponds with
the value that you added in your wc-component.xml file.
For example, if you set the
maximumPageSize to 1500, then add the
following
code:
<wcfPreferenceValue text="1500" value="1500" />
- Save and close the file.
- Restart the server.
- Right-click LOBTools; then click Build
OpenLaszlo Project.
- Package
Management Center files for deployment.
- Deploy
the customized code.