Passing attribute in dvt:lineGraph

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

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.

Similar Messages

  • Error when rendering a page having a dvt:lineGraph

    I have a page containing a line graph with the following structure:
    <dvt:lineGraph id="trndgrp"
    tabularData="#{pageFlowScope.myBean.trendChartData}"
    dynamicResize="DYNAMIC_SIZE" imageFormat="HTML5" inlineStyle="border-width:0px;"
    threeDEffect="false"
    timeAxisType="TAT_IRREGULAR"
    timeRangeMode="TRM_EXPLICIT"
    timeAxisInterval="CTAI_MONTH"
    markerTooltipType="MTT_VALUES_TEXT">
    <dvt:timeAxisDateFormat quarterFormat="QUARTER_SHORT" yearFormat="YEAR_SHORT_WITH_APOSTROPHE" dayFormat="DAY_OF_MONTH" monthFormat="MONTH_SHORT"/>
    <dvt:o1Axis scrolling="on"/>
    <dvt:timeSelector mode="EXPLICIT"/>
    <dvt:y1Title text="#{pageFlowScope.myBean.currentDrillDown.uiName}"/>
    <dvt:seriesSet seriesMap="#{pageFlowScope.myBean.trendChartSeriesMap}"/>
    <dvt:legendArea rendered="false"/>
    <dvt:o1Title id="o1Title1"
    rendered="false"/>
    <dvt:y1TickLabel>
    <af:convertNumber integerOnly="true" maxFractionDigits="0"/>
    </dvt:y1TickLabel>
    </dvt:lineGraph>
    At runtime I get the following error:
    Caused by: oracle.jsp.parse.JspParseException:
    ....myBean.jsff: Line # 206, <dvt:lineGraph dynamicResize="DYNAMIC_SIZE" id="trndgrp" imageFormat="HTML5" inlineStyle="border-width:0px;" markerTooltipType="MTT_VALUES_TEXT" private_x1axismaxautoexist="false" private_x1axisminautoexist="false" tabularData="#{pageFlowScope.myBean.trendChartData}" threeDEffect="false" timeAxisInterval="CTAI_MONTH" timeAxisType="TAT_IRREGULAR" timeRangeMode="0">
    Error: "private_x1axismaxautoexist" is not a valid attribute name.
    at oracle.jsp.parse.OpenJspTagHandler.processAttributeValue(OpenJspTagHandler.java:378)
    at oracle.jsp.parse.JspParseTag.parseXMLSrc(JspParseTag.java:1565)
    at oracle.jsp.parse.JspParseTag.parse(JspParseTag.java:1610)
    at oracle.jsp.parse.OpenJspTagHandler.parse(OpenJspTagHandler.java:846)
    at oracle.jsp.parse.JspParseTag.genXMLSrcTag(JspParseTag.java:923)
    I use ADF 11.1.1.7.
    Any ideas on what can cause this error?

    Most probably you are using the wrong Jdev and keep in mind that 10G versions are only for R12.
    Check the metalink Note 416708.1 - How to find the correct version of JDeveloper to use with eBusiness Suite 11i or Release 12.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Could we change the marker's size in dvt:lineGraph?

    I am using Jdeveloper 11.1, my code is like this:
    <dvt:lineGraph id="facetcharlineGraph3" shortDesc="chart" subType="LINE_VERT_ABS" ......>
    <dvt:seriesSet defaultMarkerShape="MS_CIRCLE" defaultAssignedToY2="DY2_FALSE" markerDisplayed="true" lineDisplayed="false" >
    </dvt:seriesSet>
    </dvt:lineGraph>
    There is a way to set the line's width, do we have a way to set the Marker's size?
    I've done a lot of searching, someone mentioned "markerSize" , but there is no Attribute like this or similar.
    Thanks!

    Thanks for your “seems to”. I can read. Are you really an “Oracle ACE Director “?
    --dvt:series seems to have a markerSize attribute. Seems to, because markerSize is not listed in Attributes, but referred to in markerShape.
    --http://docs.oracle.com/cd/E21764_01/apirefs.1111/e12418/tagdoc/dvt_series.html                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Passing attributes between providers and portlets

    When using Providers, it is possible to pass session data between providers via ProviderContext.setSessionProperty. Is it possible to pass attributes from a provider to a portlet? Anything set on the ProviderContext does not seem to get propagated to the portlet via PortletSession.getAttribute(). Similarly the attributes set on the provider's request object to not seem to be propagated to the PortletRequest.

    My understanding is that Providers are the Sun proprietary portal technology, predating JSR 168 and Portlets.
    You can use Portlets to implement leaf channels ... but you must still write Providers if you want to fiddle with containers.

  • How to pass attribute values through variables in JSP  Custom TagLib

    Hi,
    Can anybody help me how to pass values through varuables in the jsp custom tag.
    i am using JSP custom tag. I am unable to pass attribute values through variables.
    <invitation:invdetails invid="<%=invid%>"/> The value is passing as <%=invid%> ,not value of the invid.
    But i am getting throuh the fllowing
    <invitation:invdetails invid='1' />
    Please anybody suggest me how to pass value by using the variable.

    Hi,
    It sounds like you need to set the <rtexprvalue> tag to true in the TLD for your tag. If you do this the tag will read in the value you are trying to pass to it.
    dapanther...

  • Dvt:linegraph: series color problem.

    hi all,
    i am using dvt:lineGraph to show data of use account.now account are of two type saving and current.now on y axis i am grouping balance and account type and on x-axis transaction date.
    one user can have multiple saving or current account.
    problem is :
    when particular user hav say 2 current and 1 saving acc.now 3 line get plotted safely but with 3 different color .what i want is 2 current acc's lines sould hav same color.
    i tries using EL..but i am not able to find the account type for the particular series...
    anybody hav any suggestions...:(:(
    thanks
    Dhiraj

    hi ,
    any help??...:(

  • Cant pass attributes in request

    I'm trying to pass attribute to jsp in my JSPProvider -
    Vector list = new Vector();
    list.add(new MyUser("Name1"));
    req.setAttribute("list",list);
    where MyUser is a simple class -
    package custom;
    public class MyUser {
    private String name;
    public MyUser(String name) {
    this.name = name;
    when i'm trying to extract attribute in jsp -
    Vector list = (Vector) request.getAttribute("list");
    for(int i=0;i<list.size;i++)
    MyUser myuser = (MyUser) list.get(i); ---exception occured here - ClassCastException.
    if i write in jsp
    Object o = list.get(i);
    out.println(o.toString());
    the output is - custom.MyUser@3af4b3
    what is the matter???

    even tough you made a workaround for your problem i
    still find it very strange the getParameterValues
    returns a String and not a String arrayHi pgeuens,
    You were right. when i am passing the array from the first jsp its getting passed an a comma separated list. though i have declared the variable as an array. in the first jsp if i access the array element wise it gives the correct output but when i just give the variable name without giving the element id i simply get a comma separated list. i dont know why that is happening. can you suggest something

  • Formatting dvt:linegraph axes

    I'm having a little trouble fine tuning the formatting on my dvt:linegraph
    I would like the y axis to only display integer values, but the default major increment lines are being set every .5
    In other words, the graph data range is from 0 to 5, and the lines are set at .5, 1, 1.5, etc. My values are only in whole numbers, so this doesn't make sense.
    However, if I change the y1 tick label to show
                            <dvt:y1TickLabel autoPrecision="off">
                              <af:convertNumber type="number" maxFractionDigits="0"/>
                            </dvt:y1TickLabel>then it only modifies the value by rounding it, leaving me with 1, 2, 2, 3, 4, 4, etc
    If I specify
                            <dvt:y1Axis minorIncrement="1.0" majorIncrement="1.0"/>It comes out great, but I hate hard coding the major increment like that when the graph has the potential for a greater range. Something like 5 - 30 isn't unreasonable, and a major increment of 1 would make that graph pretty crowded.
    Does anyone have some ideas on how I can achieve this look using more generic settings?
    Thanks

    hi ,
    any help??...:(

  • Passing attribute value in session variable

    Hi All
    I need to store one field value from my SIM form as a session variable and pass them to the next page along with my session, using some jscript stuff or else. Does this make sense?
    If it is possible or anyone have any prior experience please reply.
    Thanks in advance

    We have tested a code-snippet that 'gets' attribute-values from the session:
    <invoke name='getAttribute'>
        <invoke name='getHttpSession'>
            <ref>:display.state</ref>
        </invoke>
        <s>attribute_name</s>
    </invoke>You can try 'setAttribute' in the similar way.
    Thanks,
    Adi

  • XI 7.0 passing attributes between java mapping and message mapping

    Hi all,
    Here's a newbie question. There is a scenario where an interface mapping has several stages of java mapping and message mapping
    I would like to know how to set attributes in the java mapping so that it can be accessed in a message map (or vice versa). What I intend to do is pass some information from one mapping to the other so that action can be taken based on the values passed.
    Thank you!

    Another option is storing the values in the message header in the same way as the Adapter-Specific Message Attributes:
    http://help.sap.com/saphelp_nw04/helpdata/en/43/09b16006526e72e10000000a422035/frameset.htm
    Just use your own name/namespace combination, which is not used in any adapter.
    If possible use the way that Sandro proposed and add the information which you need to additional tags in the payload.
    Regards
    Stefan

  • How to pass attribute of type java.util.ArrayList Property to a Tag

    How do I pass an attribute of type, java.util.ArrayList<my.entity.Property> to a Tag implementation class?
    Please advise!
    Thanks,
    Joe
    package my.tags;
    import java.io.IOException;
    import java.util.ArrayList;
    import javax.servlet.jsp.tagext.SimpleTagSupport;
    import javax.servlet.jsp.JspException;
    import my.entity.Property;
    public class PropertiesTag extends SimpleTagSupport {
        private ArrayList<Property> properties;
        public void setProperties(ArrayList<Property> properties) {
              this.properties = properties;
         public void doTag() throws JspException, IOException {
    <?xml version="1.0" encoding="utf-8" ?>
    <taglib ...>
         <tag>
              <name>propertiesTag</name>
              <tag-class>my.tags.PropertiesTag</tag-class>
              <body-content>empty</body-content>
              <description>Displays the product selection left menu</description>
              <attribute>
                   <name>properties</name>
                   <required>true</required>
                   <rtexprvalue>true</rtexprvalue>
                   <type>java.util.ArrayList<my.entity.Property></type>
              </attribute>
         </tag>
    </taglib>Here's the error message:
    org.xml.sax.SAXParseException: The element type "my.entity.Property" must be terminated by the matching end-tag "</my.entity.Property>".

    802826 wrote:
    How do I pass an attribute of type, java.util.ArrayList<my.entity.Property> to a Tag implementation class?
    Please advise!
    As already pointed out, there is no way to specify a generic type in a tag library descriptor. You may however specify an Object type in your tld and still have the variable in your tag as a parameterized generic type.
    In your tld change the type to Object.
    <type>java.lang.Object</type>.
    The properties tag itself needs no change and can continue to use parameterized types.
    cheers,
    ram.

  • Java EXE - Passing Attributes

    Hi,
    I have a java application that performs many functions. I have compiled this application into an exe file. I would like to automate things.
    E.g. using Windows Scheduler to run the app at 2am - execute function1, 4am - execute funtion2. etc..
    Is it possible to pass an attribute to the exe when executing so that the function can be executed automatically.
    At the moment, I am creating 5 different exe files, each one is essentially the same application, but starts at different functions. I would therefore like to simplify this into one app.
    Thanks in advance
    Regards
    Angus

    I am not sure what tool you are using to generate your exe from your java byte code, but i would assume that it would pass variables given with the exe to the java program and as such you can just extract the variable from the args[] string array in your main method.
    i.e.
    "program.exe -func1"
    passes it to your public static void main (String args[])
    so just get the variable from the args array.
    As i have said, since i dont know how your java -> exe tool works this is just a suggestion.

  • CRM_IC: Passing Attribute values between classes

    Hi,
    I'm working on CRM_IC Inbox Enhancements module and facing a problem passing values from one class to another.
    Can any one let me know how can i access the value of an attribute declared and changed in one class can be used and accessed in another class.
    Thanks in advance
    Ajay Yeluguri

    Hi Thirumala,
    Thanks for the answer.
    I'm new to this CRM development and trying what you said but getting errors when executed
    Please check the code and let me know if any changes
    <b>In the first class:</b>
      DATA: lr_bdc TYPE REF TO cl_crm_ic_cucobdc_impl.
       lr_bdc ?= lr_bdc->get_custom_controller( 'CuCoBDC' ).
       lr_bdc->set_navigation_data(
                    iv_source_view_name  = 'testdata' ).
    <b>In the next class:</b>
    DATA: lr_bdc             TYPE REF TO cl_crm_ic_cucobdc_impl,
          lv_bp_number       TYPE string,
          lr_selected_object TYPE REF TO if_bol_bo_property_access.
      lr_bdc ?= lr_bdc->get_custom_controller( 'CuCoBDC' ).
        CALL METHOD lr_bdc->get_navigation_data
          IMPORTING
            ev_selected_object = lr_selected_object.
    Thanks
    Ajay

  • How to get value of x-axis in dvt:lineGraph ?

    Hi,
    Could anyone answer how to get x-axis value(its a date value) of lineGraph.
    Even seriesComponenthandle and GroupComponenthandle cant able to fetch the x axis value.
    I have already tried with below code.
    ComponentHandle handle = clickEvent.getComponentHandle();
    if(handle instanceof DataComponentHandle){
    DataComponentHandle dhandle=(DataComponentHandle)handle;
    System.out.println("value ="+dhandle.getValue(DataComponentHandle.UNFORMATTED_VALUE));
    if(handle instanceof DataComponentHandle){
    Attributes[] groupinfo=dhandle.getGroupAttributes();
    String groupdata="";
    if(groupinfo != null){
    for(Attributes attrs: groupinfo){
    System.out.println("Group id VALUE ="+attrs.getValue(Attributes.ID_VALUE));
    System.out.println("Group LABEL_VALUE ="+attrs.getValue(Attributes.LABEL_VALUE));
    String seriesdata="";
    Attributes[] seriesinfo=dhandle.getSeriesAttributes();
    if(seriesinfo != null){
    for(Attributes attrs: seriesinfo){
    System.out.println("ID_VALUE ="+attrs.getValue(Attributes.ID_ATTRIBUTE));
    System.out.println("ID_VALUE ="+attrs.getValue(Attributes.ID_VALUE));
    System.out.println("LABEL_VALUE ="+attrs.getValue(Attributes.LABEL_ATTRIBUTE));
    System.out.println("LABEL_VALUE ="+attrs.getValue(Attributes.LABEL_VALUE));
    Sometimes dhandle.getValue(DataComponentHandle.UNFORMATTED_VALUE)) is showing the x axis date value , but some times it is showing the no of records found
    Edited by: user4428949 on Feb 22, 2012 5:20 AM

    hi,
    I also have requirement to get the value of x axis which is date.
    However for me handle is always an instance of SeriesComponentHandle. if I typecast to
    SeriesCompoenentHandle shandle = (SeriesComponentHandle)handle
    then I am not able to get groupAttributes.
    How can I get groupAttributes or when the handle will be instance of DataComponentHandle?
    Thanks,
    Vandana

  • Passing Attribute in Request Dispatcher

    Hi,
    I am using servlet#1 to pass the value of an Attribute to servlet#2
    servlet #1 code
    ServletContext sc = getServletContext();
    request.setAttribute("name",value);
    RequestDispatcher rd = sc.getRequestDispatcher(url);
    rd.forward(request, response);
    servlet #2 code
    ServletContext sc = getServletContext();
    String string = (String) sc.getAttribute("name");
    when I run servlet #1 request dispatcher forwards request and response to servlet #2 but the Attribute value is not passed along
    what am I missing ?
    thanks VERY much for your response in advance and past responses !!
    Rick

    Hi rickdd,
    In servlet #2 you should get the value from
    servlet's Request object rather than ServletContext,
    because parameter is set with Request Object not with
    ServletContext.
    So modifiy the code as given below...
         /* Parameter is passed with servlet's Request Object.
          * So Next line needs to be commented.
         //ServletContext sc = getServletContext();
         //Here get the value from servlet's Request Object
         String string = request.getAttribute("name");
       This will work.
    Regards
    Goodieguy

Maybe you are looking for