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.

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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Chain not working in an HTML page

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Chain not working in an HTML page
 Login/Join
 
Member
posted
I have a launch page with two parameters chained together. I have associated two combo boxes with these parameters.

When I run the html page the first combo box gets populated but the second one doesn't. The first combo box get populated from a data source (text file). The second one gets populated using a fex file that reads another text file.

A similar html file using the same data sources but in a different domain is working just fine.


WebFOCUS 5.3.3, Win 2000, IIS
 
Posts: 18 | Location: Baltimore | Registered: September 29, 2005Report This Post
Expert
posted Hide Post
Balram,

Please post the two SELECT statements for the combos from your HTML and the two fexes that are used to populate them.

Also, please update your signature to show what release and what platform you are on. This helps us to target your particular requirements.

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, 2004Report This Post
Platinum Member
posted Hide Post
It's my understanding that in order to chain elements together the fields for each list box have to be from the same table (per NY). How I got around this was to create a fex that joins the two data sources together and create a hold file. The mfd will then appear in your list of mfds in html layout painter. You can now use the hold mfd to populate your list boxes and chain them together. I scheduled a job through reportcaster that would rebuild the hold file every night because it was possible that the data could change daily (student data)


WF 7.7.05
HP-UX - Reporting Server, Windows 2008 - Client, MSSQL 2008, FOCUS Databases, Flat Files
HTML, Excel, PDF
 
Posts: 149 | Location: Dallas, TX | Registered: June 08, 2007Report This Post
Gold member
posted Hide Post
As linus stated, the best way is to be able to join the resources together and have a sing result

JOIN F1 IN A TO F2 IN B
TABLE FILE A
PRINT DST.A1_DESC
DST.B1_DESC
BY A1_VALUE
BY B1_VALUE
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE PCHOLD FORMAT XML
END

With this situation, the values would be cached which is the default.

What you did, where you have two separate sources that are not currently joined, you will need to turn the caching off. From the HTML painter, click on the button that shows the chain order. Once you have the chain order, right-click on one of the select boxes and uncheck the Cache Values option.

But as stated before, it would be preferable if you wrote a procedure to bring everything together first.

Just a warning, when you do use the cache feature from a procedure, it does not appear to be working from within the painter (all of the chains have the same values), but when you launch the HTML page, it works fine.



Windows: WF 7.6.2: SQL Server 2008 R2
 
Posts: 86 | Location: Chicago | Registered: August 03, 2007Report This Post
Member
posted Hide Post
Tony Here are the SELECT statements from the HTML file
...SELECT id=ITEM3 style="Z-INDEX: 2; LEFT: 210px; WIDTH: 275px; POSITION: absolute; TOP: 180px; HEIGHT: 22px" name ="LOCID" elementname="combobox3" elementtype="combobox" sourcetype="typeMaster" labelid caption="combobox" operation="NONE" ibiformat datatype="1" addalloption="0" dynalldisplayvalue="ALL" inchainindex="1" chainnumber="0" cacheruntimedata="0" displayfield="LOCNAME" numofrecords="-1" datafield="LOCID" datasource="PHONE_MS.mas" datafieldtype="INTEGER"

...SELECT id=ITEM8 style="Z-INDEX: 7; LEFT: 210px; WIDTH: 275px; POSITION: absolute; TOP: 220px; HEIGHT: 22px" name ="RPTID" elementname="combobox8" elementtype="combobox" labelid caption="combobox" operation="NONE" ibiformat datatype="1" addalloption="0" dynalldisplayvalue="ALL" inchainindex="2" chainnumber="0" cacheruntimedata="0" displayfield numofrecords="-1" datafield sourcetype="typeFex" datasource="app/rpttypes.fex" IBIMR_folder="#newfolderysg" IBIC_server="EDASERVE" datafieldtype


The first combo box is getting populated by this master file
FILE=LOCS, SUFFIX=FIX, DATASET=C:\IBI\APPS\TELERPRTMETADATA\PHONE_MS.DAT
SEGNAME=ROOT_SEG, SEGTYPE=S1, $
FIELD=LOCID, ALIAS=FIELD1, FORMAT=I6, $
FIELD=LOCNAME, ALIAS=LOCNAME, FORMAT=A40, $

The second combo box is using the fex file below:
TABLE FILE RPTTYPES
PRINT
RPTID
RPTNAME
WHERE INT(LOCID) EQ &LOCID;
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT XML
END

linus/Gizmo, This html was working just fine. As I said before, another html with the same chain and the same data sources, is working OK. Only difference is that it is in a different domain. I would like to first try to resolve this issue (if possible) without changes to the code (which would have to be done in dev, qa and production). Appreciate your suggestions. I'll try it out.

This message has been edited. Last edited by: Balram Vedavyas,


WebFOCUS 5.3.3, Win 2000, IIS
 
Posts: 18 | Location: Baltimore | Registered: September 29, 2005Report This Post
Platinum Member
posted Hide Post
Just a thought. Make sure a 'Display field' is entered in the Parameter tab.

