WinBatch® Technical Support Forum

Archived Boards => WinBatch Dynamic Dialogs => Topic started by: Jeremy Whilde on April 16, 2015, 10:25:18 AM

Title: Droplistbox Searching
Post by: Jeremy Whilde on April 16, 2015, 10:25:18 AM
Are there any options with a drop list control? to control searching cannot find any information in the help files, for instance if you have a list of items then by default it will search on the first letter, but are there any other options or ways to narrow a search by typing further letters?

Thanks JW
Title: Re: Droplistbox Searching
Post by: JTaylor on April 16, 2015, 11:53:58 AM
As long as you don't pause too long it should accept more than the first letter.

Jim
Title: Re: Droplistbox Searching
Post by: JTaylor on April 16, 2015, 12:00:28 PM
You do have to have it set to ListOnly Style.

Jim
Title: Re: Droplistbox Searching
Post by: Jeremy Whilde on April 16, 2015, 01:26:59 PM
Which property is list only ?

Thanks JW
Title: Re: Droplistbox Searching
Post by: JTaylor on April 16, 2015, 01:33:11 PM
The one that is labeled "List Only", under the Style options in the Dialog Editor.

In the Help file under the DropListBox Control index item it is listed as

@csListOnly or #4


Jim
Title: Re: Droplistbox Searching
Post by: td on April 16, 2015, 01:35:27 PM
Use the DROPLISTBOX's List Only control style (@csListOnly).  You can set in your template from the Dialog Editor by double clicking the control and selection the 'Style' tab. 

However, the search behavior is still not particularly user friendly.  If you have a large number of items that you require a user to make a selection from,  I would come up with a different user interface design.
Title: Re: Droplistbox Searching
Post by: Jeremy Whilde on April 17, 2015, 01:04:48 AM
Quote from: td on April 16, 2015, 01:35:27 PM
Use the DROPLISTBOX's List Only control style (@csListOnly).  You can set in your template from the Dialog Editor by double clicking the control and selection the 'Style' tab. 

However, the search behavior is still not particularly user friendly.  If you have a large number of items that you require a user to make a selection from,  I would come up with a different user interface design.

OK we have for this particular requirement a list of 300 ish items, listed alphabetically in batches and in each of the batches are sub categories or types. Users are trying to home in on a single list item which is then selected for use. The dialog or window containing the dropdown list is a pop up when a phone call arrives at the users telephone, so as we do not want to obscure or takeover the users primary working screen, we initially pop a small quarter total screen height window. On the window or dialog is the dropdown list and three buttons one of the buttons is an expand/shrink button, which makes the dialog window half total screen height or back to a quarter total screen height. The idea being if the list category is large say having 50+ items outnmof the total list then you hit the expand and we expand the dropdown size to the new larger dialog so more items are visable/scrollable. If you have a better or more efficient idea we would welcome any suggestions or refinements on our idea.

Thanks JW
Title: Re: Droplistbox Searching
Post by: JTaylor on April 17, 2015, 05:58:04 AM
What I sometimes do is use an itemlistbox and place an editbox at the top of it as a filter.  As a person types in the editbox it narrows down the list in the itemlistbox.  I use a timer event to initiate the filtering and set it when someone types in the editbox, as it resets each time a character is typed.  I normally set it for about 1/2 a second.  After the filtering occurs I turn it off until they type in the box again.

Jim
Title: Re: Droplistbox Searching
Post by: td on April 17, 2015, 01:26:44 PM
Quote from: Jeremy Whilde on April 17, 2015, 01:04:48 AM
OK we have for this particular requirement a list of 300 ish items, listed alphabetically in batches and in each of the batches are sub categories or types. Users are trying to home in on a single list item which is then selected for use. The dialog or window containing the dropdown list is a pop up when a phone call arrives at the users telephone, so as we do not want to obscure or takeover the users primary working screen, we initially pop a small quarter total screen height window. On the window or dialog is the dropdown list and three buttons one of the buttons is an expand/shrink button, which makes the dialog window half total screen height or back to a quarter total screen height. The idea being if the list category is large say having 50+ items outnmof the total list then you hit the expand and we expand the dropdown size to the new larger dialog so more items are visable/scrollable. If you have a better or more efficient idea we would welcome any suggestions or refinements on our idea.


If I were to design the interface I would first put together a list of questions about the data, the users and relationship between the two.  For example, how often does the data change, what is the nature of the relationship between categories and subcategories, or how well will the user understand the meaning of the data?  Once I had the questions and the answers, I would put together some use-case scenarios to determine likely work flows and how to handle exceptions to any design assumptions.  Of course, designing is an iterative process because mere mortals seldom get it right the first try.

This may sound like a lot of effort but it usually isn't.  Thinking through a problem can usually proceeds quickly with a little practice and in the long run save a lot of time.