Discussion
CBA
AU
Last activity: 4 Oct 2018 11:08 EDT
Export to Excel grid with report definition as a source
Hi,
I am displaying a grid with source as Report definition. Now I want export these diplayed results to Excel on click of some button.
Is there anyway to do it?
Thanks,
Gireesh.
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
IN
could you please refer Rule-Obj-HTML.ViewExportToExcel with the following 'Pass current page parameters'
ViewType (Rule-Obj-Report-Definition)
HeadersPageName (RDHeader)
DataPageName (The Result Page)
reportRunMode (empty)
fileLocation (empty)
ViewClass(RD in class)
ViewPurpose (RD rule name)
pyViewPageName(RDHeader)
pyContentPage(same as DataPageName)
ExportExecuteReport (true)
please note: the above parameters are referenced when exporting results to excel from ListView rule.
you may also refer:
could you please refer Rule-Obj-HTML.ViewExportToExcel with the following 'Pass current page parameters'
ViewType (Rule-Obj-Report-Definition)
HeadersPageName (RDHeader)
DataPageName (The Result Page)
reportRunMode (empty)
fileLocation (empty)
ViewClass(RD in class)
ViewPurpose (RD rule name)
pyViewPageName(RDHeader)
pyContentPage(same as DataPageName)
ExportExecuteReport (true)
please note: the above parameters are referenced when exporting results to excel from ListView rule.
you may also refer:
Wipro Ltd
AU
We can use "ShowExcelView" (with the above parameters) activity instead of ViewExportToExcel to build a table from the query results and send it to MS Excel but this works only for List View and Summary View report types but not Report Definitions.
Please share your thoughts to export to Excel with report definition (or data page) as a source.
Wipro Ltd
AU
Got the solution for exporting to Excel with report definition (or data page) as a source using OOTB activity pzDownloadDataRecordsAsCSV.
This activity can be referenced using pxConvertResultsToCSV activity
CBA
AU
Hi Kiran,
Tried solution provided by you, but nothing is downlloading. Called activity by passing required parameters through button click.
Thanks,
Gireesh.
Wipro Ltd
AU
Hi Gireesh, First try running the activity independtly without any button clicks and let me know.
I hope that are doing everything as mentioned in pzDownloadDataRecordsAsCSV activity i.e. loading the report defintion on a page first
CBA
AU
yeah loading RD on a page first. While running activity alone its downloading excel file in separate window. What I have to do to work it on button click.
Wipro Ltd
AU
Please refer to the following article for your issue (export to excel - on button click)
CBA
AU
Hi Kiran,
I got the excel downloaded through url. But where we need format the column headings, and if we want to format the date fields etc....... Could you please suggest how we can do this.
Thanks,
Gireesh.
Coforge
US
Hi Gireesh,
Were you able to find a solution to apply the formatting for the date fields? I am also facing the same issue with my export download. Thanks!
CAPGEMINI
US
Hi,
Call 'pzRDExportWrapper' through another wrapper activity on 'Open URL in New Winow' action on the page 'pyReportContentPage.pyReportDefinition' (Use the Page where ever you have the results of report) and pass 'excel' as parameter
Genpact
IN
This solution really worked in exporting data from Repeating Grid to excel on Click event of a button.But in the downloaded Excel Sheet filter condition is reflecting on the top of the sheet. Can you please suggest an alternative approach to avoid this filter condition on the top of the downloaded Excel sheet.
Pegasystems Inc.
IN
Pegasystems Inc.
US
@SaiPratyushaN2606 you can have a look into this discussion which might help you.
Pegasystems Inc.
US
@SaiPratyushaN2606 Please look into this article. Hope it helps.
https://collaborate.pega.com/discussion/regarding-pegacloud-test-configurations