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.
Wanted to see if anyone else out there has run into this problem and if so, what they might have done to fix it.
Currently, I have an HTML form that can be used to view, modify, add or delete records. The form is using basic SQL in a focus procedure. I had to add "ibihttpxml" which allows me to query XML data retrieved from a .fex and populate the text boxes with the queried data. Similar to the code below, which was provided to me courtesy of WAZ.
The code works great in firefox and chrome - I was able to take the example and work it into my code to do what I need it to do. Unfortunately, the same code produces a FOC227 error when I attempt to view the records. It claims that it cannot find the .fex that calls the data.
Question of the day: Why would this work in both firefox and chrome, and not in explorer?
If anyone has any thoughts on this, I would greatly appreciate. Thanks in advance for any help that anyone can offer.
Example code:
HTML part: (fp_xmlhttp.html) You will have to change the IBIAPP_app to your location.
< !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> My Report </title>
<meta http-equiv="CACHE-CONTROL" content="NO-CACHE">
<script id=IBI_OptionsScript type=text/javascript>
var ibiOptions = new Array("ibihttpxml") ;
</script>
<script type="text/javascript" language="Javascript" src="/ibi_html/javaassist/ibi/html/js/ibigbl.js"></SCRIPT>
<script type="text/javascript">
< !--
function funGetData() {
var ibihttp = new ibihttpxml("/ibi_apps/WFServlet",null) ;
ibihttp.openFromForm(document.forms.My_Form) ;
alert(ibihttp.xmlhttp.responseText) ;
var CtySales = ibihttp.selectSingleNode("//fxf/report/table/tr/td");
document.getElementById("SALES").value = ibihttp.getNodeText(CtySales) ;
}
//-->
</script>
</head>
<body onload="">
<form method="post" name="My_Form">
<table>
<tr>
<td>Country</td><td><input type=text name="COUNTRY" value="ENGLAND"></td>
</tr>
<tr>
<td>Sales</td><td><input type=text name="SALES" id="SALES"></td>
</tr>
<tr>
<td><input type=button value="Get Sales" onclick="funGetData[)"></td>
<td></td>
</tr>
</table>
<input type=hidden name="IBIF_ex" value="fp_xmlhttp">
<input type=hidden name="IBIAPP_app" value="focalpoint">
</form>
</body>
</html>
Fex part: (fp_xmlhttp.fex)
TABLE FILE CAR
SUM SALES
WHERE COUNTRY EQ '&COUNTRY'
ON TABLE PCHOLD FORMAT XML
END
This message has been edited. Last edited by: Kerry,
We had a very similar issue recently, although with normal reports. It started out with just a few specific fexes that couldn't be found, but after a while it couldn't even find our site-wide launch fex anymore. But only with IE (6 & 7) - Firefox just worked. I think it stopped happening after we restarted the server. Not really sure what cured it.This message has been edited. Last edited by: Wep5622,
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
Sorry about leaving out the code tags - still a newbie round these parts.
To be more specific, the sample code works just fine in IE, it is when I work in the sample code into my HTML form that I start getting the issue. It works great in firefox and chrome, but when I run my form in IE it says it cannot find the procedure is linked to my "run" button. I am running IE 8.0.7601.
If I go directly to the .fex and run it, the .fex runs without a problem in IE. But when I run the HTML form it says it cannot find app/myfex.fex - I have compared the code to previous versions that worked before I integrated the sample code above but I cannot seem to isolate the issue.
I know it is difficult to troubleshoot this without seeing the code in the context of how it's being used. I was just hoping that someone might have encountered this or a similar issue and might have found a fix for it.
Again I appreciate any further insight anyone is willing to offer.
Is the fex in a location in the APPPATH at the server-side?
A difference in behaviour of how xmlhttp is issued between the different browsers could probably account for not sending the ibiapp_app path-string (as it appears in the form) when using IE. That would explain the issue if the focexec is not in the server's path.
The most peculiar thing about what we were seeing (assuming it's the same problem) is that it said it couldn't find focexec's that were actually in its path. So, the above doesn't explain what we were seeing, but maybe it does explain what the OP is seeing. Our case is quite baffling and I think I'll subscribe it to a glitch. I suspect we had a misbehaving java process and we may have gotten fooled by our browser caches as well. It has happened from time to time, though.
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
Thanks for the replies - I haven't had an opportunity to dig into this today, but will do some further investigation tomorrow and let you know what I find. Thank you.
Update: I did as Waz suggested and added another submit button and connected it to my .fex. It reset a few things which I had to repair but this time through it seems to be working fine.
Not sure what the specific item was, but glad I was able to get it working.