Setting Destination URI of a Pie Chart Graph Programatically-OA Framework

Hi All,
I have created a OF Page with the following Regions one under the other:
1. PageLayoutRN
2. HideShowHdr1 - Hide/Show Header
3. TblLayout1RN - Table Layout
4. Tbl1RowLayout1RN - Table Row Layout
5. Row1CellFormat1RN - Cell Format
6. Row2CellFormat2RN - Cell Format
Basically I have a page with a hide/show header, which contains a table with 1 Row and 2 Columns, where 1 column contains an advanced table and the 2nd contains a Graph (Pie Chart).
In the Row2CellFormat2RN, I have a GraphTable Region under the name PieChart1RN, which contains a graph called graph1 of style Pie.
As per the OA Framework Development Guide (744832.1) for R12.1.1 on Graphs (Page 255), a Code snippet is provided for setting the Destination URI of the graph programatically.
This code is as follows:
if(webBean.getUINodeName().equals("region3"))
   OAGraphTableBean g2 =(OAGraphTableBean)webBean;
   g2.setDisplayDataMarkers(0, true);
   g2.setDrillDownUrl(0, "OA.jsp?page=/oracle/apps/ak/pages/FWK_TEST_AGR_SUM&akRegionApplicationId=601&sal={@Salary}");
   //Test line graph with data markers and drill-down 
   g2.setDisplayToolTip(1,true);
   g2.setDisplayDataMarkers(1, true);
   g2.setDrillDownUrl(1,"http://www.oracle.com");
} I have tried using this code to set the Destination URI for my graph.
However, it does not work.
I do not understand which region name to specify as when I displayed the value contained in webBean.getUINodeName(), it refers to PageLayoutRN.
In short, I am not being able to set the Destination URI. Even though I have ensured the Bubble Text Property is set to True.
Can someone pls. help me into adapting this code to my context?
Thks
Ravi

Hi Kumar,
I have already done it.
However, it still does not work.
The controller code looks like it does not recognise my graph region at all.
Thks
Ravi

