JasperPluginRMI OUTPUT_FORMAT deprecated

Hi Folks

Using the great new Servoy 6.1.2

Appreciate any help as I am getting a warning that “The Property OUTPUT_FORMAT.PDF is deprecated”. Cannot find any notes on what I should be doing to correct this.
My code is:

//Compile the jasper report
plugins.jasperPluginRMI.compileReport(vForm)
//Run the jasper report
plugins.jasperPluginRMI.runReport(fs, vForm, vFFile, OUTPUT_FORMAT.PDF,null);

In 6.1, you need to prefix the constant with the plugin name, so use:
plugins.jasperPluginRMI.OUTPUT_FORMAT.PDF

Hi Patrick
Thanks. all solved now.
Do you know if there is a list of things to do and know when upgrading to 6.1 :?:
I’m finding a number of things as I go along, and it’s been a bit frustrating.

here is the whole list: http://wiki.servoy.com/display/public/D … is+release

under Behavior Changes:

Subtypes of plugins (for example JSFile of the file plugin) must now be prefixed with their plugin name when used in JSDoc for typing, to prevent clashes between different plugins having sub types using the same name. Example: use @type {plugins.file.JSFile} instead of @type {JSFile}

Thanks Harjo. Found it.

I’m confusing… I have this code:

plugins.jasperPluginRMI.runReport(fs, fileName, null, plugins.jasperPluginRMI.OUTPUT_FORMAT.VIEW, null);

but I receive (in v6.1.3) this warning:

The property VIEW is undefined in plugins.jasperPluginRMI.OUTPUT_FORMAT

What’s wrong?

juan.cristobo:
I’m confusing… I have this code:

plugins.jasperPluginRMI.runReport(fs, fileName, null, plugins.jasperPluginRMI.OUTPUT_FORMAT.VIEW, null);

but I receive (in v6.1.3) this warning:

The property VIEW is undefined in plugins.jasperPluginRMI.OUTPUT_FORMAT

What’s wrong?

Juan, this problem is not a problem with the plugin. This problem has been fixed in the next public release of Servoy 6.1.x.

Regards,
Andrei

OK, thanks, Andrei