#26 2019-04-19 13:34:25

Patryx
Member
Registered: 2019-03-25
Posts: 42

Re: Additional Report Executors - the example doesn't work

Hi,
In the new version 3.0.6-6007 the example with EXPORT stll doesn't work (no new button is shown)
...

P.S. I didn't change database to new one but I don't think it is connected (I have database from version: 3.0.6-6006)

Last edited by Patryx (2019-04-19 13:37:45)

Offline

#27 Yesterday 08:19:12

eduardo
Administrator
Registered: 2016-11-01
Posts: 1,079
Website

Re: Additional Report Executors - the example doesn't work

Hi Patryx,

I just tested again and in my case it works. I noticed a small error (two missing imports) in the script here, though: https://reportserver.net/en/guides/scri … Executors/
We already corrected the documentation and tested again with the exact code found here: https://reportserver.net/en/guides/scri … Executors/

With this configuration, I see the button in the export list if I open my report by url. The url is: http:...#inlinereport/id:2078898
I see the following:

FluxBB BBCode-Test

Please check again with the exact code in our documentation and restart your reportserver after putting the files in onstartup.d and onlogin.d respectively. Please test with a dynamic list and let me know.

Patryx wrote:

P.S. I didn't change database to new one but I don't think it is connected (I have database from version: 3.0.6-6006)

ReportServer upgrades the database automatically if needed, so you don't need to do anything here. In this case, though, the database is the same as with 3.0.6-6006.

Regards,
Eduardo

Offline

#28 Today 11:29:33

Patryx
Member
Registered: 2019-03-25
Posts: 42

Re: Additional Report Executors - the example doesn't work

Hi Eduardo,
Still there is no button. According to your documentation:

import net.datenwerke.rs.base.client.reportengines.table.dto.decorator.TableReportDtoDec

/* obtain ClientExtensionService */
def ces = GLOBALS.services['clientExtensionService']

/* register format */
ces.addReportExportOutputFormat new TableReportDtoDec(), "My Format", "MY_CUSTOM_FORMAT", ""

""

What does it mean "" in last line - it looks strange?
I cannot find what every argument means for calling addReportExportOutputFormat.

Last edited by Patryx (Today 11:30:13)

Offline

#29 Today 13:48:30

eduardo
Administrator
Registered: 2016-11-01
Posts: 1,079
Website

Re: Additional Report Executors - the example doesn't work

Hi Patryx,

strange. Are you using the exact code in the documentation including this last line ("") and everything else?

The "" is the return value: https://reportserver.net/en/guides/scri … ng-Scripts

The method addReportExportOutputFormat is from the net.datenwerke.rs.scripting.service.scripting.scriptservices.ClientExtensionService class:
public void addReportExportOutputFormat(ReportDto reportType, String title,
            String outputFormat, String icon)

Can you post some screenshots showing your exact configuration, your scripts and the output? Did you check the logs for any error ?

Regards,
Eduardo

Offline

#30 Today 13:53:18

Patryx
Member
Registered: 2019-03-25
Posts: 42

Re: Additional Report Executors - the example doesn't work

You wrote Eduardo:
public void addReportExportOutputFormat(ReportDto reportType, String title,
            String outputFormat, String icon)

You missed in documentation brackets for addReportExportOutputFormat() and according to the method there are 4 arguments, in the example are 5 ("" as the last one) smile
Unfortunately beside such correction it still doesn't work...

Last edited by Patryx (Today 13:54:45)

Offline

#31 Today 14:02:06

eduardo
Administrator
Registered: 2016-11-01
Posts: 1,079
Website

Re: Additional Report Executors - the example doesn't work

Hi Patryx,

the method has 4 arguments:
ReportDto reportType, String title, String outputFormat, String icon

so we give 4 arguments to the method:
1: new TableReportDtoDec(), 2: "My Format", 3: "MY_CUSTOM_FORMAT", 4: ""

The last line ("") as I mentioned, is the return value of the script: https://reportserver.net/en/guides/scri … ng-Scripts

Regarding the brackets (I suppose you mean parenthesis): groovy doesn't need parenthesis in this case, so this is valid:
ces.addReportExportOutputFormat new TableReportDtoDec(), "My Format", "MY_CUSTOM_FORMAT", ""

Regards,
Eduardo

Offline

Board footer

Powered by FluxBB