IBM Support

Setting the maximum query results for the map and list

Question & Answer


Question

Setting the maximum query results for the map and list

Answer


IBM brand Intelligent Water Family IBM Work Optimization for Water Utilities Version 1.0.0

Setting the maximum query results for the map and list

You can limit the number of items returned in the queryresults on the map and list portlets of IBM? Work Optimization for Water Utilities. By defaulta maximum of 500 items can be displayed on the map or in the list.The limit is stored in the IW_CORE.PROPS table ofthe WATERDB database. To change the limit youneed to submit a database command on the IBM Intelligent Operations Center database server toupdate the required setting.

About this task

Limiting the number of items returned in the query resultson the map and list portlets can help to improve both client and serverperformance. The administrator of the IBM Intelligent Operations Center database server mustperform the following procedure.
Procedure
  1. Log on to the IBM Intelligent Operations Center database server serveras the DB2? databaseadministrator.
  2. Connect to the IBM Work Optimization for Water Utilities database byusing the following DB2 shellcommand:
    db2 connect to WATERDB
  3. Update the existing map and list result limit by enteringthe following DB2 shellcommand:
    db2 "update iw_core.props set prop_val='x' where comp_id='water' and prop_id='max_list_size'"

    Where x isthe limit you would like to set. The maximum limit is 500 which isalso the default limit.

    For example to set the limit to 100items use the following DB2 shell command:

    db2 "update iw_core.props set prop_val='100' where comp_id='water' and prop_id='max_list_size'"
  4. To disconnect enter the following DB2 shell command:
    db2 disconnect all
  5. Restart the IBM Intelligent Operations Center application and integration server.

Results

After the IBM Intelligent Operations Center application and integration server isrestarted queries performed from the maps of IBM Work Optimization for Water Utilities returns onlythe maximum number of items according to the prop_val limityou have set in the WATERDB table. If the queryresults exceed this limit a warning message is displayed to the user.

Note: The Work Optimization Scheduling featurecan process a maximum of 300 work order candidates for scheduling.If more items are displayed on the map and in the list in the Work Optimization Scheduling viewa scheduling error occurs depending on the type of schedule requestsubmitted.

Library | Support | Terms of use

(c) Copyright IBM Corporation 2011. All rights reserved.
U.S. Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.

"

[{"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Product":{"code":"SSMGP8","label":"Smarter Cities"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
08 December 2018

UID

ibm10756867