Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Logging queries for filling the parameter screen
AnnaB
Hi,<br />
<br />
I'm trying to track the queries in my reports. For "data" queries I can use this in the beforeOpen():<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
logger = Packages.org.apache.log4j.Logger.getLogger(vars["loggerName"]);
logger.debug(this.getName());
logger.debug(this.queryText);</pre>
<br />
This will make them show up in the log, no problem.<br />
<br />
However, I have a couple of data sets ("filters") which I only use to fill parameter dropdown lists. They aren't logged by this method. Does anyone know how I can track these?
Find more posts tagged with
Comments
mwilliams
For reports with parameter dataSets, you could possibly do something like this in your beforeFactory to grab the query text:
reportContext.getDesignHandle().findDataSet("DataSetName").getStringProperty("queryText");