Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
How to Swap out Data Sets at runtime
cjnoyes
I would like to swap data sets at run time, dependent on whether certain parameters are presented. I can code this in an init handler. I have seen some examples, but the big issue is joined datasets. I would need to swap out one of the referenced datasets from the joined dataset, with the assumption that it both queries are similar and compatible
Find more posts tagged with
Comments
vinnar
Using a 'beforeFactory' script to call one dataset or the other conditionally could be useful?<br />
Like - <br />
<br />
if (BirtComp.notEqual(params["Condition1"], true )) {<br />
datasetTable = reportContext.getReportRunnable().designHandle.getDesignHandle().findElement("Certificate");<br />
datasetTable.setProperty( "dataSet", "cert-N" ); <br />
}<br />
<br />
<br />
<br />
<blockquote class='ipsBlockquote' data-author="'cjnoyes'" data-cid="98514" data-time="1333463689" data-date="03 April 2012 - 07:34 AM"><p>
I would like to swap data sets at run time, dependent on whether certain parameters are presented. I can code this in an init handler. I have seen some examples, but the big issue is joined datasets. I would need to swap out one of the referenced datasets from the joined dataset, with the assumption that it both queries are similar and compatible<br /></p></blockquote>