I am trying to move the reports I’ve generated from our development environment to a testing environment by exporting the reports and sending those files to the testers, who will then import them. The database names are different, though, so the SQL statements throughout the report must be altered once for testing, and then again when moved into full production. Is there a way to query the “Additional data stores” (found in Project Properties -> Advanced) instead of a local database with SQL?
You can pass the additional storename as parameter to persistence methods (createTransaction; getEntityManager).
For example the groovy script may look like this: