Evaluating an expression in custom report item

View: New views
1 Messages — Rating Filter:   Alert me  

Evaluating an expression in custom report item

by sforbes :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hey,

I've built a custom report item and I'd like to evaluate an expression when generating my content but I can't figure out how to if the report item isn't embedded in a data set.
If my item is embedded in a data set then I can use 'Object IRowSet.evaluate(String)' on the row set that's passed to my 'Object IReportItemPresentation.onRowSets(IRowSet[])' method, but can someone please help me figure out where I get a reference to an ExecutionContext to evaluate the expression when not in a data set.

Cheers,
Shaun.

PS. I'm still using 2.2, but happy to bring forward the migration to 2.3 if there's something available there to help.

PPS. The main reason is so the designer can set properties on my item using report parameters, using something like "params['reportParameterName']" as the expression, but of course I'd like to support any expression.

_______________________________________________
birt-report-engine-dev mailing list
birt-report-engine-dev@...
https://dev.eclipse.org/mailman/listinfo/birt-report-engine-dev