DVT Graph - setting tooltip dynamically.

Hello,
How can I set tooltip for a graph in java class?
I know setting tooltip in ".jsp" but I need to set it in java class.
Thanks,
Mina

Hi Sumit,
It worked creating the graph programmatically using the code below.
Thanks for your help.
Eduardo
Vector graphs = new Vector();
OAGraphTableBean graphTable = (OAGraphTableBean)webBean;
     Dictionary graphBarDetails = new ArrayMap(10);
graphBarDetails.put("AGRFUNCTION", "none");
graphBarDetails.put("GRAPHTYPE", "vertical clustered bar");
graphBarDetails.put("GRAPHTITLE", "Cost Bar Graph");
graphBarDetails.put("YAXISLABEL", "Allocation Amount");
graphBarDetails.put("GRAPHSIZE", "medium");
graphBarDetails.put("CUSTGRAPHWIDTH", "");
graphBarDetails.put("CUSTGRAPHHEIGHT", "");
graphBarDetails.put("DISPLAYTOOLTIP", BooleanUtils.getBoolean(true));
graphBarDetails.put("XAXISLABEL", "");
graphBarDetails.put("DRILLDOWNURL", "");
graphBarDetails.put(DISPLAYED, BooleanUtils.getBoolean(true));
Vector graphCols = new Vector();
for(int j=0; j<2; j++) {
Dictionary graphData = new ArrayMap(5);
graphData.put("VIEWUSAGENAME", pViewUsage);
if(j ==0) {
graphData.put("VIEWATTRIBUTENAME", "AllocatedAmount");
graphData.put("GRAPHDATASTYLE", "data");
graphData.put("GRAPHDATAPROMPT", "Allocation Amount");
else {
graphData.put("VIEWATTRIBUTENAME", "AllocName");
graphData.put("GRAPHDATASTYLE", "groupLabels");
graphData.put("GRAPHDATAPROMPT","");
graphData.put("GRAPHSTOCKVALUE","none");
graphCols.addElement(graphData);
graphBarDetails.put("GRAPHDATACOLS", graphCols);
graphs.addElement(graphBarDetails);
graphTable.setGraphDetails(graphs);

Similar Messages

  • Bug in dvt:graph tag? Cannot set graphType attribute using EL expression

    Dear all,
    First thing sorry if this is not the correct forum, but I have a problem that is driving me crazy with ADF DVT tags in JDeveloper environment.
    I'm working with DVT tags to display some graphs in my application. I need to decide at runtime the type of graph I'm going to render in my page, because the type of graph is stored in a database. Also, I use tabular data instead of Data controls, because I have to reuse POJO objects from an existing model tier.
    I have seen that you can bind the graphType attribute of <dvt:graph to a backing bean property, as explained in : http://www.oracle.com/technology/products/jdev/11/how-tos/dvt_how_tos/adf_dvt_graph_howto.html. You can even change the type dynamically responding to user actions, ie : you can change for example from BARS to AREAS or whathever. So far so good, the problem is that I have tried the simplest example possible and it seems that I cannot bind the graphType attribute to a backing bean property using an EL expression.
    In my example, the backing bean has a type property with fixed value AREA_VERT_ABS, but it renders as a BAR_VERT_CUST, that is to say, it completely ignores the binding for the graphType attribute, but the binding for the tabularData attribute works properly because it renders the dummy data provided. I have tried with other types of graphic and it always renders as BAR_VERT_CUST.
    I'm working with JSF 1.2 + Facelets + JDeveloper 11.1.1.2.0 and the integrated weblogic server.
    My page is a facelet page as follows :
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <f:view xmlns="http://www.w3.org/1999/xhtml"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:dvt="http://xmlns.oracle.com/dss/trinidad/faces">
    <af:document id="d1">
    <af:form id="f1">
    <dvt:graph id="g1" graphType="#{graphBean.type}" tabularData="#{graphBean.tabularData}" >
    </dvt:graph>
    </af:form>
    </af:document>
    </f:view>
    My backing bean :
    public class GraphBean {
    private String type = "AREA_VERT_ABS";
    public GraphBean() {      }
    public String getType() {
    return type;
    public List getTabularData() { // here I return a hardcoded list that is properly displayed ///
    Note : the sam page but changing #{graphBean.type}" by "AREA_VERT_ABS" renders properly :
    <dvt:graph id="g1" graphType="AREA_VERT_ABS" tabularData="#{graphBean.tabularData}" >
    </dvt:graph>
    Any advice will be very much appreciated.
    Thanks and regards,
    Plan.

    Hello,
    Actually the setter is not needed because the tag only reads, but it does not update the backing bean.
    Anyway for verification pourposes I have changed to the following version without results.
    Anyone from Oracle could give me some light ?
    public class GraphBean {
    private String type = "AREA_VERT_ABS";
    public GraphBean() {      
    public void setType(String type) {
    this.type = type;
    public String getType() {
    return type;
    }

  • Setting Graph View Usage dynamically

    Hello all,
    I have a Graph Table with 2 graphs (Pie and Bar) and I'm trying to set their View Usage dynamically with the code below but it's not working. There is no error message, it just simply doesn't return anything. We need to set it dynamically because we have different levels and VO's to the same graph page.
    Is there anything else that should be done?
    OAGraphTableBean graphTable = (OAGraphTableBean)webBean;
    if(graphTable != null) {
    graphTable.setViewUsageName("OperationHdrGraphVO1");
    Thanks and Regards,
    Eduardo

    Hi Sumit,
    It worked creating the graph programmatically using the code below.
    Thanks for your help.
    Eduardo
    Vector graphs = new Vector();
    OAGraphTableBean graphTable = (OAGraphTableBean)webBean;
         Dictionary graphBarDetails = new ArrayMap(10);
    graphBarDetails.put("AGRFUNCTION", "none");
    graphBarDetails.put("GRAPHTYPE", "vertical clustered bar");
    graphBarDetails.put("GRAPHTITLE", "Cost Bar Graph");
    graphBarDetails.put("YAXISLABEL", "Allocation Amount");
    graphBarDetails.put("GRAPHSIZE", "medium");
    graphBarDetails.put("CUSTGRAPHWIDTH", "");
    graphBarDetails.put("CUSTGRAPHHEIGHT", "");
    graphBarDetails.put("DISPLAYTOOLTIP", BooleanUtils.getBoolean(true));
    graphBarDetails.put("XAXISLABEL", "");
    graphBarDetails.put("DRILLDOWNURL", "");
    graphBarDetails.put(DISPLAYED, BooleanUtils.getBoolean(true));
    Vector graphCols = new Vector();
    for(int j=0; j<2; j++) {
    Dictionary graphData = new ArrayMap(5);
    graphData.put("VIEWUSAGENAME", pViewUsage);
    if(j ==0) {
    graphData.put("VIEWATTRIBUTENAME", "AllocatedAmount");
    graphData.put("GRAPHDATASTYLE", "data");
    graphData.put("GRAPHDATAPROMPT", "Allocation Amount");
    else {
    graphData.put("VIEWATTRIBUTENAME", "AllocName");
    graphData.put("GRAPHDATASTYLE", "groupLabels");
    graphData.put("GRAPHDATAPROMPT","");
    graphData.put("GRAPHSTOCKVALUE","none");
    graphCols.addElement(graphData);
    graphBarDetails.put("GRAPHDATACOLS", graphCols);
    graphs.addElement(graphBarDetails);
    graphTable.setGraphDetails(graphs);

  • I want the tooltip of dvt graph(bar line combo) to be shown as percent.

    I want the tooltip of dvt graph(bar line combo) to be shown as percent.
    <dvt:y1Axis >
    <dvt:numberFormat numberType="*NUMTYPE_PERCENT*" decimalDigit="0" scaleFactor="SCALEFACTOR_NONE"/>
    </dvt:y1Axis>
    <dvt:markerText rendered="false">
    <dvt:y1Format>
    <dvt:numberFormat numberType="*NUMTYPE_PERCENT*" decimalDigit="0" scaleFactor="SCALEFACTOR_NONE"/>
    </dvt:y1Format>
    </dvt:markerText>
    Is anything wrong with my config.
    Thanks !

    I want the tooltip of dvt graph(bar line combo) to be shown as percent.
    <dvt:y1Axis >
    <dvt:numberFormat numberType="*NUMTYPE_PERCENT*" decimalDigit="0" scaleFactor="SCALEFACTOR_NONE"/>
    </dvt:y1Axis>
    <dvt:markerText rendered="false">
    <dvt:y1Format>
    <dvt:numberFormat numberType="*NUMTYPE_PERCENT*" decimalDigit="0" scaleFactor="SCALEFACTOR_NONE"/>
    </dvt:y1Format>
    </dvt:markerText>
    Is anything wrong with my config.
    Thanks !

  • Advanced dvt:graph customisation

    Hi,
    I need to make the following changes on a dvt:graph ( graphType="PIE" ) but I don't see how I could do it.
    1- Set the font for the Title, Subtitle, Footnote and legend elements
    2- Avoid truncating the Subtitle when its too long
    3- Set the space before and after the pie ( after the subtitle and before the legend )
    4- Completely hide the label under the pie ( data label )
    I know there is also a "advancedPropertiesXML" on the dvt:pieGraph but I can't find any example for that.
    Is it possible to do that?
    Thanks

    Hi,
    We are working on exposing the pie label as a child tag, but in your current build you will have to set it via the other properties XML or via Graph Java API.
    Here as an example of binding the whole graph. this would be the code in your backing bean:
    public UIGraph getMyGraph() {
    if (m_graph == null) {
    m_graph = new UIGraph();
    CommonGraph graph = (CommonGraph)m_graph.getImageView();
    // Customize the Pie label
    String pieLabel = "<Graph version=\"11.1.1.0\"><PieLabel>" +
    "<GraphFont size=\"16\" /></PieLabel></Graph>";
    m_graph.setOtherProperties(pieLabel);
    return m_graph;
    In your jspx page:
    <dvt graph ...
    binding="#{MyBean.myGraph}"
    </dvt:graph>
    Or, you can bind only the otherProperties property in the backing bean.
    Hope this helps
    Katia

  • DVT graph not filling entire container width

    Experts,
    I have a DVT bar graph in my tabbed panel having "AFStretchWidth" set inside a panelHeader. But my graph is not stretching to fit the entire screen. I have also tried to set the "AFStretchWidth" in the graph but not productive.
    eg: panelheader having
    - panelTabbed styleclass set "AFStretchWidth" containing
    - dvt styleclass set "AFStretchWidth"
    Any ideas how to make the graph fill the entire container width ?
    thnks

    Make sure that Tab Panel (or parent of DVT Component) is stretched.
    Set dynamicResize property value of DVT to DYNAMIC_SIZE.

  • How to change series/groups of a DVT graph at runtime?

    With my scenario, I would like to bind a graph with a dynamic query. "Dynamic" means the query constructed at runtime. So I want to detrmine the series and groups of a DVT graph at runtime. I.e., I want to do this with Java programatically.
    I read some articles and tutorials but have not found a topic on this. I think this should be a common requirement. Anyone can tell me how to do this? Thanks.

    Are you using ADF BC and data binding or regular JSF binding?
    For the first one you can try and create a VO with columns a,b and then at runtime change the VO definition similar to how it is done here:
    http://blogs.oracle.com/shay/2010/10/adf_faces_dynamic_tags_-fora.html
    (but keeping the synonyms for the columns constant).
    For case B - you just need to change the collection data that you pass to the graph.

  • Why not work [timeSelectorListener]  at [dvt:graph] (version 11g)

    I am practicing ADF Data Visualization sample
    written by Katarina Obradovic-Sarkic.
    http://www.oracle.com/technology/products/jdev/11/how-tos/dvt_how_tos/adf_dvt_graph_howto.html
    I cant' show the TimeSelector in the Graph.
    [ richGraphTimeSelector.jspx ]
    <dvt:graph id="master" value="#{bindings.SRsByDate1.graphModel}"
    graphType="LINE_VERT_ABS" stylePath="Comet"
    imageFormat="FLASH" threeDEffect="false"
    timeSelectorListener="#{sampleGraph.processTimeSelector}"
    clickListener="#{sampleGraph.processClick}" >
    [SampleGrpah.java]
    public void processTimeSelector(TimeSelectorEvent event)
    throws AbortProcessingException, SQLException {
    Date sdate = new Date(event.getStartTime());
    Date edate = new Date(event.getEndTime());
    oracle.jbo.domain.Date startDate = new oracle.jbo.domain.Date(sdate );
    oracle.jbo.domain.Date endDate = new oracle.jbo.domain.Date(edate);
    JUCtrlAttrsBinding sd = (JUCtrlAttrsBinding)_bindings.get("start_date");
    JUCtrlAttrsBinding ed = (JUCtrlAttrsBinding)_bindings.get("end_date");
    sd.setInputValue(startDate);
    ed.setInputValue(endDate);
    try {
    JUCtrlActionBinding actionBinding =
    (JUCtrlActionBinding) _bindings.get("ExecuteWithParams1");
    actionBinding.execute();
    } catch(Exception e) {
    System.out.println("Error executing the binding with new dates: " + e);
    I don't understand why not cursor to enter the "processTimeSelector" function,
    even though I have breakpointed into first line of this function.
    Could anybody help me in this problem?

    Check to see that your little one did not by accident get something (anything) in the headphone jack.  If there is debris in there (and it doesn't take much) it will make your device think a set of headphones is jacked in and you won't be able to hear through speakerphone or handset.
    While holding it with the jack down, blow across the jack and tap gently.  It often will dislodge whatever is in there. 
    Наглый пес! Вы должны быть благодарны мы даем Вам возможность проживать в нашем мире!
    BB 9550 Verizon OS 5.0.0.1015 My Storm My Blackberry My Lifeline
    If there is a Theme on my Blackberry, Hedone it!
    If someone successfully helped you with an issue, say thank you by clicking "kudos" in their post and clicking the star.
    Antiquis temporibus, nati tibi similes in rupibus ventosissimis exponebantur ad necem
    If your issue has been solved, please mark the post that solved it for you!

  • dvt:graph problem wirh graphType

    I am trying to set graphType from the backing bean.
    Following works fine:
    <dvt:graph   id="graph1"
                   graphType ="LINE_VERT_ABS"
                   tabularData="#{graphBean.graphList}" partialSubmit="true"
                   partialTriggers="#{graphBean.graphTriggers}"
               lineDataLineDisplayed="true" markerDisplayed="true"/>     But when I change it to read from tha backing bean I get an error.
    <dvt:graph   id="graph1"
                   graphType="#{graphBean.graphType}"
                   tabularData="#{graphBean.graphList}" partialSubmit="true"
                   partialTriggers="#{graphBean.graphTriggers}"
               lineDataLineDisplayed="true" markerDisplayed="true"/>     java.lang.ClassCastException: java.lang.String
         at org.apache.myfaces.trinidad.util.ComponentUtils.resolveInteger(ComponentUtils.java:96)     
    at org.apache.myfaces.trinidad.util.ComponentUtils.resolveInteger(ComponentUtils.java:84)     
    at oracle.adfinternal.view.faces.bi.renderkit.graph.GraphRendererUtils.transferProperties(GraphRendererUtils.java:392)     
    at oracle.adfinternal.view.faces.bi.renderkit.graph.GraphRenderer.transferProperties(GraphRenderer.java:334)     
    at oracle.adfinternal.view.faces.bi.renderkit.imageView.ImageViewRenderer.encodeBegin(ImageViewRenderer.java:200)     
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeBegin(UIXComponentBase.java:709)     
    at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:269)     
    at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:276)     
    at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:242)     
    at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:810)     
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:884)     
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:890)     
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:890)     
    at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:247)     
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:171)     
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:178)     
    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:174)     
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:509)     
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:194)     
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:159)     
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)     
    at com.evermind[Oracle Containers for Java EE (11.1.1.0.0) Technology Preview].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:709)     
    at com.evermind[Oracle Containers for Java EE (11.1.1.0.0) Technology Preview].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)     
    at com.evermind[Oracle Containers for Java EE (11.1.1.0.0) Technology Preview].server.http.HttpRequestHandler.doDispatchRequest(HttpRequestHandler.java:889)     
    at com.evermind[Oracle Containers for Java EE (11.1.1.0.0) Technology Preview].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:797)     
    at com.evermind[Oracle Containers for Java EE (11.1.1.0.0) Technology Preview].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:607)     
    at com.evermind[Oracle Containers for Java EE (11.1.1.0.0) Technology Preview].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:376)     
    at com.evermind[Oracle Containers for Java EE (11.1.1.0.0) Technology Preview].server.http.HttpRequestHandler.run(HttpRequestHandler.java:161)     
    at com.evermind[Oracle Containers for Java EE (11.1.1.0.0) Technology Preview].server.http.HttpRequestHandler.run(HttpRequestHandler.java:142)     
    at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)     
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)     
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)     
    at java.lang.Thread.run(Thread.java:595)graphType defined as String and hard coded to LINE_VERT_ABS.
    graphType = "LINE_VERT_ABS"
    I would apreciate any help.
    Irina.

    You can try to read following, if you would like to use binding:
    http://www.oracle.com/technology/products/jdev/11/how-tos/dvt_how_tos/adf_dvt_graph_howto.html
    I don't have single table to bind to, it vary per customer, so I am using tabularData.
    SELECT a.week, a.product, a.quantity FROM ...
    Week is my index 0
    product - index 1
    quantity- index 2
    The result is weekly qty graph from each product.
    ArrayList data = new ArrayList();
                ResultSet resultSet = selectStatement.executeQuery();
                int cnt = colNames.size();
                while (resultSet.next()) {
                    Object[] rowItems = new Object[cnt];
                    for (int i = 0; i < cnt; i++) {
                        if(i == cnt-1)  // last column is quantity
                            rowItems[i] = new Double(resultSet.getString(colNames.get(i)));
                       else
                            rowItems[i] = resultSet.getString(colNames.get(i));
                    data.add(rowItems);
                }Then data assinged to tabularData
    tabularData="#{graphBean.data}" Irina.

  • How to set up Dynamic Variants for job which is based on Pay Period

    Hi,
    We need to set up dynamic variant for payroll interface.  This interface is based on Pay periods and that is why we need to use different variant for each month.  Letus know how to set up dynamic variant which will take care of Pay Periods

    Hi,  Thnx for reply.
    We are not changing the control records, current period will be some old period in system. 
    payroll is not processed in SAP,

  • How to set up dynamic dns?

    Hi everybody,
    could anybody help me to set up Dynamic DNS in the Airport Extreme? I am using Airport Utility 5.5.3
    I also have dlink dns service active
    Thank You
    Manolo Fernández

    The following is the basic setup for DDNS on the AirPort using AirPort Utility v5x:
    AirPort Utility > Select the base station > Manual Setup >AirPort > Base Station tab > Edit ...
    Use dynamic global hostname (checked)
    Hostname: <enter your DDNS service domain here>
    User: <enter your DDNS user account name>
    Password: <enter your DDNS user account password>
    Click "Done."
    AirPort Utility > Select the base station > Manual Setup > Disks > File Sharing tab > Share disks over the Internet with Bonjour (checked)

  • Can we set the dynamic data source when using getReportParameters() ?

    Hello!
    I have a report where one of its parameters refers to a list of values (LOVs). This list of values is an SQL Query type. When the data source used in the report is defined in the BI Publisher server, I'm able to get the report parameters using the getReportParameters() function in my application. However, if the data source is not defined the function throws an exception, which is understandable.
    I decided to dynamically set the data source so that even if the data source used by the report is not defined in the BI Publisher server, it still will be able to get the LOVs for the parameter. I tried setting the JDBCDataSource of the dynamicDataSource for the ReportRequest object that I passed to the getReportParameters() function. Please see the sample code below:
    reportRequest.dynamicDataSource = new BIP10.BIPDataSource();
    reportRequest.dynamicDataSource.JDBCDataSource = new BIP10.JDBCDataSource();
    setReportDataSource(reportRequest.dynamicDataSource.JDBCDataSource, connectstr, jdbc, dc); //function to set the values for JDBCDataSource object
    reportParams = webrs.getReportParameters(reportRequest, uid, pwd); //call the getReportParameters
    I was expecting this to work as this is what I did to dynamically set the data source before calling the runReport function. So, my question is -- can we set the dynamic data source when using getReportParameters() ? I tried this both in versions 10g and 11g. It does not seem to work on both versions.
    Regards,
    Stephanie

    report_id column of apex_application_page_ir_rpt can help us uniquely identify each saved report.
    We can assign this report_id value to a page item and this page item can be put in the Report ID Item text box of the Advanced section of the Report Attributes page of the IR.
    This should load the saved report identified by report_id and you can get rid of javascript
    Regards,
    Vishal
    http://obiee-oracledb.blogspot.com
    http://www.packtpub.com/oracle-apex-4-2-reporting/book
    Kindly mark the reply as helpful/correct if it solves your problem

  • Error when displaying 2 DVT Graph in same page

    Hi,
    I am using jdev 11g.
    I have a sample page with 2 graph on it. When the page is displayed only one graph is shown.
    <af:form>
    <dvt:graph id="p102" binding="#{TestManagerBean.myGraph}"
    graphType="#{TestManagerBean.graphType}" threeDEffect="true"
    shortDesc="graph pie" contentDelivery="immediate"
    annotationsVisibility="SHOW_ALL" animationIndicators="ALL"
    animationOnDataChange="AUTO" animationOnDisplay="AUTO"
    markerTooltipType="MTT_VALUES"
    noDataErrorText="No Data Found"
    inlineStyle="width: 400px;height: 300px;">
    </dvt:graph>
    <dvt:graph id="p1022" binding="#{TestManagerBean.myGraph}"
    graphType="#{TestManagerBean.graphType}" threeDEffect="true"
    shortDesc="graph pie" contentDelivery="immediate"
    annotationsVisibility="SHOW_ALL" animationIndicators="ALL"
    animationOnDataChange="AUTO" animationOnDisplay="AUTO"
    markerTooltipType="MTT_VALUES"
    noDataErrorText="No Data Found"
    inlineStyle="width: 400px;height: 300px;">
    </dvt:graph>
    </af:form>
    Kindly advice
    Emile BITAR

    Hi Emile BITAR,
    binding="#{TestManagerBean.myGraph}"Have you tried creating separate bindings for each of the graph?
    Regards,
    Chan Kelwin

  • How can I cache dvt graph results?

    Hello colleagues, I need some help regarding dvt graphs performance.
    In our application we have big amount of data which the user can filter by adding grouping options, time ranges, etc. For the graph to be updated (the query to be re-executed), the user has to press a "Refresh" button each time he changes the query parameters.
    Once the new results are displayed in the graph, the user can change the graph type by pressing either a pie, bar, line or table buttons. As a consequence of this, the query is re-executed and returns the same previous results. This obviously drops the performance of the application.
    So, how we can manage to refresh the type of graph (for example from pie to bar) without re-executing the query. Note that the "Refresh" button should always re-execute the query even if the parameters were not changed.
    I'll appreciate your help.
    Regards,
    Nicolas
    Edited by: 864814 on Oct 14, 2011 6:05 AM

    And by the way how are you switching the graph type? Are you using an af:graph tag and switching just the type? Or are you rendering a complete new graph on your page?

  • Problem with setting tooltips for items of a JCombobox

    hi guys,
    I want to set tooltips for items of JComboBox & the code that i have written is given below , but the tooltip text is set for all the items of Nonitindustrycombo but the tooltips remain the same even for Nonitdesgcombo's items.
    Is that we need to refresh the ComboboxRenderer every time ?
    I am not able to trace out the exact reason for this,please if anyone can suggest me something regarding this would be of great use to me.
    class Searchpanel extends JPanel {
    String[] str = null;
    public SearchPanel(){
    Nonitindustrycombo.addItem("--Select--");
    ArrayList NonITindus = ERPModel.getAllNonitIndustry(); //gets all the items(strings) for Nonitindustrycombo
    for (Iterator iter = NonITindus.iterator(); iter.hasNext();) {
    String str = iter.next().toString();
    Nonitindustrycombo.addItem(str);
    SetTooltip(Nonitindustrycombo,NonITindus);
    Nonitdesgcombo.addItem("--Select---");
    ArrayList desg = ERPModel.getAllNonitDesg(); //gets all the items(strings) for Nonitdesgcombo
    for (Iterator iter = desg.iterator(); iter.hasNext();) {
    Nonitdesgcombo.addItem(iter.next());
    SetTooltip(Nonitdesgcombo,desg);
    class MyComboBoxRenderer extends BasicComboBoxRenderer
    public Component getListCellRendererComponent(JList list, Object value,
    int index, boolean isSelected,
    boolean cellHasFocus)
    if (isSelected)
    setBackground(list.getSelectionBackground());
    setForeground(list.getSelectionForeground());
    if (0 < (index))
    list.setToolTipText(str[index - 1]);
    else
    setBackground(list.getBackground());
    setForeground(list.getForeground());
    setFont(list.getFont());
    setText((value == null) ? "" : value.toString());
    return this;
    private void SetTooltip(JComboBox combo,ArrayList arr){
    str = (String []) arr.toArray (new String [arr.size ()]);
    combo.setRenderer(new MyComboBoxRenderer());
    public static void main(String[] args){
    new SearchPanel();
    Thanks ,
    vishal

    1) You where given a working example in your last posting on this topic. Compare your code with the working code to see whats different and fix it.
    2) The code you posted doesn't compile.
    3) You didn't use the "Code Formatting Tags" when you posted your code so it not readable.

Maybe you are looking for

  • How to use a Westell 7500 as a router-switch ?

    I have an extra Verizon Westell 7500 DSL modem router (A90-750015-07). How do I turn it into a router-switch that will take an ethernet (not DSL) network feed (with internet access) and distribute it among a few devices and put those devices into som

  • Apple Software Updater On 64-Bit

    I run QuickTime Player and Apple Software Updater on a Windows 7 64-bit system.  My problem echoes those recent postings under the Windows topic.  Yesterday, while runing the updater, I kept getting a blank program box.  Usually it shows what is avai

  • Online number and "Brasil 400"

    Please, somebody help! My online number does not accept incalls, the line is aways engaged! Nobody can call on my online number. And the 400 minutes from the package "Brasil 400" still are not available, but the money already was taken two days ago f

  • OWB: is that my right choice?

    Hi, my knowledge about OWB is still very limited, so I'd like to ask you if this product could be a right choice for the following situation: - I have an existing Oracle datawarehouse, being fed by a number of source databases (in an old-fashion mann

  • Win 7, 64-Bit, p6630f, #BM421AA#ABA. Installation Pkg for HPSolCenter won't install .msi?

    Somehow my Windows Installation pkg for  The HP Solution Center for my desktop Pavillion has been lost and the error message I recieve is; Error Code #2761 and, in the past it has come up as an .msi issue, which I have found to be a network issue.  I