3 Replies Latest reply: Mar 29, 2013 2:05 PM by Sashank Pappu RSS

    Passing attribute in dvt:lineGraph

    767951
      is it possible to pass f:attribute values within a graph

      Eg.
                            <dvt:lineGraph id="NCLChart" subType="LINE_VERT_ABS">
                              <dvt:background>
                                <dvt:specialEffects/>
                              </dvt:background>
                              <dvt:graphPlotArea/>
                              <dvt:seriesSet>
                                <dvt:series/>
                              </dvt:seriesSet>
                              <dvt:o1Axis/>
                              <dvt:y1Axis/>
                              <dvt:legendArea automaticPlacement="AP_NEVER"/>
                              <dvt:legendTitle text="Legend Title"/>
                              <dvt:graphFootnote text="Footnote"/>
                              <dvt:graphSubtitle text="Subtitle"/>
                              <dvt:graphTitle text="Title"/>
                              <dvt:o1Title text="O1-Axis Title"/>
                              <dvt:y1Title text="Y1-Axis Title"/>
                              <f:attribute name="portItemCode" value="PORT_NCL"/>
                              <f:attribute name="portItemName" value="NCL"/>
                            </dvt:lineGraph>
      the JDeveloper IDE is giving an error saying "Attribute is not a valid child of a line element. The 'short desc' attribute should be set and non-empty'

      Any idea on this one? I have to pass the above attributes to the back end bean from this Graph. what is another way of doing this?

      Edited by: sjaffer on Apr 26, 2010 1:38 PM
        • 1. Re: Passing attribute in dvt:lineGraph
          hasim
          Yes it is possible , bind the variable to pageFlowScope.

          <f:attribute name="portItemCode" value="#{pageFlowScope.portitemcode}"/>

          In managed bean write code something like this that will dynamically take the value.

          PageFlowScope pf = (PageFlowScope)afctx.getPageFlowScope();
          pf.put("portitemcode", "PORT_NCL");

          Hope it hepls , once resolved please mark properly.


          Thanks,
          Hasim
          • 2. Re: Passing attribute in dvt:lineGraph
            767951
            Thanks for the reply Hasim,

            sorry for this incomplete post, here is my complete scenario. I have drop-downs on the page. the partialTrigger is set to one of the drop-downs on the graph. I have a binding component to the graph from the bean. there are multiple graphs on the same page and all bound to a UIComponent. the attribute values are specific to the graph that gets updated after the drop-down value is changed. I have achieved this using Trinidad. I am trying to migrate to ADF and when I add the f:attribute line within the dvt:lineGraph, f: here is http://java.sun.com/jsf/core.
            • 3. Re: Passing attribute in dvt:lineGraph
              Sashank Pappu
              Hi ,

              Can you please let me know how did u do it with Triandad . And is their any possility to send values dynamically (Eg: based on checkbox or something of that kind a query needs to be executed and should display the dynamic graph ).

              Thank you,
              Sashank P