Similar Messages

  • SOLVED: Unable to set Destination URI to URL stored in a VO attribute

    Hi OAF Gurus,
    I want to set destination URI for a message styled text bean in my custom OAF page, such that on clicking the link a popup window comes up with an external url. This external url is record specific and is stored in a db table. I have access to this url thru a VO attribute on my page.
    If I set destination URI declaratively using a static url, it works fine for me. However when I try to pick up the destination url from VO attribute, fwk is prefixing "http://server:port/" to the url and consequently making it an invalid url.
    Please suggest a way to stop fwk from prefixing "http://server:port/" to the url stored in my VO attribute.
    What works:
    Destination URI:
    javascript:var a = window.open('http://www.google.com/', 'a','height=500,width=900,status=yes,toolbar=no,menubar=no,location=no'); a.focus();
    What doesn't work:
    Destination URI:
    javascript:var a = window.open('{@BpelInstanceUrl}', 'a','height=500,width=900,status=yes,toolbar=no,menubar=no,location=no'); a.focus();
    VO attribute BpelInstanceUrl has value "http://www.google.com/".
    When I specify the above destination uri using VO attribute 'BpelInstanceUrl', I get the following url on the link:
    javascript:var a = window.open('http%u003a//www.google.com/', 'a','height=500,width=900,status=yes,toolbar=no,menubar=no,location=no'); a.focus();
    I searched the forum, but couldn't find any discussion on setting destination uri to an external url based on the value of a VO attribute.
    Thanks for the help. Waiting for your valuable inputs.

    Shiv,
    I don't think your suggestion will work, because jsp redirect which framework will use internally will take default port number if fully qualified url(like http://www.google.com/') is not used.So, Ritesh will have the same problem as he mentioned.
    Now, Ritesh coming back to your problem, the solution is to attach the fully qualified url in the table component at runtime. This will help you in two forms:
    1)There will be no MAC key validation for your javascript generated url.
    2)Your fully qauilified url will be attached to url property at runtime, so would not face the current problem.
    Hence you need to use bound values api. Here is the sample code:
    OATableBean tableBean =
    (OATableBean)webBean.findChildRecursive("<table item id>");
    OAMessageStyledTextBean m= (OAMessageStyledTextBean)tableBean.findChildRecursive("<message styled text in table item id>");
    OADataBoundValueViewObject tip1 = new OADataBoundValueViewObject(m, "<vo attr name which stores url for each row>");
    m.setAttributeValue(oracle.cabo.ui.UIConstants.DESTINATION_ATTR, tip1);
    I hope i am clear.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to set Destination URI of a column in a multi row table

    Hi,
    I need to programmatically set the destinationURI property of a 'messageStyleText' column in a multi-row table.
    I have used the below code in the processRequest of the Controller of the page:
    OAViewObject viewObject = (OAViewObject)am.findViewObject("IntSummBackOrdDetVO");
    String url = (viewObject.getCurrentRow().getAttribute("ErrorCode")).toString();
    url = "/oiphtml/o2c22_"+url+".htm";
    OAStaticStyledTextBean errorlink = (OAStaticStyledTextBean) webBean.findChildRecursive("ErrorCode1");
    errorlink.setDestination(url);
    But this code is not working. Could you please help me in correcting the above code?

    user594528 ,
    What ur trying to do can be conceptually possible through bound values only as there are many rows in table.Read bound values section in dev guide, to understand the fundamentals.
    You can refer to thread to correct ur code:
    Re: Unable to set Destination URI to URL stored in a VO attribute
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • CR 8.0 pie chart/graph doesn't appear in web browser

    Post Author: kevind
    CA Forum: Charts and Graphs
    Hi,
    I am using a CR 8.0 report (containing data in tabular format and Pie/Bar graph) with Web component Server.
    In design mode (by entering the parameters) when i view my report through the CR IDE then i can view my report perfectly with the pie and bar graphs.
    However,once i call the same report through the web component server, by my JSP page, the report appears with the data but the page containing the piechart/Bar graph doesn't appear. (i am using the ActiveXViewer)
    When i remove the chart/graph, then all the pages are displayed in my browser (IE) properly, but if i add back the pie chart then the page on which this should appear -  doesnt display.
    Has anyone faced a similar issue? In design it displays with data but once called through webcomponent server it fails?
    Thanks,
    Kevin D

    Hello Subramaya,
    currently I am working on a small article in the Wiki area of the ITS (Wiki, ITS HowTos): <a href="https://wiki.sdn.sap.com/wiki/display/HOME/UsingSAPGUIforHTMLinsteadofanIAC">Using SAP GUI for HTML instead of an IAC or EWT service</a>.
    Also see notes 1010519, "SAP GUI for HTML: Simplified Title Area Without Menu and OK Code" and 959417, "Integrated ITS, Closing Session When Transaction Ends". I am pretty sure that this is exactly what you are looking for.
    With best regards,
      TJ

  • Anychart pie chart - setting colours to match output (RAG)

    Hi,
    I have a table detailing outstanding issues each with a traffic light status of either red, amber or green. I would like to create an anychart pie chart whose colours match their status to give an easy visual representation of the data.
    I have managed to get it working if there's data in the table for each status type; I've used customised colours in the pie chart and used ORDER by in my SQL (the order of the customised colours listed to match the order of the SQL output), however, if one of the status' has a null value, the colours are assigned Amber 1st, Green 2nd and Red 3rd meaning that if there are no issues of Amber status the green status issues will be amber in colour on the pie chart etc.
    Is this possible to assign specific colours and if so how can I do it?
    I'm working on Apex 3.2.1.
    Thanks in advance

    I've managed to sort this now.
    In case anyone is interested, I created a view that would display the totals for each RAG status including a 0 if total is null and then set custom colours for the pie chart in the order to match the SQL output (i.e. A (amber) first, G (green) second, R (red) third). Simple but it works for my needs.

  • Overlay a graphic on a Pie Chart, & Rotate text in a Pie Chart

    Is it possible to overlay a graphic on a pie chart?
    I've tried manipulating the Wrap Inspector, but regardless, when I paste a graphic on topic it drops below the pie chart and deletes one segment of the pie.
    In a related pie chart question, is it possible to rotate the text to face into the central axis, think spokes in wheel (vs. the default horizontal). I can rotate the pie chart in about 3 dif. inspectors, but no luck here...and my texts is just a little too long to fit nicely in the default (and too hard to read if I reduce the font size).
    Thanks

    I assume you want to have a graphic that sits over the chart, and that you see the values underneath? Something like a shine, worn texture or logo?
    If you are wondering what happened to your particular 'missing slice' open the Graph inspector and select that section. Chances are you have changed the tiled image which was assigned to that particular piece of the pie chart.
    To overlay a graphic, draw a circle shape. In the graphics inspector assign an image fill to that shape. Choose tiled or scale to fit as required (a png. file with transparencies will show the underlying values, as will setting the opacity of the circle)
    Turn the wrap off for the circle (It sounds like your pie chart may be set to 'moves with text' instead of 'locked to page') And then place it overtop of the pie chart. Resize to fit. Since this is now 'locked to page' and above the pie chart, any movement of the pie chart means you will have to reorient your overlay. To avoid this, set the pie chart to Locked to Page as well.
    At this point you can set the wrap for the pie chart so the text moves around it if you like. Your overlay and the pie chart will remain in sync if they are both fixed to page.
    Regarding your text question, no. You can't set that. What you can do is use a numerical, letter or symbolic value and include a legend manually to indicate the true names of the portions using a text box.
    (I've seen someone with a pie chart whose segments were labeled with seven words, the last two of which were the only ones that changed. I suggested using the unchanging portion as the graph title and the changing portion as the individual slices. Not sure if that would apply to your project.)

  • Pie Chart Exploded On Load

    Hello All,
    Anyone here knows where to place the exploded="true" so that the chart will be exploded when the page load:
    <?xml version = "1.0" encoding="utf-8" standalone = "yes"?>
    <anychart>
      <settings>
        <animation enabled="true"/>
        <no_data show_waiting_animation="False">
          <label>
            <text>#NO_DATA_MESSAGE#</text>
            <font family="Verdana" bold="yes" size="10"/>
          </label>
        </no_data>
      </settings>
      <margin left="0" top="0" right="0" bottom="0" />
      <charts>
        <chart plot_type="Pie" name="chart_30009006600473016877" exploded="True">
          <chart_settings>
            <title text_align="Center" position="Top" padding="0" >
              <text>Pies Chart</text>
              <font family="Tahoma" size="14" color="0x000000" />
            </title>
            <chart_background>
              <fill type="Solid" color="0xffffff" opacity="0" />
              <border enabled="false"/>
              <corners type="Square"/>
            </chart_background>
            <data_plot_background>
            </data_plot_background>
            <chart_animation type="Appear" interpolation_type="Quadratic" show_mode="OneByOne"/>
          </chart_settings>
          <data_plot_settings enable_3d_mode="true">
            <pie_series style="Aqua" >
              <tooltip_settings enabled="true">
                <format><![CDATA[{%Name}{enabled:False} - {%Value}{numDecimals:0,decimalSeparator:.,thousandsSeparator:\,}]]></format>
                <font family="Tahoma" size="10" color="0x000000" />
                  <position anchor="Float" valign="Top" padding="10" />
              </tooltip_settings>
              <label_settings enabled="true" mode="Outside" multi_line_align="Center">
                <format><![CDATA[{%Name}{enabled:False} - {%Value}{numDecimals:,decimalSeparator:.,thousandsSeparator:\,}]]></format>
                <background enabled="false" />
                <font family="Tahoma" size="10" color="0x000000" />
              </label_settings>
              <pie_style>
              </pie_style>
              <marker_settings enabled="True" >
                <marker type="None" />
              </marker_settings>
              <connector color="Black" opacity="0.4"/>
            </pie_series>
          </data_plot_settings>
    #DATA#
        </chart>
      </charts>
    </anychart>
    Thanks in advance

    Hi,
    To set the slices of your pie chart to "exploded" upon page load, the setting of 'exploded="True"' would need to be applied to each point of the data component of the chart XML. So you would need to replace the substitution string #DATA# with the customised data containing this new attribute. For example:
    <data><series><point name="ADAMS" y="1100" exploded="True"/></series></data>
    How you choose to do so is up to you, but I've outlined one possible option on my sample application, https://apex.oracle.com/pls/apex/f?p=36648:117, which uses PL/SQL to generate the data XML with the new attribute. As you'll see in the AnyChart online User's Guide, specifically in section Pie and Donut Chart, they've referred to a series level attribute <series exploded="True" />,but this option currently doesn't appear to be working.  I've contacted AnyChart regarding this behaviour, and will hopefully receive clarification on whether or not the documented series level attribute works.  In the meantime, applying the attribute to each point of the data series will provide the behaviour you're looking for.
    I hope this helps.
    Regards,
    Hilary

  • Formatted numbers in pie chart

    Hello
    I'm displaying a pie chart graph and the numbers in it are not formatted (eg 345234534 without any commas).
    I want to display numbers in a formatted way (0,000.00) in a pie chart, but if I use the NSTR function the number become a string and I can't use that number.
    How can I do this ?
    Bye
    Omer

    Hey Pramod,
    I really wanted your answer to work, but it doesn't. The NVAL function convert the String Type to a number type ( ==> the graph accept the type), but it also deletes the commas.
    Have you tried it yourself ?
    Bye
      Omer Shem-Tov

  • Bar of Pie Chart and Age Population Chart ?

    Hi,
    I've got the last version of numbers and I'am asked for an assignement to do a Bar of Pie Chart and an Age Population Chart.
    I tried everything and searched on the internet but couldn't manage to find what I'm looking for.
    Could anyone explain how to do those ?
    Thanks

    Hi Vic,
    So "Bar of Pie" wasn't a typo! Looks like Jerry (and I) had a different interpretation of what you were trying to do.
    What you have there is two separate charts, using two separate (but related) sets of Data.
    The Pie chart uses the data listed on the table to the left below—individual numbers for the pets whose count is three or greater, and a grouped count for the others.
    The Stacked Bar chart uses a separate data set, listed on the second table—the individual counts for those pets represented fewer than three times each.
    Here's a variation.
    Charts are using the default colours as assigned by Numbers.
    See the Numbers '09 User Guide for details on reformatting the charts.
    Regards,
    Barry

  • Discoverer plus pie charts

    hi,
    when i use pie charts for reporting data in discoverer the value of fields(each slice) r displayed as decimal values(eg:56.00) which i need to be a whole number(56) without decimal places. how can i set the field type or pie chart options to satify my requirement? help me out in this.
    Preetha.

    We just uninstalled the Jinitiator and reinstalled it again and its working fine now.
    Thanks
    --Kumar                                                                                                                                                                                                               

  • Pie chart drill down problem

    Hi,
    We are facing an issue with the drill implementation in the Pie chart of the dashboard. Initially, the drill functionality worked fine but now, we observe that the drill happens ONLY on the edges of the pie chart
    Now this behaviour is observed when we make following changes in the dashboard:
    1) If we add new filter in the existing qaaws connection for pie chart. (The problem persists even if we remap the qaaws connection)
    2) If we apply some color coding based on certain condition(formula) specified in the excel.
    if we revert the above conditions, then the Pie chart works fine
    We have tried the following things:
    1) deleting the existing pie chart and remapping the new one.
    2) Tried changing the destination cells for the pie chart.
    We are stuck up with this problem without any solution from a long time. We even tried redeveloping the whole dashboard but the problem persists.
    Version :Xcelsius 2008 SP3,fp3.1
    Thanks.

    This is actually an issue of the flash player.
    Installing Windows Flash Player 10.3 ActiveX control content debugger (for IE) will solve the problem.
    Or switch to Flash Player 10.1
    Windows Flash Player 10.3 ActiveX control content debugger (for IE) is available here: http://download.macromedia.com/pub/flashplayer/updaters/10/flashplayer_10_ax_debug.exe
    For Netscape-compatible browsers, the version is available here: http://download.macromedia.com/pub/flashplayer/updaters/10/flashplayer_10_plugin_debug.exe
    No need to remove the existing flash player.

  • Automatic Fill colors for Report Builder pie charts and graphs are too repetitive and hard to differentiate

    I have pie charts or other graphs that show multiple results (7-20).  I set the "fill" colors to Automatic so that the results are dynamic (I don't want to specify a color for each result because I will then be limited that those results--I
    prefer it to be dynamic).
    I noticed that once you get above 4 or 5 results, no matter which palette is used, the "automatic" colors are so closely similar that it is hard to differentiate which color pertains to which result (group).  For example, you could have a
    reports that breaks the results into age groups like 1-18, 19-21, 22-25, 26-30, 31-41, 41-50, 51-65, 66-80, and 81+.  By the time you review the results, there's likely to be 3 pairs of colors (or more) that are so closely similar that you can't
    tell them apart (2 shades of yellow, 3 shades of blue, 2 shades of orange, or green, or teal, or purple or whatever).
    Is there a way to use Automatic for the color scheme (I don't care which color pertains to which category) but also specify to not use colors that seem to bleed together (so that someone viewing the report can actually tell the difference)?  Using SSRS
    2008 Report Builder, if it makes a difference.

    Hi JNehman,
    Reporting Services provides a list of predefined, built-in palettes that you can use to define a color set for series on your chart. All built-in palettes contain between 10 and 16 color values. You cannot extend the built-in palette to include more colors,
    so if you need more than 16 colors, you must define a custom palette.
    A custom palette let you add your own colors in the order you want them to appear on the chart. A custom palette is especially helpful if the number of series in your chart is unknown at design time. For more information, see
    Define Colors on a Chart Using a Palette (Report Builder and SSRS).
    Regards,
    Heidi Duan
    Heidi Duan
    TechNet Community Support

  • I have no idea how to set up a pie chart for tracking spending with categories

    This is what I want to do to help me track my credit card spending.
    I want to make a Numbers sheet where i can jot down how much money i spent on a item, and what category that item would go with (example, food, electronics, gas, so on).
    and then i want to have a pie chart that will show much how much money i'm spending in each category and how much of a percentage of the total each category takes up of the whole.
    I have no idea how to set this up in a sheet. I tried typing it in a few times and every time i go to make a pie chart, it never shows me any of the results i want to see.
    can someone please help me set up a sheet to be able to get this information to display correctly in a pie chart?

    Brad,
    Create a table with the categories and the data (for now you can make up the data):
    Now add a chart from the Charts menu in the toolbar:
    Now click the "Add Chart Data" button just below the chart.
    Now select data (from column B) in the table.  Last trick is to click the menu at the bottom-left corner of the window and change the selection to "Plot rows as series" :
    Now add formulas to the table to properly summarize the data from your data entry table using the sumif() function.

  • Pie chart legend showing digit "1" when we set "ignore blank cells"property

    All,
    We have pie chart in Xcelsius 2008 that shows the data with legend value and we have also set the ignore blank cells property to ignore the blank value from column. but once we set this property, it displays the digit "1" in the legend when there is no data.
    we are expecting that nothing should be displayed in pie chart legend when there is no data for the pie chart.
    Thanks,
    Sourabh

    hi Sourabh,
    I could replicate your scenario.
    Workaround is to create a duplicate of this chart. Go to properties of this new chart.
    Go to Appearance ->
    Uncheck
    - Legend
    - Mouse-over values
    - Data Labels
    for this chart.
    Write a logic in excel using 'IF' to verify if your data is empty.
    Use 'Dynamic Visibility' feature to display this chart only when your data is empty.
    Display your original chart if your data is not empty.
    Regards,
    Vamsee

  • PIE Chart Color Highlight - setting colors

    Hi
    PIE Chart showing default colors even after setting the diffent colors to OIE chart slices from Color Highlight tab.
    PIE chart is showing only one slice when I select Data for the PIE Char is "For all records".
    Could you please let me know how to set the different colors for slices?
    Thank you

    hi,
    As you are selecting 'Color Highlight' for different Pie Slices,  "For all records" option shouldn't be selected.
    It should be "On Change of".
    Then obviously you will see the colors specified in 'Color Hghlight' tab.
    Regards,
    Vamsee

Maybe you are looking for

  • Problem with backing up my FCPX file

    Hi all, my FCPX "library file" is 1.5 terrabyte and I can't back it up. Every time I try and do it, it stops after approximately 100 gigabytes (the HD I'm trying to copy it to has more than enough free space. It's between two 4TB G-raids with approxi

  • SSF and digital signatures

    Hi Guys! I need to exchange XML documents with third-party. The aproach is to generate it from SAP and then sign it with Digital Signature. I found information, that I could use SSF to achieve it. On help.sap.com I found information, that I could use

  • What to do while I wait for the new battery?

    The recall website says to not use the old battery, but it's going to take 4-6 weeks to get a new one, so what should I do to cover up the empty spot on the bottom of my computer? I thought about using the battery and just making sure the computer's

  • Cant export to tape from imovie anymore!

    i used to be able to export me edited footage back on to mini dv, but now every time i try, it just crashes. i dont know what to do if anyone could help, that would be excellent. thank you!

  • How do I merge two iMovie Libraries?

    Over time, I created two iMovie libraries - one on my external drive and one on my iMac.  I have moved both libraries to the external drive and now I want to merge them into one library.  I have not any success with Consolidate.