Jasper Domain Query Language
2 15 mdx query mdx query is a language for querying multidimensional objects such as cubes and return cube data for analytical processing.
Jasper domain query language. Jasperserver user s guide 3accessing reports and analytics the user interface features four menu buttons. The scripting language for principalexpression is groovy. But ireport also gives you the facility to manually edit the query like you can with sql queries and other languages i d like to know more about what else you can specify in the query language xml. Few points to note down about domains in jasper server and domainreport in ireport.
Ireport has a domain query designer. The easiest way to write a query is using jaspersoft studio and selecting domain in the language dropdown top left corner of the dataset and query dialog indicated by the red arrow in the screenshot below from studio 6 4 0. A list of queryfields that refer to the presentation names in the domain. The same mechanism can be used to override the built in query executers for a query language for instance to use a custom query executer for sql queries.
Domain queries look like the xml below. Here are the series of steps to create a domain report from jasper ireport. The domain security file. Depending on the data policy the augmented sql with either be passed to the data source or jasperserver will perform a simpler query and apply the domel expressions to the full data set in memory.
To register a query executer factory for a query language you have to define a global property named net sf jasperreports query executer factory language in the src default jasperreports properties file. When building the report jasper creates a domain query in xml based on what fields and filters you ve chosen in the gui. Some of the strings in the properties files may not seem like english. When the query runs the domain security is active if you have defined it in the domain.
In this tutorial i m using ireport professional 5 1 0 jasper server 5 0 postgresql foodmart database. Security that is defined on the physical layer applies to all content in the presentation layer. You can use the domain query language though which offers a subset of the features of sql. When building the report jasper creates a domain query in xml based on what fields and filters you ve chosen in the gui.
When processing a report based on a domain jasperserver interprets domel expressions to generate parts of the sql expression that will perform the desired query. But ireport also gives you the facility to manually edit the query like you can with sql queries and other languages i d like to know more about what else you can specify in the query language xml. For more information refer to section 3 3 changing date and datetime formats on. These cases are typically date formats and format masks that may need to be edited for the new locale.