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     [SOLVED] WebFocus 8 HTML / Excel Issue

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] WebFocus 8 HTML / Excel Issue
 Login/Join
 
Gold member
posted
We just installed WF8 and migrated all our content. We are having an issue with an HTML page in MRE that has a URL to an excel spreadsheet that lives in the Web Applications folder. When we run the report we get an HTTP Status 404...this is the line in the code I am trying to run href="http:../wfrpt/ca0037_fa.xls" target="repts" Credit-Card Charges by Sales Office (monthly)it works fine in webfocus 7..I will copy all the code here:
 

<html>
<head>


<title>Accounting Self-Serve</title>

<link rel="stylesheet" href="../format/Finance.css" type="text/css">

<script language="JavaScript">
<!-- //Hide the script from browsers with JS disabled.
function OpenStandard(url, name, width, height) {
mywin = window.open(url, name, 'width=' + width + ',height=' + height +
',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=800,height=650,left = 200,top = 125')
}
// -->
</script>
<!--*****************************************-->
<script language="JavaScript">
<!-- //Hide the script from browsers with JS disabled.
function OpenBig(url, name, width, height) {
mywin = window.open(url, name, 'width=' + width + ',height=' + height +
',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=1000,height=700,left = 75,top = 125')
}
// -->
</script>
<!--*****************************************-->
<script language="JavaScript">
<!-- //Hide the script from browsers with JS disabled.
function OpenSmall(url, name, width, height) {
mywin = window.open(url, name, 'width=' + width + ',height=' + height +
',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=600,height=400,left = 200,top = 200')
}
// -->
</script>





</head>
<body >
<center><h1>Accounting Reports</h1>

</center>

<hr size="2">
<center>

<p><h3>Reporting Applications / Static Reports / Data Uploads</h3> </p>


<h3>General Accounting / Tax Reports</h3>


<table border="3" cellpadding="5" cellspacing="5" style=border-style="inset"   width="90%">
<tr>
<td width="25%"><a href="http:../wfrpt/ca0037_fa.xls"                 target="repts"  > Credit-Card Charges by Sales Office (monthly)</a></td>

</tr>
<tr>
<td width="25%"><a href="http:/ibi_apps/WFServlet?IBIF_ex=fa9049g"    target="fa9049" > Top 25 MCA GLI Balances Report (monthly)</a></td>
</tr>


</table>
</center>
</div>
<p align="center"></p>
<hr size="2">


</body>
</html>

This message has been edited. Last edited by: <Kathryn Henning>,


8.0.9, Windows
excel / pdf
 
Posts: 89 | Registered: October 21, 2010Report This Post
Master
posted Hide Post
I assume your .xls is in an application folder called 'wfrpt'.

I created the 'New Link' anchor tag, you see below, and it opens the .xls AOK:
-* File MattM.fex
-HTMLFORM BEGIN
<html> 
<head> 
<title>Accounting Self-Serve</title> 

<link rel="stylesheet" href="../format/Finance.css" type="text/css"> 

<script language="JavaScript"> 
< !-- //Hide the script from browsers with JS disabled. 
function OpenStandard(url, name, width, height) { 
mywin = window.open(url, name, 'width=' + width + ',height=' + height + 
',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=800,height=650,left = 200,top = 125') 
} 
// --> 
</script> 
< !--*****************************************--> 
<script language="JavaScript"> 
< !-- //Hide the script from browsers with JS disabled. 
function OpenBig(url, name, width, height) { 
mywin = window.open(url, name, 'width=' + width + ',height=' + height + 
',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=1000,height=700,left = 75,top = 125') 
} 
// --> 
</script> 
< !--*****************************************--> 
<script language="JavaScript"> 
< !-- //Hide the script from browsers with JS disabled. 
function OpenSmall(url, name, width, height) { 
mywin = window.open(url, name, 'width=' + width + ',height=' + height + 
',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=600,height=400,left = 200,top = 200') 
} 
// --> 
</script> 

</head> 
<body > 
<center><h1>Accounting Reports</h1> 

</center> 

<hr size="2"> 
<center> 



<h3>Reporting Applications / Static Reports / Data Uploads</h3> </p> 


<h3>General Accounting / Tax Reports</h3> 


<table border="3" cellpadding="5" cellspacing="5" style=border-style="inset" width="90%"> 
<tr> 
-********* this it the start of code that no longer works ********** 

<td width="25%"><a href="http:../wfrpt/ca0037_fa.xls" target="repts" > Credit-Card Charges by Sales Office (monthly)</a></td> 

-********* this it the end of code that no longer works ********** 

-********* this it the start of code that was added by David Briars ********** 

<td width="25%"><a href="/approot/wfrpt/MattTest.xls" target="repts" > New Link </a></td> 

-********* this it the end of code that was added by David Briars ********** 

</tr> 
<tr> 
<td width="25%"><a href="http:/ibi_apps/WFServlet?IBIF_ex=fa9049g" target="fa9049" > Top 25 MCA GLI Balances Report (monthly)</a></td> 
</tr> 


</table> 
</center> 
</div> 
<p align="center"></p> 
<hr size="2"> 


</body> 
</html> 
-HTMLFORM END 

What is key is that the absolute URL works fine, if typed directly into the browser. In my case, the following caused the .xls to download, when typed directly in the browser:
http://localhost:8080/approot/wfrpt/MattTest.xls 

Another key is that the path/context is setup on your web server. For my case, I am using the standard installed IB/Tomcat context:
<?xml version='1.0' encoding='utf-8'?>
<Context docBase="C:\ibi\apps" path="/approot">
</Context> 

This message has been edited. Last edited by: David Briars,




Pilot: WebFOCUS 8.2.06 Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2016/Tomcat Standalone Workstation: Windows 10/IE11+Edge Database: Oracle 12c, Netezza, & MS SQL Server 2019 Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer & ReportCaster
 
Posts: 822 | Registered: April 23, 2003Report This Post
Gold member
posted Hide Post
Issue Resolved
Thanks David for the solution...the html/url is working perfectly now..!!


8.0.9, Windows
excel / pdf
 
Posts: 89 | Registered: October 21, 2010Report 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] WebFocus 8 HTML / Excel Issue

Copyright © 1996-2020 Information Builders