Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The MQL Preview button allows the user to preview the data that will be returned from the MQL Query. For preview to work, the JDBC driver jar file for the database you are trying to use must be in the plugin classpath. At To add a new JDBC driver to your plugin classpath, the jar follow these steps:

  1. The driver jar for your RDBMS should be dropped into the <eclipse_install_directory>/plugins/org.pentaho.designstudio.editors.actionsequence_x.x.x/

...

  1. lib directory.

...

  1. Next edit, <eclipse_install_directory>/plugins/org.pentaho.designstudio.editors.actionsequence_x.x.x/META-INF/MANIFEST.MF and add your

...

  1. driver jar name and location to the bundle classpath. The entry may look like this:
    lib/mydriverjar,
  2. Note that if you are modifying an existing Pentaho action sequence plugin already deployed and used in Eclipse, you may need to remove the plugin, start and stop Eclipse, re-deploy the plugin and make the necessary driver changes BEFORE starting Eclipse again. It seems there are some caching issues in Eclipse that prevents Eclipse from recognizing the MANIFEST file changes if the action sequence plugin was used previously.

If the metadata model that the query is run against uses a JNDI connection definition (a named JNDI datasource), then you must modify the simple-jndi settings in your pentaho-solutions project to include the JNDI name that your model references.

  1. Navigate in your pentaho-solutions to the pentaho-solutions/system/simple-jndi/jdbc.properties. Open this file, and following hte format you see there for a database connection definition, add your JNDI connection information.

Once this is done MQL queries can be previewed.