Focal Point
[CLOSED] List box chaining. First list box have 6000 records

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

January 17, 2012, 04:57 AM
MH
[CLOSED] List box chaining. First list box have 6000 records
Situation:
I have to generate a report for one individual provider. I have total 6000 providers. The hirarchy is Provider - > Role - > Service Type ->Borough -> Team. Provider have one to many relationship with each node. i.e. Provider can have multiple roles, can be assosiated with multiple service types, can be assosiated with multiple teams and in multiple boroughs. If i will load all 6000 providers on page load to the list box it is taking ages. The solution i am trying to do is: I have put a text box on html page. User will type in the text box i.e. if user types A then all the providers first name starting with A will be displayed. User will click on the Name of the provider and provider ID will be passed to the list box. On the basis of the provider id roles will be displayed assossiated with the provider. on next level providerid and rold id will be passed to next list box to filter assosiated service type and so on.
I am facing problem at first level. When user clicks on hyperlink then Provider id is not being passed to the list box called Roles. How can we do this in webfocus????

This message has been edited. Last edited by: Kerry,


WebFOCUS 7.6
Windows, All Outputs
January 20, 2012, 10:18 AM
Kerry
Hi MH,

I checked with our internals and was suggested that, this one looks very involved and will be better to address this in a case with Customer Support Services. To open a case, please call at 1-800-736-6130, or access online at InfoResponse.

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
January 23, 2012, 04:29 AM
Ian Dalton
Hi Kerry - we will raise a case with the tech. support team in Zurich - as you say it is involved and we should geta solution via this route. Many thanks. Ian


_______________________
*** WebFOCUS 8.1.05M ***
January 23, 2012, 05:10 AM
Håkan
This is the way I solved it:

A drop which contains the letters A-Z (or Ö, since I'm from Sweden). Using the CAR file, I added a DEFINE in the Master file, pos1, which is the initial character of COUNTRY, EDIT(COUNTRY,'9'). Chain the values of the drop to a listbox which contains all the CAR rows where the pos1 equals the value selected in the list box.

Works like a charm.

Håkan


WebFOCUS DS 8.0.06/08 DS/AS
WebFOCUS RS 8.0.08 (Linux/IBM i)
WebFOCUS Client 8.0.06 (Linux)
January 23, 2012, 05:39 AM
Ian Dalton
Can you post the code for this please. It may do the trick for us but we would like to see exactly what you did. Many thanks, Ian


_______________________
*** WebFOCUS 8.1.05M ***
January 23, 2012, 06:12 AM
Håkan
Ian, no problem

car.mas
DEFINE pos1/A1 = EDIT(COUNTRY,'9');


<input_controls>

< !-- The drop -->   
<input_control bindcontrolid="compUid_2" elementtype="8" name="combobox1" id="combobox1" multiple="0" inbinding="1" unresolved="0" onetimepopulated="1">
    
<link linktype="default">
     
<condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">
      
<data_info modifiedrequest="1" sourcetype="typeMaster">
       
<static_values>
<static value="]" display="Select a value" selected="0"></static>
<static value="E" display="Initial character E" selected="0"></static>
<static value="F" display="Initial character F" selected="0"></static>
<static value="I" display="Initial character I" selected="0"></static></static_values></data_info></condition></link></input_control>
   
< ! The list box -->
<input_control bindcontrolid="compUid_3" elementtype="9" name="listbox1" id="listbox1" multiple="0" inbinding="1" textvarname="_TEXT" unresolved="0" onetimepopulated="0">
    
<link linktype="default" from="compUid_2">
     
<condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0" resolveparameterfq="pos1" resolveparameter="pos1">
      
<data_info datatype="1" sourcetype="typeMaster" ibiapp_app="test" datasource="CAR.mas" displayfield="CAR.COMP.CAR" ibiformat="A16" dfformat="A16" datafield="CAR.COMP.CAR" modifiedrequest="0" sorttype="0" dosorting="1" addalloption="0" dynalldisplayvalue="ALL">
       
< ![CDATA[TABLE FILE CAR
SUM FST.CAR.COMP.CAR
 BY CAR.COMP.CAR
-*insert_filters_here
ON TABLE PCHOLD FORMAT XML
END
]]></data_info></condition></link></input_control></input_controls>


Cheers
Håkan


WebFOCUS DS 8.0.06/08 DS/AS
WebFOCUS RS 8.0.08 (Linux/IBM i)
WebFOCUS Client 8.0.06 (Linux)
January 23, 2012, 09:25 AM
Ian Dalton
Many thanks Hakan - will give it a try....


_______________________
*** WebFOCUS 8.1.05M ***