Focal Point
[SOLVED] Excel ouput with ibfs extension

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9087083176

June 25, 2014, 09:59 AM
Daniel G
[SOLVED] Excel ouput with ibfs extension
I have written a report where the output goes to an excel document. When prompt to save, the document has an extension of .ibfs. This only occurs in Firefox, Chrome, and Opera. Internet Exploder saves with the correct extension of .xls. Here is sample code:

TABLE FILE CAR
PRINT 
     CAR.COMP.CAR
     CAR.CARREC.MODEL
     CAR.BODY.BODYTYPE
WHERE CAR.ORIGIN.COUNTRY EQ 'ENGLAND';
ON TABLE SET PAGE-NUM NOLEAD 
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K OPEN NOBREAK
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = endeflt,
$
ENDSTYLE
END


TABLE FILE CAR
PRINT 
     CAR.COMP.CAR
     CAR.CARREC.MODEL
     CAR.BODY.BODYTYPE
WHERE CAR.ORIGIN.COUNTRY EQ 'JAPAN';
ON TABLE SET PAGE-NUM NOLEAD 
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K CLOSE
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = endeflt,
$
ENDSTYLE
END


I have checked my redirecting settings on the server and they look to be correct. Any ideas why Firefox, Chrome, and Opera try to save with an .ibfs extension?

Thanks,

Daniel

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


In Focus since 2012
WebFOCUS 8.0.07
Windows, All Outputs
June 27, 2014, 02:10 PM
<Kathryn Henning>
Hi Daniel,

What versions of Firefox, Chrome and Opera are you using? Please ensure that they are supported versions for your version of WebFOCUS.

Web Browser Support for WebFOCUS

Cheers!

Kathryn
June 27, 2014, 02:23 PM
Daniel G
All three browsers are up to date to the latest versions.


In Focus since 2012
WebFOCUS 8.0.07
Windows, All Outputs
June 27, 2014, 04:59 PM
<Kathryn Henning>
Hi Daniel,

Thanks for updating your release of WebFOCUS in your signature. The most recent browser versions are often not supported since they are generally released after a particular version of WebFOCUS has gone production. We provide the support matrices by WebFOCUS release so that customers can see whether or not a particular version of their preferred browser is supported.

Cheers!

Kathryn
June 27, 2014, 05:24 PM
Tom Flynn
Has absolutely nothing to do with any browser.
And it is a real pain...


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
June 27, 2014, 06:06 PM
<Kathryn Henning>
Hi All,

Given that this worked in one browser but not others, it initially appeared to be a browser issue. However, as Tom points out, it isn't. Please reference the following steps:

1. Make a backup copy of the mime.wfs file at: \ibi\WebFOCUS80\client\wfc\etc

2. Open the file in a text editor.

3. Locate the mime.wfs file row: ".xmh"

4. Change it to have the last column specify: .xls instead of .xmh

5. Save the file.

6. Open the WebFOCUS Administration Console.

7. On the Configuration and Redirection Settings, verify the extension .xmh is .xls and set the "Save Report" drop down option to Yes.

8. Click Save and Clear Cache.

Cheers!

Kathryn
June 30, 2014, 08:48 AM
Tom Flynn
Hi Kathryn,
Unfortunately, it is not only Excel:



Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
June 30, 2014, 09:31 AM
Daniel G
Hi Kathryn,

I tried the 8 steps you mentioned and still no luck.

Daniel


In Focus since 2012
WebFOCUS 8.0.07
Windows, All Outputs
June 30, 2014, 01:23 PM
<Kathryn Henning>
Hi Tom and Daniel,

Please open cases on InfoResponse Online so that we can work with you to see what else may be causing this.

Thanks and regards,

Kathryn
June 30, 2014, 01:40 PM
Tom Flynn
Hi Kathryn,
My example is very simple, and, I won't be opening a case for something as generic as this...
IBI is generating the extension, never had before.
I'm sure they know about this and a myriad of other bugs, i.e., AutoPrompter, in WebFOCUS 8.0.07..
Not Fun anymore, IBI...
Tom


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
June 30, 2014, 08:39 PM
<Kathryn Henning>
Hi All,

I tested both Daniel and Tom's code under WebFOCUS releases 8.0.07 and 8.0.08 under Content using Firefox but could not reproduce the issue. We've had a report of this behavior that the steps above resolved. Aside from that, there haven't been any reports of this behavior. This may be caused by something environmental, but in my tests, I couldn't determine what it might be as my test environment is vanilla. If my testing is different that what you're doing when you receive this message, please let me know.

Thanks and regards,

Kathryn
July 14, 2014, 01:32 PM
J
Hey all,

What client settings are you using for excel and autoprompt?
We had to erase the default IBIF_excelservurl and we had to set parameter prompting to XMLRUN in order for things to work smoothly. I download the excel files automatically without the save/open option and the invalid file format message appears but Excel will still open the file.


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
July 16, 2014, 02:42 PM
Tom Flynn
Thought I would give an update for ON TABLE PCHOLD FORMAT ALPHA:

After meeting With Art Greenhaus and Michael Lewis of IBI, by clicking on the Save as
Type and selecting All files, then wiping out the default name and renaming the
file with double quotes around it, the file is saved as expected.
Example:
Test_IBFS_Extension_fex.ibfs will be renamed to "Tax File for NY State"
This saves the data as a "FILE" and is able to be fed to our other systems...


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
July 16, 2014, 02:57 PM
Daniel G
Hi Tom,

I tried your work around but when the file saves my OS has no clue what it is or how to open the file. Plus my users will have a fit if I tell them that many steps just to save a Excel file.

Daniel


In Focus since 2012
WebFOCUS 8.0.07
Windows, All Outputs
July 16, 2014, 03:03 PM
Kathleen Butler
Hi Dan,

