Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
Datasource: change source
Migrateduser
I use BIRT 3.7.2. While designing reports we use XML Datasource connection with XML file.
Using java I need to change source from xml file to data from parameter. Actually in designing time it easy: put in Property Binding:
params["param1"].value
How to do it in run time:
What I found:
Expression expression = new Expression("params['param1'].value", ExpressionType.JAVASCRIPT);
PropertyBinding binding = new PropertyBinding();
binding.setExpressionProperty("FILELIST", expression);
binding.setID(myDatasourceHandle.getID());
designHandle.getModule().getPropertyBindings(myDatasourceHandle.getElement()).add(binding);
It doesnt work. Help me!
Find more posts tagged with
Comments
There are no comments yet