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] csv from a drill down report

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] csv from a drill down report
 Login/Join
 
Silver Member
posted
Hi All... I have generated a drill down report. now i want a new functionality to be added. a have added a push button on the report output. I want that when i click that button the drill down report output should be save as csv file, upto the level the report is expanded. Can anyone help me out in this??

Kumud Vaish

This message has been edited. Last edited by: Kerry,


version-773
platform-windows
All Outputs
 
Posts: 42 | Location: Chandigarh, India | Registered: February 24, 2012Report This Post
Expert
posted Hide Post
The CSV part is easy, just create another drilldown that creates the CSV.

As for the level the report has been expanded to, I assume it is an accordian report ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Silver Member
posted Hide Post
Hi Waz
Actually I hv made the same and csv file is working fine. it gets overwritten acc. to data whenever I expand or collapse it. It is fine with less amount of data,but for bulk data this can degrade the performance I believe. So is there any other solution to do the same?? and if u cn provide me the code for the same it would be great help

Kumud Vaish


version-773
platform-windows
All Outputs
 
Posts: 42 | Location: Chandigarh, India | Registered: February 24, 2012Report This Post
Expert
posted Hide Post
Have you thought about useing FOCCACHE ?

You could have a copy of the extracted data available, and it should be quicker.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Silver Member
posted Hide Post
I hv implemented the code as:

-DEFAULT &filename='e:\CSV\kag20.csv';
FILEDEF OUTPUT2 DISK &filename
-------sqlcode-------
TABLE FILE SQLOUT
PRINT *
ON TABLE HOLD AS MYDATA TO HOLD AS FOCCACHE/MYDATA
END
----CSSCODE--------------------
ENDSTYLE
END
SAVE AS OUTPUT2 FORMAT COMT

and, still now my csv is fetting overwritten whenever i am expanding or collapsing my report. Is this code is has bug? Please help me out


version-773
platform-windows
All Outputs
 
Posts: 42 | Location: Chandigarh, India | Registered: February 24, 2012Report This Post
Expert
posted Hide Post
Is this your actual code ?

What you need to do is to create the hold file first time through.

Then with each drilldown, don't create the hold file, but just table from it.

You can pass a parameter or check to see if the FOCCACHE file exists to determine which to do.

Then in the report use dialog manager to handle what to do.

e.g.
-IF &HOLDEXISTS EQ 'YES' THEN GOTO SHOW_RPT ;

{Extract part}

-SHOW_RPT

{Report part}



You may have to FILEDEF the hold file in the report part.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report 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] csv from a drill down report

Copyright © 1996-2020 Information Builders