Focal Point
[SOLVED] Search control on double list box

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

September 04, 2014, 11:01 AM
Riq Olmo
[SOLVED] Search control on double list box
We are currently on WebFocus Version 8. We have created an HTML composer page that contains a double list box which is bound to a search control. If a user selects 1 or more items from box 1 and transfers it/them to box 2, and subsequently performs a search for other items in box 1, box 2 is completely wiped out of any selections not matching the search criteria. My question, is there any way to turn this "refreshing" of box 2 off. I would like to be able to allow the user to select items and then perform a search for any other items without impacting the items that have already been selected. Any assistance on this matter would be greatly appreciated.

This message has been edited. Last edited by: <Kathryn Henning>,


Webfocus 8x, Windows
September 04, 2014, 11:25 AM
j.gross
You want to be able to refresh the left-hand box ["LHB"] by means of a "search" fex, without clearing the right-hand one, so the user can incrementally build the desired selections in the RHB. Problem is that the refresh of the LHB automatically clears the RHB.

I dealt with that, a couple years back. Memory is a bit hazy, but....


You'll need some hidden controls. I tried several variations. Neatest is to just maintain a hidden copy of RHB.

* Whenever LHB gets refreshed (clearing RHB), refresh RHB from the hidden copy.

* Whenever user operates on the double-box control to move items left or right, have javascript do the obvious housekeeping to keep the hidden copy in sync with the visible RHB.

* You may want to weed out 'candidate' rows in LHB that duplicate 'incumbent' rows already in RHB. If not, test to see what happens if user attempts to move rows left or right that are already present both boxes.

* you should be able to leave the dual-box control chained, whether as parent or child or both.

* test, test, test

Bonne Chance!


- Jack Gross
WF through 8.1.05
September 05, 2014, 07:15 AM
David Glick
Sorry Jack. You don't need any if that. The double list has a "Keep selected values" property. Just turn it on.


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
September 06, 2014, 11:12 AM
Riq Olmo
Thank you both for your input. David, I will look for this setting an enable it. I assume this setting is available in WF version prior to App Studtio. Jack, your solution sounds interesting as well. Again thanks for the input. I will follow up with what I discover.


Webfocus 8x, Windows
September 07, 2014, 08:16 AM
John D.
Hi David,

I'm currently using App Studio and the Keep Selected items setting for the search control does not seem to work on the Double List control. Are there any other settings that need to be set?

Thank you,


WebFocus 8.0.3
OS Windows Server 2003
September 08, 2014, 08:26 AM
Riq Olmo
John,

You might want to look at the properties when you first add the control to the HTML page. I noticed that after it is added, the "Keep selected items" property no longer displays. However, it CAN be set the first time you add the control to the HTML page. I am using Developer Studio 8, but it might be the same in App Studio. Hope this helps.


Webfocus 8x, Windows
September 08, 2014, 09:12 AM
Riq Olmo
John, I recind the statement I made in my prior post. Apparently, the "Keep selected values" is located on the double list box
level in HTML Composer.


Webfocus 8x, Windows
Rough morning, the above post should have noted that the property is located at the DIV tag level of the double list control.


Webfocus 8x, Windows