This discussion is archived
4 Replies Latest reply: Jul 3, 2009 12:53 AM by 667016 RSS

Using EL expression to define data item for a chart

145158 Newbie
Currently Being Moderated
I have a pie chart based on a ViewObject Data control. The pie chart is displaying the value of a predefined column, called Completed in the example below.
<graph IterBinding="ProjectsViewIterator" id="ProjectsView2"
       xmlns="" type="PIE">
  <graphDataMap leafOnly="true">
      <item value="Material"/>
        <item value="Completed"/>
I would like to replace the constant name Completed with an EL expression, for example #{}, where column is a request scope bean and name is a property. In other word, I would like to dynamically define, which column's value to display in the chart.

When trying this, on the page I get "No data to display", and the following exception:
     at oracle.adf.model.dvt.binding.transform.Utils.validateDataType(
     at oracle.adf.model.dvt.binding.transform.TransformRowIterator.validateDataType(
     at oracle.adf.model.dvt.binding.transform.TransformRowIterator.getCell(
     at oracle.dss.util.transform.DataTable.getCell(
     at oracle.dss.util.transform.DataTable.processCurrentRow(
     at oracle.dss.util.transform.DataTable.processProjection(
     at oracle.dss.util.transform.DataTable.<init>(
     at oracle.dss.util.transform.ResultTable.<init>(
Is there any way to achieve this, i.e. dynamically define the data item name?



  • Correct Answers - 10 points
  • Helpful Answers - 5 points