Focal Point
Multi-select dropdown list behaviour - what's the idea here?!?

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2417081626

November 14, 2012, 10:01 AM
Wep5622
Multi-select dropdown list behaviour - what's the idea here?!?
It turns out that multi-select dropdown listboxes, when clicked open, are limited to 5 lines - see below code in ibirls3.js around lines 10120-10130:
	inputCtrl.onclick = function(e)
	{
		...
		if (object.isMultiSelectCombobox)
		{
			var ctrl1 = object.getInputControl();
			if (ctrl1)
			{
				...
				ctrl1.size = valuesPop.length < 5 ? valuesPop.length : 5;


What's the reason for this peculiar limitation?


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
November 15, 2012, 06:34 AM
David Glick
A multiselect dropdown is not a native HTML control. It is homemade. When it opens, you scroll to see all the values. The number of values visible at one time needs a size, so 5 lines is the size.


David Glick
Director WebFOCUS App Studio
and WebFOCUS Developer Studio
WebFOCUS Division
Information Builders, Inc.
Direct (917) 339-5560
Voice Mail (212) 736-6250 x3560
Fax (212) 947-5168
Email david_glick@ibi.com
November 15, 2012, 09:44 AM
Wep5622
Well yes, that's what the code already told me. I didn't quote that for nothing.
The question is: why is it limited to a maximum of 5 visible items?
Why not 10 or 15 or something that we can decide?

Our end-users experience this limitation as inconvenient, but there's nothing we can do to increase it except by modifying the code responsible for the limitation. We can't use these multiselect dropdowns as they are.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
November 15, 2012, 10:48 AM
Tom Flynn
It is the initial value when created. Can be changed at any time by just extending the box...




Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
November 15, 2012, 11:07 AM
Wep5622
Those aren't multi-select dropdown lists. What you're showing are called listboxes.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
November 15, 2012, 01:56 PM
Tom Flynn
The default for Listbox is 3, we just expand the box, works for us.
In 7.7.03 HTML Composer, when selecting Drop Down List, and, converting to Multiple, yes, it only displays 5, AND, actually, seems to convert to a list box. When it is a singular select, then, it is a drop down list. That is why we use the List Box concept for Multiple...

You could always ask Mr. David Glick to have IBI increase the size via a NFR...


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
November 16, 2012, 05:46 AM
Wep5622
It's basically a design-flaw then. Why would that require an NFR? That doesn't make sense.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
November 16, 2012, 06:30 AM
David Glick
Thanks Tom.

Wep,

That would be the thing to do. Open a new feature request for it to be configurable.


David Glick
Director WebFOCUS App Studio
and WebFOCUS Developer Studio
WebFOCUS Division
Information Builders, Inc.
Direct (917) 339-5560
Voice Mail (212) 736-6250 x3560
Fax (212) 947-5168
Email david_glick@ibi.com