1. Open the HTML file in question
2. Click on the 'Parameter' tab on the bottom of the 'Properties' window
3. Click on a control
4. In the window listing the fields, click and drag the appropriate field into
the 'Display Field' box.


WF 8 version 8.2.04. Windows.
In focus since 1990.
 
Posts: 189 | Location: pgh pa | Registered: October 06, 2004Report This Post
Virtuoso
posted Hide Post
Had similar issue, seems there is some setting relating to cache that needs to be 'off' regarding the properties of the selection box. Can't recall the 'fix' as I think our admin set it as a default.


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Member
posted Hide Post
Spence,

I am still running 5.3.3. The interface is therefore different. I assume the functionality is still the same. Please correct me if I am wrong.

In the first select there is a DISPLAYFIELD specified. In the second case, since the source is a FEX I cannot specify the DISPLAYFIELD.


WebFOCUS 5.3.3, Win 2000, IIS
 
Posts: 18 | Location: Baltimore | Registered: September 29, 2005Report This Post
Expert
posted Hide Post
Balram,

Looks OK all to me, you have the necessary components in the SELECT tags and the fex looks alright as well.

The only thing I would suugest you do (and this may not be the problem) is to add a DEFAULT value for &LOCID of FOC_NONE -
-DEFAULT &LOCID = 'FOC_NONE'

If that doesn't work then I would move on to the IBIRLS.JS module and add a few ALERT statements within the populatedynamicchain function to see what you are getting back (if anything) from the population.

If you do modify the IBIRLS.JS file then make a backup beforehand and remember to restore the original when you have sorted out the problem.

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, 2004Report This Post
Member
posted Hide Post
Tony,

Specifying a default value did not help.

About the IBIRLS.JS file. This is a file that is common to all defined domains, isn't it?

Balram


WebFOCUS 5.3.3, Win 2000, IIS
 
Posts: 18 | Location: Baltimore | Registered: September 29, 2005Report This Post
Expert
posted Hide Post
Balram,

It is an IB supplied file, it is common to an installation whether you have MRE, self serve etc. This file is hauled into each launch page created using RLP and is responsible for achieving the chaining and dynamic population of the form controls (amongst other things). It is a fairly lengthy (as you would expect) piece of coding and one that I would recommend trying to understand if you want to know about problems within launch pages. There are a lot of things that the code will allow that is not really used throughout most shops and it is a shame because a lot of effort has been put into it. I normally have a version with a fair few alerts contained within so that I just do a quick rename to start probelm determination.

In 7.1 (I think) the module was superceded by IBIRLS2.js but the former version still lurks around and can be used instead for backward compatability.

One of the problems (in my view) with the later version is that it creates onchange events for comboboxes and in doing so overwrites anything that the developer might have in place. It would have been better to have appended another onchange event rather than overwrite it. This new method caused quite a few problems initially! (for me anyway Wink)

Good luck

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, 2004Report This Post
Member
posted Hide Post
Gizmo,

Checked the Cache Values option. It was already unchecked.

quote:
What you did, where you have two separate sources that are not currently joined, you will need to turn the caching off. From the HTML painter, click on the button that shows the chain order. Once you have the chain order, right-click on one of the select boxes and uncheck the Cache Values option.



Balram


WebFOCUS 5.3.3, Win 2000, IIS
 
Posts: 18 | Location: Baltimore | Registered: September 29, 2005Report This Post
Member
posted Hide Post
Tony

I have put in a request to get a copy of the IBIRLS2.js file. In the meanwhile here is what I discovered.....

I copied and pasted files (every file except the html and fex that is launched by the html) from the domain A, where the chain was not working, to domain B, where it was working (Note that I also copied the fex that the second parameter/combobox uses). Both domains use the same application path and master file (for the first combo box). After the copy the chain stopped working in domain B too. The first combo box is populated but not the second one.

Do you think it is the fex associated with the second combobox that is causing the problem?


WebFOCUS 5.3.3, Win 2000, IIS
 
Posts: 18 | Location: Baltimore | Registered: September 29, 2005Report This Post
Expert
posted Hide Post
Balram,

Quite possibly ....

To test to see that it gets output just execute it to see the XML output. To see what you would expect upon initial page load, use a DEFAULT setting for your variable equal to the value used for the first entry in your first chained combo.

If you get no XML data output (just the headers etc.) then you can be fairly certain that your fex is at fault.

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, 2004Report This Post
Member
posted Hide Post
The fex runs fine... result looks ok too


WebFOCUS 5.3.3, Win 2000, IIS
 
Posts: 18 | Location: Baltimore | Registered: September 29, 2005Report This Post
Member
posted Hide Post
Resolved the issue (I think so)........

I altered the WHERE clause in the fex from

INT(LOCID) EQ &LOCID;

to

INT(LOCID) EQ INT(&LOCID);

The question still remains... How was the WHERE clause working earlier (it was in place for almost two years now) and what caused it to stop working?


WebFOCUS 5.3.3, Win 2000, IIS
 
Posts: 18 | Location: Baltimore | Registered: September 29, 2005Report 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     Chain not working in an HTML page

Copyright © 1996-2020 Information Builders