[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.birt] Re: How to avoid caching in BIRT 2.2.1

Rich,

reportContext is a global. That script was placed in the beforeFactory of the report design.

Jason

Rich Court wrote:
Hi,

I'm wondering in the example code that you are using, where / when do you get the reportContext?

Could you show me a few lines of code where you are using this?

Thanks,

-Rich


Paco wrote:
Hi Jason,
Thank you very much, your answer solved my problem.

Thanks again.


<snip>


var dshandle = reportContext.getReportRunnable().designHandle.getDesignHandle().findDataSet("Data Set");


ReportEngineService.getInstance().clearCache( dshandle );

//appcon = reportContext.getAppContext();

//appcon.put("org.eclipse.birt.data.cache.RowLimit", "12");


Use the last two lines if you want to set it.

Jason