Start of changeIBM Content Navigator, Version 2.0.3     Supports:  CMIS for Content Manager

Choice lists for small integer ranges

You can automatically generate choice lists for small integer ranges by using the choiceListForIntegerRange configuration parameter in the cmpathservice.properties file. For small ranges, setting this parameter is the best way to show the valid choices so that users avoid entering invalid values into input fields.

For short or long integer attributes with defined minimum and maximum values, you can configure choice lists to automatically enumerate integer choices for the user to select. Specify the maximum range between the defined minimum and maximum values to generate choice lists.

By default, the choiceListForIntegerRange configuration parameter is set to 10, which means that choice lists are generated for a range of 10 between minimum and maximum. For example, if you have an attribute with a minimum value of 20 and a maximum value of 29, a choice list is automatically generated with the following numbers:
  • 20, 21, 22, 23, 24, 25, 26, 27, 28, 29

You can configure, and automatically generate, the choice list for any range by changing the value for the choiceListForIntegerRange configuration parameter. If the difference between your minimum value and maximum value is less than or equal to the value of the choiceListForIntegerRange, IBM® CMIS enumerates a choice list. Negative value ranges are also supported.

To disable automatic generation of choice lists, specify a value of -1 for the choiceListForIntegerRange parameter.

Remember: When an application does not support displaying integer-based choice lists, the property field is shown without a choice list, but the valid values are still enforced by the server. If an invalid value is entered, error message CQL194 is returned. For example, IBM Lotus® Quickr® Connectors Version 8.5.1 does not display integer-based choices lists, but the list of valid values is still enforced and validated by the server.
End of change