Select ListBox component default value does not work for selected index superior or equal to 8
search cancel

Select ListBox component default value does not work for selected index superior or equal to 8

book

Article ID: 450202

calendar_today

Updated On:

Products

CA Service Management - Service Desk Manager CA Service Catalog CA Service Desk Manager

Issue/Introduction

A select ListBox component is added in a form.
The select list contains more than 8 items.
If in "selected Index" property a value >=8 is entered (to indicate the default value of the listbox), it does not work. It works only for value <=7

Example :

With "Selected Index"=7, it works the default value "Cause3" appears in Root Cause listbox :

 

With "Selected Index"=8, it does not work. The default value for Root Cause listbox is empty.

Environment

Service Catalog 17.4

Resolution

The "Page Size" attribute value must be higher than the selected index value.
Reason: We load the select options in paginated manner for performance. by default, the page size is 8. hence any selected index value below 8 works.

Example

With "Page Size" =10, "Selected Index"=8 is working fine