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.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
I have a web page with two independent drop down lists. One list contains the oracle connection string to a database and the other list contains a query from that database.
What I want to do is to refresh the database query whenever the connection string is changed.
I cannot chain the two elements together because they are not a part of the same table, but I want to create a 'chain' like reaction on the web page. I'm guessing it will require a little javascript, but that's okay.
Does anyone have any ideas of how to accomplish this?
Thanks,
Ron Woods San Antonio Express-News Release: WebFOCUS 7.1.1 OS/Platform: Windows XP SP2 x86 32bit O/P Formats: Primarily pdf and xls
Posts: 22 | Location: San Antonio, Tx | Registered: October 20, 2005
You should be able to use the same technique I referred you to in your other topic. Keep reading the rest of the section as it discusses chaining with procedures. While I haven't tried it, I can't imagine that it would be a problem to use two data sources.
I agree it should work, but after selecting both elements (while holding down the shift key) the only chain control that is activated is is the list chain elements.
I also searched the forum and found a posted that stated chaining only works when the chained objects are all part of the same result set.
Ron Woods San Antonio Express-News Release: WebFOCUS 7.1.1 OS/Platform: Windows XP SP2 x86 32bit O/P Formats: Primarily pdf and xls
Posts: 22 | Location: San Antonio, Tx | Registered: October 20, 2005
If I understand correctly, you have in your first list box a number of connection strings. Are these static or are they retrieved from a file?
In the second list box you say you have a query. Is it the result of an SQL SELECT or is it the SELECT? If it is the result, where do you get the SELECT statement? How is it dependent upon the connection string?
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006
I can make the connection string list box either static or dynamic - right now it is dynamic.
The second list box is the results of a query that is executed when the page is opened (onload()). What I want to do is have the query re-executed whenever the connection list box is changed.
What I want to do in the on_change javascript of the connection list box is to rerun the query that populates the second list box.
We have two oracle databases that are structural mirrors of each other (live and test). I want to be able to run reports off either database - which I can do with the connection list box.
The problem comes with the second list box. Each database contains the same tables, but not identical data - in this case publications. So I want to display the correct publication list for each system.
Thanks
Ron Woods San Antonio Express-News Release: WebFOCUS 7.1.1 OS/Platform: Windows XP SP2 x86 32bit O/P Formats: Primarily pdf and xls
Posts: 22 | Location: San Antonio, Tx | Registered: October 20, 2005
The way we do it is with our WrapApp product. To each object (for example the list box with the connections) we can attach a trigger which is a fex. This fex can populate the second listbox using a simple HOLD file.
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006
Be warned though that this will not pass the value of the chained parent object.
I would persevere with chaining if I were you as IBIRLS2.js functions should cope effectively with your requirement providing you chain the items in the correct order so that each parent items value is passed in the execution string (URL) for the control.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
Here's a launch page with chained controls created in painter (a rare occasion for me ) using 7.6.4. You'll see what js is created for the chaining within the IBI_Chainscript script section.
These are the fexes used to populate the controls -
-* File chained_control_1.fex
TABLE FILE CAR
SUM FST.COUNTRY
BY COUNTRY
ON TABLE PCHOLD FORMAT XML
END
-* File chained_control_2.fex
-DEFAULT &Country = 'FOC_NONE'
TABLE FILE CAR
SUM FST.CAR
BY CAR
WHERE COUNTRY EQ '&Country'
ON TABLE PCHOLD FORMAT XML
END
-* File chained_control_3.fex
-DEFAULT &Country = 'FOC_NONE'
-DEFAULT &Car = 'FOC_NONE'
TABLE FILE CAR
SUM FST.MODEL
BY MODEL
WHERE COUNTRY EQ '&Country'
WHERE CAR EQ '&Car'
ON TABLE PCHOLD FORMAT XML
END
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
Ron: Don't know if my experience relates to the way you built your dropdowns or not. Chaining drop-downs works with independent result sets from separate procedures. However, one issue I ran into a while ago is that the drop downs were originally built (in the GUI) with static data as the source. Later, when they were converted to use a procedure as the source, chaining would not work. Deleting and recreating two NEW drop-downs with a procedure as the data source magically made the chaining work! I classified that as a 'Gotcha!!'
Diptesh WF 7.1.7 - AIX, MVS
Posts: 79 | Location: Warren, NJ, USA | Registered: October 25, 2006
Thanks for the info. I tried deleting and rebuilding with the dynamic info. My problem now is that I cannot get the chaining feature to activate.
I am following the instructions in the manual (parameter control values on dynamic, hold the shift key and select the two objects) but I just can not seem to get the chaining icons to activate.
Ron Woods San Antonio Express-News Release: WebFOCUS 7.1.1 OS/Platform: Windows XP SP2 x86 32bit O/P Formats: Primarily pdf and xls
Posts: 22 | Location: San Antonio, Tx | Registered: October 20, 2005