Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Create hierarchical combo boxes.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Create hierarchical combo boxes.
 Login/Join
 
Gold member
posted
Hi,

Is there any way to create a parameter screen in FEX with hierarchicaly linked combo boxes?

More clearly,

I need to create a parameter screen FEX which contains SiteName and BuildingNames as two parameters. Once user selects any particular site, only those buildings coming under the selected site should be populated, in BuildingName combo box.

I know this can be done in MAS file using Dimension builder and make an OLAP enabled report using that MAS file. I am looking for an option using FEX coding.

Any help would be appreciable.

Thanks and regards,
Johney.

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


Version 7.6.11
Webfocus installed in AIX 5.3,
desktop PC: Windows-XP based
Output: Excel, HTML, PDF
 
Posts: 83 | Registered: October 19, 2007Report This Post
Expert
posted Hide Post
This technique is called chaining and is done in the HTML Layout Painter.

There are lots of posts on this topic on the Forum. Start your search with the word 'chain' and go from there.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Member
posted Hide Post
I think this could be your solution, beneath you find a javascript solution:

This script is based on two fields:
1. a listbox with the first character of the existing suppliers
2. a listbox filled with all suppliers starting with the selected character.

function LETTER_onchange(fexName, objFocus, strParam) {
  var strServer = 'http://ensfocus';
  var strCall   = '/ibi_apps/WFServlet?IBIF_ex=';
  var strTotal  = '';


  // Create a call, including fex and parameter &LETTER, call will create HOLD: !IBI.FIL.SUPPLET
  strTotal  = strServer  + strCall + fexName;
  strTotal += '&LETTER=' + strParam ;


  //--- Pointer naar IFRAME + 'CGI/Servlet-string' als url
  idIframe1     = document.getElementById('iframe1');
  idIframe1.src = strTotal;

  //--- Set focus on listbox
  idstrFocus   = document.getElementById('lbSuppliers');
  idstrFocus.focus();
}

AND


        <select language=java_script id=LETTER onChange='LETTER_onchange["INK00001_SupplierOnName.fex" , "ListboxSuppliers" , this.value);' name=LETTER operation>
       !IBI.FIL.SUPPLET;

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


Member of Benelux
Usergroup
 
Posts: 20 | Registered: November 02, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Create hierarchical combo boxes.

Copyright © 1996-2020 Information Builders