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     [CLOSED] Downloading CSV with format data

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Downloading CSV with format data
 Login/Join
 
Gold member
posted
Hi,

When I export the csv file from AHTML report, the csv 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 in Advance.

This message has been edited. Last edited by: FP Mod Chuck,
 
Posts: 53 | Registered: September 30, 2008Report This Post
Expert
posted Hide Post
Hi Madhu,

One of the reasons it is suggested that members include their version of WebFOCUS in their signature is so that they don't have to remember to add it to their post.

Hence, we have no idea of the version to which you refer!

I am using 8.2.04 for my test and I get a file with headers from the following code. I click on a column title expand the Export menu item and choose CSV format.
TABLE FILE CAR
SUM RCOST DCOST BY COUNTRY BY CAR BY MODEL
ON TABLE PCHOLD FORMAT AHTML
END
-RUN

"Country","Manufacturer","Model","Forecourt Price","Cost to Dealer"
"ENGLAND","JAGUAR","V12XKE AUTO",8878,7427
"ENGLAND","JAGUAR","XJ12L AUTO",13491,11194
"ENGLAND","JENSEN","INTERCEPTOR III",17850,14940
"ENGLAND","TRIUMPH","TR7",5100,4292
"FRANCE","PEUGEOT","504 4 DOOR",5610,4631
"ITALY","ALFA ROMEO","2000 4 DOOR BERLINA",5925,4915
"ITALY","ALFA ROMEO","2000 GT VELOCE",6820,5660
"ITALY","ALFA ROMEO","2000 SPIDER VELOCE",6820,5660
"ITALY","MASERATI","DORA 2 DOOR",31500,25000
"JAPAN","DATSUN","B210 2 DOOR AUTO",3139,2626
"JAPAN","TOYOTA","COROLLA 4 DOOR DIX AUTO",3339,2886
"W GERMANY","AUDI","100 LS 2 DOOR AUTO",5970,5063
"W GERMANY","BMW","2002 2 DOOR",5940,5800
"W GERMANY","BMW","2002 2 DOOR AUTO",6355,6000
"W GERMANY","BMW","3.0 SI 4 DOOR",13752,10000
"W GERMANY","BMW","3.0 SI 4 DOOR AUTO",14123,11000
"W GERMANY","BMW","530I 4 DOOR",9097,8300
"W GERMANY","BMW","530I 4 DOOR AUTO",9495,8400


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
Gold member
posted Hide Post
Hi,

When you execute your code and select Export to CSV, the output will display in new window.

My requirement is when i click the export to csv the file should be download with heading and formatted data

I able to download the csv based on below code but it displaying without heading and unformatted data

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

Thanks,

Please anyone let me know


quote:
Originally posted by Tony A:
Hi Madhu,

One of the reasons it is suggested that members include their version of WebFOCUS in their signature is so that they don't have to remember to add it to their post.

Hence, we have no idea of the version to which you refer!

I am using 8.2.04 for my test and I get a file with headers from the following code. I click on a column title expand the Export menu item and choose CSV format.
TABLE FILE CAR
SUM RCOST DCOST BY COUNTRY BY CAR BY MODEL
ON TABLE PCHOLD FORMAT AHTML
END
-RUN

"Country","Manufacturer","Model","Forecourt Price","Cost to Dealer"
"ENGLAND","JAGUAR","V12XKE AUTO",8878,7427
"ENGLAND","JAGUAR","XJ12L AUTO",13491,11194
"ENGLAND","JENSEN","INTERCEPTOR III",17850,14940
"ENGLAND","TRIUMPH","TR7",5100,4292
"FRANCE","PEUGEOT","504 4 DOOR",5610,4631
"ITALY","ALFA ROMEO","2000 4 DOOR BERLINA",5925,4915
"ITALY","ALFA ROMEO","2000 GT VELOCE",6820,5660
"ITALY","ALFA ROMEO","2000 SPIDER VELOCE",6820,5660
"ITALY","MASERATI","DORA 2 DOOR",31500,25000
"JAPAN","DATSUN","B210 2 DOOR AUTO",3139,2626
"JAPAN","TOYOTA","COROLLA 4 DOOR DIX AUTO",3339,2886
"W GERMANY","AUDI","100 LS 2 DOOR AUTO",5970,5063
"W GERMANY","BMW","2002 2 DOOR",5940,5800
"W GERMANY","BMW","2002 2 DOOR AUTO",6355,6000
"W GERMANY","BMW","3.0 SI 4 DOOR",13752,10000
"W GERMANY","BMW","3.0 SI 4 DOOR AUTO",14123,11000
"W GERMANY","BMW","530I 4 DOOR",9097,8300
"W GERMANY","BMW","530I 4 DOOR AUTO",9495,8400


T
 
Posts: 53 | Registered: September 30, 2008Report This Post
Expert
posted Hide Post
So your Report1_1.fex is the controlling extract process then and not the standard AHTML export.

You ought to have mentioned that first as it changes the response.

Look at the help files for the use of FORMAT DFIX as that will give you greater control than FORMAT COMT etc.

Your signature still isn't showing.

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
Master
posted Hide Post
quote:
My requirement is when i click the export to csv the file should be download with heading and formatted data


Formatting is impossible for any CSV file as it is just a text file.


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,

Is it possible to display the heading? Please let me know.

Thanks,
Madhu


quote:
Formatting is impossible for any CSV file as it is just a text file.
 
Posts: 53 | Registered: September 30, 2008Report This Post
Expert
posted Hide Post
quote:
Look at the help files for the use of FORMAT DFIX as that will give you greater control than FORMAT COMT etc.



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
Master
posted Hide Post
quote:
Hi,

Is it possible to display the heading? Please let me know.

Thanks,
Madhu


I would open a case and ask IBI how that would be done in AHTML.


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     [CLOSED] Downloading CSV with format data

Copyright © 1996-2020 Information Builders