Hi Forum,
I am trying to apply this post from Thomas (http://www.on-reporting.com/blog/kil...orting-slowly/), most specifically the jndiConnectionProvider part.
I declared two datasources in my prpt file Foo and Bar.
On the Global Scripting tab, I select ECMAScript and then hit templates, then within the init function apply the following code
When running the preview mode in Pentaho Report Designer it works fine, when running it from within a Pentaho BI Server instance it keeps failing with the following messages in the log trace
I suspect that dataFactory.getConnectionProvider() is returning me something it should not (null/empty?) but I don't see what's wrong I am doing here.
Anyone has an idea ?
--
YGuenane
I am trying to apply this post from Thomas (http://www.on-reporting.com/blog/kil...orting-slowly/), most specifically the jndiConnectionProvider part.
I declared two datasources in my prpt file Foo and Bar.
On the Global Scripting tab, I select ECMAScript and then hit templates, then within the init function apply the following code
Code:
var jndiConnectionProvider = dataFactory.getConnectionProvider();
var conn = dataRow.get("jndiConnection");
jndiConnectionProvider.setConnectionPath(conn);
Code:
Caused by: sun.org.mozilla.javascript.EcmaError: TypeError: Cannot find function setConnectionPath in object org.pentaho.reporting.platform.plugin.connection.PentahoJndiDatasourceConnectionProvider@6ca248f3.
Anyone has an idea ?
--
YGuenane