We will review all of the information for your case and arrange for a quick call with you to resolve the issue. Kathryn Henning will compile the information needed. Thanks for your patience.

Sincerely,

Kathleen Butler
Information Builders
July 16, 2014, 03:04 PM
Tom Flynn
Hi Daniel,
Again, my issue was PCHOLD FORMAT ALPHA. For your issue, we are not getting the ibfs extension for Excel, we get xmh or xht. In the mime.wfs file, we changed those to xls and Save Report to yes. Now we get the file with extension .xls

You need to change the mime.wfs. Contact IBI, they will be able to assist...

Per IBI, this will be able to be done via Admin --> Redirection Setting in release 8.1
Tom


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
July 16, 2014, 04:04 PM
Daniel G
Hi Tom,

I have looked at the redirection settings and all the excel extensions have been set to yes.

Daniel


In Focus since 2012
WebFOCUS 8.0.07
Windows, All Outputs
July 16, 2014, 04:12 PM
J
I think Tom also directly changed the mime.wfs changing the xmh and xht directly to .xls

BTW XLSX (old syntax - EXL07) works great and now supports a lot of features (you will have to log in to see them)


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
July 16, 2014, 04:21 PM
Tom Flynn
J,
THX, totally forgot about XLSX, will try that with the Mac user...

Daniel,
quote:
You need to change the mime.wfs. Contact IBI, they will be able to assist...

This is on the server, it's contents are "mostly" displayed in the Reconfig settings, BUT, you can't change them there until 8.1...


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
July 17, 2014, 09:34 AM
FocWizard
Tom, You misunderstood what I said.

In release 8.1, we (IBI) have changed the mime.wfs file, so that 'SAVE Report' defaults to 'YES', and for excel outputs, the default file extension is either XLS or XLSX. The file extension will NOT be changeable via the client console. You'd need to use an editor to change it, if desired. Our intent was to make it unnecessary to change the defaults.
July 17, 2014, 02:00 PM
Tom Flynn
Hi Art,
OK, My Bad!!!
Thank You for clarifying...
Tom


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
August 04, 2014, 05:18 PM
<Kathryn Henning>
Hi All,

Daniel G and Art Greenhaus worked on this issue. Each browser handles sending an Excel file back differently. IE drops any file extension that may be there and appends .xls to the end. Chrome, Firefox, and Opera don't do this which results in the .ibfs file extension being returned.

Here is the resolution:

Using an editor such as WordPad, make the following changes. They must be done through an editor since the file extension can't be changed via the GUI:

1. edit ibi\webfocus80\client\wfc\etc\mime.wfs
2. for the .xmh extension, change Save Report from no to yes in the second to the last column, and change the file extension from .xmh to .xls in the last column
3. clear the Client cache

As Art mentions above, in release 8.1, changes have been made to the mime.wfs file so that 'Save Report' defaults to 'yes', and for Excel outputs, the default file extension is either .xls or .xlsx.

Cheers!

Kathryn
August 05, 2014, 07:01 AM
Martin vK
Thanks for this information.
The post was about WF 8.0, but I had a similar problem in WF 7.7
Excel 2000 output normally is created as .xls, but when I make compound reports the extension suddenly changes to .xmh and many clients had problems with this as it was not recognized as an excel extension.
With changing the mime.wfs I now also get the .xls extension.

Martin.


WebFocus 8206M, iWay DataMigrator, Windows, DB2 Windows V10.5, MS SQL Server, Azure SQL, Hyperstage, ReportCaster
August 06, 2014, 11:10 AM
FocWizard
Two points:

1. The extensions of '.ibfs' and '.bip' resulted from an enhancement to security, and only appear when 'save report' is set to NO. In that case, the name used is from the HTTP call, and, as mentioned, only appears with Firefox or CHROME, due to differences in how each handles HTTP protocols.

2. BY setting 'save report' to YES, we can use the 'AS' phrase specified in the request, as the filename for the attached file (an added bonus). Manually changing the extension in the mime.wfs file provides the desired extension.
August 08, 2014, 09:47 AM
J
quote:
Originally posted by J:
We had to erase the default IBIF_excelservurl.

Well this relates more to XLSX format but we found this in the WebFOCUS Security and Administration doc:

The IBIF_excelservurl setting cannot be used when web server security is enabled. This
includes Basic authentication, IWA, SSL, and third-party security products (such as
SiteMinder, Clear Trust, Oblix, WebSEAL). In these cases, the web server security settings
can prevent WebFOCUS from creating the Excel 2007 file. The IBIF_excelservurl setting
can be used with Basic authentication when the credentials are supplied as follows...



WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
August 12, 2015, 11:39 AM
Bob Shulkind
quote:
Originally posted by FocWizard:
Two points:

1. The extensions of '.ibfs' and '.bip' resulted from an enhancement to security, and only appear when 'save report' is set to NO. In that case, the name used is from the HTTP call, and, as mentioned, only appears with Firefox or CHROME, due to differences in how each handles HTTP protocols.

2. BY setting 'save report' to YES, we can use the 'AS' phrase specified in the request, as the filename for the attached file (an added bonus). Manually changing the extension in the mime.wfs file provides the desired extension.


Is there a solution to this for 8.0.07? We will be upgrading to 8.1.05 in a month or 2 but we need to have Excel output on Macs working now. Thanks. Bob


WebFOCUS 8.0.09 server, 8.0.07 Client, Windows 2012 R2 Server, InfoAssist, BI Portal, Graphs, Excel, PDF.
August 14, 2015, 12:56 PM
<Kathryn Henning>
Hi Bob,

Thank you for opening a case for your question.

Regards,

Kathryn