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
Developing Analytics Applications
Avoid automatic column binding in when creating charts
Migrateduser
<p>Hi,</p><p> </p><p>I am having a little problem creating a chart with the DE API. I'm trying to create a chart on the footer of a table group that is supposed to display the information shown in that particular group.</p><p> </p><p>The chart is placed in a ExtendedItemHandle and the x and y axis are created using the following piece of code:</p><p> </p><div><strong>Query xQuery = QueryImpl.create("row["Offset"]");</strong></div><div>Series seCategory = SeriesImpl.create();</div><div>seCategory.getDataDefinition().add(xQuery);</div><div>SeriesDefinition sdX = SeriesDefinitionImpl.create();</div><div>sdX.getSeries().add(seCategory);</div><div>xAxis.getSeriesDefinitions().add(sdX);</div><div> </div><div>I don't bind this container to any particular data set since I want the expressions <strong>row["XXXXX"] </strong>to be directly linked to the <strong>table column bindings. </strong>The column bindings in the table are mathematical transformations that I don't want to override. </div><p> </p><p>However when I render the report, the chart shows the values before the transformations. And when I inspected the XML in .rptdesign file I found the following lines have been added automatically within the extended item container:</p><p> </p><div> </div><div> <property name="inheritColumns">true</property></div><div> <property name="height">200pt</property></div><div> <property name="width">400pt</property></div><div> <list-property name="boundDataColumns"></div><div> <structure></div><div> <property name="name">Offset</property></div><div> <expression name="expression">dataSetRow["Offset"]</expression></div><div> </structure></div><div> <structure></div><div> <property name="name">RadialDisp</property></div><div> <expression name="expression">dataSetRow["RadialDisp"]</expression></div><div> </structure></div><div> </list-property></div><div> </extended-item></div><div> </div><div>This means that<strong> additional column bindings were created automatically for the container</strong>, overriding my transformations. How can I stop this from occurring? How can I <strong>explicitly specify that I want the chart to inherit the columns from the table?</strong> I have already made sure that its not me who is creating this additional bindings. Also when I erase these lines the charts show the information I was expecting. </div><div> </div><div>Thanks in advance!</div><div> </div><div>Maria </div>
Find more posts tagged with
Comments
There are no comments yet