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
Setting MarkerLine by script (source from db)
Migrateduser
<p>Hello,</p><p>I would like to set 2 MarkerLines dynamically. The one has its value from parameter (and I was able to do it by myself. See attachment) but the second has source from Data in table (in Grid..) ... and I have no idea how to write properly handling of this situation..</p><p> </p><p>Do anyone could help me to set MarkerLine value(label - "valFromTable")? Please look at attachment.</p><p> </p><p> </p><p>It is code for setting MarkerLine in chart - onRender</p><pre class="_prettyXprint">importPackage(Packages.org.eclipse.birt.chart.model.component.impl);importPackage(Packages.org.eclipse.birt.chart.model.data.impl);importPackage(Packages.org.eclipse.birt.chart.model.attribute);importPackage(Packages.org.eclipse.birt.chart.model.attribute.impl);importPackage(Packages.org.eclipse.birt.chart.util);function beforeDrawMarkerLine( axis, markerLine, icsc ){if(markerLine.getLabel().getCaption().getValue() == "paramValue") { var cdt = icsc.getExternalContext().getScriptable().getParameterValue("paramValue"); markerLine.setValue(NumberDataElementImpl.create(cdt)); markerLine.getLabel().getCaption().setValue("param val: " + cdt); }}</pre><p>Best regards,</p><p>minthril</p><p> </p>
Find more posts tagged with
Comments
There are no comments yet