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] Drilldown and Export to CSV in AHTML

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Drilldown and Export to CSV in AHTML
 Login/Join
 
Gold member
posted
Hey everyone,
We have a export feature in the active report menu.

When we tested that feature, doesn't work. When you click export excel from the menu it just puts the comma delimited data into the browser window and nothing else happens.

If i add the below code then export is working but drilldown is not working

ON TABLE SET WEBVIEWER ON
ON TABLE SET CACHELINES ON
------------------------------------
Please find the sample report
TABLE FILE CAR
PRINT
CAR.BODY.DEALER_COST
CAR.BODY.RETAIL_COST
CAR.BODY.SALES
BY LOWEST CAR.ORIGIN.COUNTRY
BY LOWEST CAR.COMP.CAR
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT AHTML
ON TABLE SET WEBVIEWER ON
ON TABLE SET CACHELINES ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
$
TYPE=DATA,
COLUMN=N1,
ALT = 'DrillDown 1',
FOCEXEC=IBFS:/WFC/Repository/TEST/Report1_1.fex,
TARGET='_self',
$
ENDSTYLE
END


Anyone else see this behavior or have a solution for it?

Please let me know

This message has been edited. Last edited by: FP Mod Chuck,
 
Posts: 53 | Registered: September 30, 2008Report This Post
Virtuoso
posted Hide Post
What release are you using?
What browser are you using? Have you tested other browsers?

I just tested your code with and without the two lines. With the two lines,I get an XLSX and without them, I get an XLS file. Both seem to do exactly what I expected.


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Gold member
posted Hide Post
My Version - 8204
Without the two code, CSV opening in new browser.
If i add the two code, able to download the CSV file, but drilldown functionality is not working

Thanks,
Madhu


quote:
Originally posted by BabakNYC:
What release are you using?
What browser are you using? Have you tested other browsers?

I just tested your code with and without the two lines. With the two lines,I get an XLSX and without them, I get an XLS file. Both seem to do exactly what I expected.
 
Posts: 53 | Registered: September 30, 2008Report This Post
Gold member
posted Hide Post
XLS and XML, file downloading but CSV opening in browser itself

quote:
Originally posted by Madhumitha:
My Version - 8204
Without the two code, CSV opening in new browser.
If i add the two code, able to download the CSV file, but drilldown functionality is not working

Thanks,
Madhu


quote:
Originally posted by BabakNYC:
What release are you using?
What browser are you using? Have you tested other browsers?

I just tested your code with and without the two lines. With the two lines,I get an XLSX and without them, I get an XLS file. Both seem to do exactly what I expected.
 
Posts: 53 | Registered: September 30, 2008Report This Post
Virtuoso
posted Hide Post
Madhumitha

This is just a guess but maybe check the redirection settings on the client administration console. I see the 'Save Report' setting for csv is yes and it is set to no for xml and xls. May be worth a try. I think you have to restart apache tomcat for the change to take affect.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Gold member
posted Hide Post
In case it's helpful, it might be that your PC is set to use IE to open .csv files with IE instead of Excel by default.

How to configure Internet Explorer to open Office documents in the appropriate Office program instead of in Internet Explorer
 
Posts: 62 | Registered: October 31, 2006Report This Post
Master
posted Hide Post
A couple of things you could try are:

  • CACHELINES is not an ON/OFF option. It is an integer option. i.e. ON TABLE SET CACHELINES 1000
  • Try adding in: ON TABLE SET WEBVIEWTARG OFF

You will have to manually name the file with the csv extension in the save as dialog box, but it saved fine on my end.
  
TABLE FILE CAR
PRINT
CAR.BODY.DEALER_COST
CAR.BODY.RETAIL_COST
CAR.BODY.SALES
BY LOWEST CAR.ORIGIN.COUNTRY
BY LOWEST CAR.COMP.CAR
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT AHTML
ON TABLE SET CACHELINES 1000
ON TABLE SET WEBVIEWTARG OFF
ON TABLE SET WEBVIEWER ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
$
TYPE=DATA,
COLUMN=N1,
ALT = 'DrillDown 1',
FOCEXEC=IBFS:/WFC/Repository/TEST/Report1_1.fex,
TARGET='_self',
$
ENDSTYLE
END


Hallway

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
 
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Report This Post
Gold member
posted Hide Post
Hi Hallway,

Thank you so much.

Its working for me.

Thanks,
Madhu


quote:
Originally posted by Hallway:
A couple of things you could try are:

  • CACHELINES is not an ON/OFF option. It is an integer option. i.e. ON TABLE SET CACHELINES 1000
  • Try adding in: ON TABLE SET WEBVIEWTARG OFF

You will have to manually name the file with the csv extension in the save as dialog box, but it saved fine on my end.
  
TABLE FILE CAR
PRINT
CAR.BODY.DEALER_COST
CAR.BODY.RETAIL_COST
CAR.BODY.SALES
BY LOWEST CAR.ORIGIN.COUNTRY
BY LOWEST CAR.COMP.CAR
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT AHTML
ON TABLE SET CACHELINES 1000
ON TABLE SET WEBVIEWTARG OFF
ON TABLE SET WEBVIEWER ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
$
TYPE=DATA,
COLUMN=N1,
ALT = 'DrillDown 1',
FOCEXEC=IBFS:/WFC/Repository/TEST/Report1_1.fex,
TARGET='_self',
$
ENDSTYLE
END
 
Posts: 53 | Registered: September 30, 2008Report This Post
Master
posted Hide Post
Excellent!! I'm happy to have helped.


Hallway

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
 
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Report This Post
Gold member
posted Hide Post
Hi,

One more question, am able to export the csv file from AHTML report, the downloaded file is in unformat and without heading. Can we able to download the file with heading and formatted one.

Please let me know.

Thanks..

quote:
Originally posted by Hallway:
Excellent!! I'm happy to have helped.
 
Posts: 53 | Registered: September 30, 2008Report This Post
Master
posted Hide Post
quote:
Can we able to download the file with heading and formatted one.


Formatting is impossible for any CSV file as it is just a text file. Try opening a CSV file in Excel, do some formatting and save the file, close it and re-open it. You will see that there is no formatting. If you need formatting, you'll need to export to Excel.

As for the headers, I'm not sure. maybe open up a case and ask the IBI team how to do it.


Hallway

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
 
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Report 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] Drilldown and Export to CSV in AHTML

Copyright © 1996-2020 Information Builders