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 2 combo boxes from car file country and car loaded by procedures loadcoun and loadcar
loadcoun:
TABLEF FILE CAR SUM FST.COUNTRY BY COUNTRY ON TABLE PCHOLD FORMAT XML END
Loadcar:
TABLEF FILE CAR SUM CAR CAR BY CAR NOPRINT WHERE COUNTRY EQ &COUNTRY ON TABLE PCHOLD FORMAT XML END
when I run the html I get all countries and all cars loaded at the start time. When I choose a country the car is supposed to be updated isnt it? I have chained them together and country is cainindex 1 and car is chainindex2
Anyone have any ideas?
Thank you in advance.
Posts: 103 | Location: ricmmond va | Registered: September 30, 2004
Do you have the "name" attribute in your SELECT TAG for the country set to "COUNTRY" (including the fact that it is uppercase)?
That could be your problem because if it is set to something else then the variable isn't actually reaching the second fex in the variable name that you require.
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
You will also need to have the following type of script included in the correct place within your HTML page -
<SCRIPT type=text/javascript>
<!--
window.chain0=new Array(1);
window.chain0[0]=new String("[first tag id goes here];[second tag id goes here]");
window.chain0[1]=0
//-->
</SCRIPT>
Also, do you have the chain number in place on your tags?
inchainindex="1" chainnumber="0"
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
Thanky you tony, I wonder why they don't just put this in the doc?
Bob
quote:
<script type=text/javascript> < !-- window.chain0=new Array(1); window.chain0[0]=new String("[first tag id goes here];[second tag id goes here]"); window.chain0[1]=0 //-->
Posts: 103 | Location: ricmmond va | Registered: September 30, 2004
I tried your suggestion, I'm not sure I understand chaining. What tells html to reload the car box when I select a country. Is web focus supposed to generate this script?
Every time I look at the GUI and try to reconcile the new against the old I am reassured that hand coding is the way for me!
I have cut and paste your code (original) into the respective file types and pointed them at the correct local server and app and I cannot seem to get the chaining to occur either. On top of that I have created one anew (yes, I thought that it would never happen either ) and now I can't even get the chain icon to show as available. My hair loss is increasing by the minute!
However, one thing that has come out of this is that the script that I thought should be there is possibly redundant in 7.1.3 - to be sure in this I need to get the chain in the GUI to work.
I will give it another go when I have a moment or two and let you know the results.
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
When you click on the HTML tab whilst in assist you only get shown part of the full HTML. It excludes things like scripts etc. which can only be seen when the file is edited in a text editor. Not to my taste but I can see where IB are coming from(?).
Viewed from the editor, all pieces seem to be in place. I have an edited copy of ibigbl.js that I use to "alert" through the process so that I can "see" what is happening. One purpose of this edited version is to show when a chained sequence of combo boxes are called. It works fine with existing code but neither Bob's original or the one I created call the chaining part of the ibirls.js.
On top of all this, the ability to "loose" settings just by double clicking on a control in the form via the GUI is disconcerting at best and infuriating at worst.
I did replace your fexes for the dynamic combos with versions of my own that I know work and, voila, fully functioning chained combos. The question is why mine and not yours? Have a look at the two and decide for yourself -
Your fexes -
loadcoun:
TABLEF FILE CAR SUM FST.COUNTRY BY COUNTRY ON TABLE PCHOLD FORMAT XML END
Loadcar:
TABLEF FILE CAR SUM CAR CAR BY CAR NOPRINT WHERE COUNTRY EQ &COUNTRY ON TABLE PCHOLD FORMAT XML END
My versions -
loadcoun:
TABLE FILE CAR SUM FST.COUNTRY BY COUNTRY ON TABLE PCHOLD FORMAT XML END
Loadcar:
-DEFAULT &Country = 'FOC_NONE' TABLE FILE CAR SUM FST.CAR BY CAR WHERE COUNTRY EQ '&COUNTRY' ON TABLE PCHOLD FORMAT XML END
It appears that the problem was the single quotes around the &COUNTRY in the where clause within Loadcar
Regards
T
p.s. I'll pm some code from 5.3.2 version that WILL work. This message has been edited. Last edited by: Tony A,
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