TimeStamp in Flash chart

Is there any way to display timestamp in the Flash Chart with Asynchronous Update?
SVG chart has this possibility.
Thank you.

Hi,
as a workaround, because I think that feature is missing in 3.0 for Flash charts.
1) Create a HTML region above your flash region. The region should be borderless.
2) Add the following JavaScript Code:
< script type="text/javascript" >
var vOld_apex_RefreshChart = apex_RefreshChart;
apex_RefreshChart = function(page_id,region_id,browser_lang)
  $x("P1_REFRESH").value = Date();
  vOld_apex_RefreshChart(page_id, region_id, browser_lang);
< /script >=> remove the spaces before and after script
3) Create a text page item with the name P1_REFRESH
You can use CSS to format the text field or you can also create something else to hold your sysdate, but in that case you have to adapt the above javascript code.
That should do it.
Patrick
Check out my APEX-blog: http://inside-apex.blogspot.com
Check out the ApexLib Framework: http://apexlib.sourceforge.net

Similar Messages

  • Refreshing Flash Chart Report based on a Multi-Select List

    I have P13_SYMBOL multiselect list object..
    Set "HTML Form Element Attributes" property of P13_SYMBOL to onchange="javascript:getchart(this);"
    I have written following code at page HTML Header section.
    <script type="text/javascript">
    function getchart(filter)
    var get = new htmldb_Get(null,$v('pFlowId'), 'APPLICATION_PROCESS=GET_CHART',0);
    get.add('G_SYMBOL', filter.value);
    var ret = get.get();
    if(ret)
    var d = document.getElementById('P13_SYMBOL');
    d.innerHTML = ret;
    Created Application Item G_SYMBOL
    Created Application Process GET_CHART as follows.
    DECLARE
    vSymbol VARCHAR2(100);
    BEGIN
    htp.p(:G_SYMBOL);
    EXCEPTION WHEN OTHERS THEN
    htp.p('No such symbol!');
    END;
    Flash chart flash following query.
    select null link, TIMESTAMP label, OPEN value1, HIGH value2, LOW value3, CLOSE value4 from "DCF"."DAILY_STOCK_QUOTE"
    where symbol=:G_SYMBOL
    order by TIMESTAMP
    When I change symbol in multiselect list flash chart doesn't get refresh.
    Any idea what is the wrong with the code?
    Edited by: user8638468 on Mar 3, 2010 12:39 PM
    Edited by: user8638468 on Mar 3, 2010 5:30 PM

    Hey there...
    The reason it's not refreshing is because you actually have to tell the flash chart that it NEEDS to refresh. Unless you have Asynchronous Update turned on, the chart will not refresh itself when the data behind the chart has changed. And even if you DO have Asynchronous Update, on, (Which you don't want to do), you'd likely see some lag between your user's change and the data in the graph changing.
    You can do this by using an APEX JavaScript function called apex_RefreshChart().
    1) Edit the chart and go to the REGION DEFINITION tab.
    2) In the REGION SOURCE, scroll down to the bottom and ad the following code
    <script type="text/javascript">
    function myRefreshChart(){
       var chartName = '#CHART_NAME#';
       chartName = chartName.substring(1);
       apex_RefreshChart(&APP_PAGE_ID., chartName, 'en-us');
    </script>3) At the end of your JavaScript function, call the new function myRefreshChart().
    That should force the chart to refresh by re-executing the underlying query and passing back in the data to the chart.
    NOTE: This function is not part of the publicly documented API's so it's likely not supported, but it does work!
    Look for a blog post with more detail sometime tomorrow.
    Hope this helps.
    Doug Gault
    http://www.sumneva.com
    http://douggault.blogspot.com

  • Apex 4 - Flash Chart - How to open link in same page

    Hi,
    I need help in apex flash chart development. I want to open link in same page. Currently it open in new window with existing page intact
    I have created a flash chart.
    Below are setting
    Chart Type 2D line
    Series Type : Line
    Series siurce : sql query
    elect '?p=&APP_ID.:2:&APP_SESSION.::::P2_ORACLESID,P2_CAP_DATE:&P15_ORACLESID.,'||capture_date link,
    capture_date,
    round(sum(TOTAL_MB)) "Total_MB" ,
    round(sum(USED_MB)) "Used_MB" ,
    round(sum(FREE_MB)) "Free_MB"
    from SST.TABLESPACE_USAGE_HIST
    where DBNAME = :P15_ORACLESID
    group by capture_date
    order by capture_date
    Problem: when I run this page, chart is displayed. Now if I click on the series value of chart, it opens page ( '?p=&APP_ID.:2:&APP_SESSION.::::P2_ORACLESID,P2_CAP_DATE:&P15_ORACLESID.,'||capture_date link) It opens page 2 in new window. I want it to open in same window. Am I missing something ? Is this possible ? Is there anything I can change to achive this functionality
    Please help

    Hi All,
    I have an issue with Anychart link, can you please help me.
    1. I have created HTML region in a page with
    <div id="sampleClick">
    <div id="sample1">
    <script type="text/javascript" language="javascript">
    function ChartSample()
    var ChartSample = new AnyChart('/i/flashchart_v5/swf/AnyChart.swf');
    ChartSample.width = "500";
    ChartSample.height = "400";
    var ChartData = new htmldb_Get(null,$x('pFlowId').value,
    'APPLICATION_PROCESS=FINANCE_020',0);
    gReturn = ChartData.get();
    // prompt("xml",gReturn);
    ChartSample.setData(gReturn);
    ChartSample.write("sample1");
    ChartSample();
    </script>
    2. Then created Application process with "On Demand Run this application process when requested by a page process." in PL/SQL Anonymous block
    select 'f?p=&APP_ID.:136:&APP_SESSION.::::P33_ID:' || YEAR link,DECODE(period,1,'JAN',2,'FEB',3,'MAR',4,'APR',5,'MAY',6,'JUN',7,'JUL',8,'AUG',9,'SEP',10,'OCT',11,'NOV',12,'DEC')||'-'||year "MONTH",round(SUM(ytd_revenue)/1000000,2) YTD_REV from t_tc_qpcq2052
    where cntry='IND' and category='20'
    GROUP BY year, period
    ORDER BY YEAR, period
    I am able to see the chart, but I am not able to open or pass the value from one page to another page when I click the bar chart.
    Can you please help me on this.
    Thanks in Advance.

  • How can I display more than 15 rows in a stacked 3D horizontal flash chart

    It seems I cannot display more than 15 rows at a time in a stacked 3D horizontal flash chart.
    Any ideas?
    Thanks, Pierre

    The default history length of a chart is 1024. To make it longer is a right click option.

  • How to turn off scrollbars in Flash chart legend

    I recently migrated an Apex 3 app over to Apex 4. In the process I upgraded all of the Flash charts as well. Now, I get vertical scrollbars in some of the legends.
    How can I turn those scrollbars off? I don't see any settings in the UI and I haven't been able to work out the proper arguments in the XML to do it manually.
    Thanks for any pointers!
    --jb                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    in ipad

  • Flash Chart Legend

    I have built a 2D Line Flash chart with 6 series. My problem is that the legend shows the word "Value". Does anyone know how to make the legend display the series name instead.
    Jeff

    Varad,
    Thank you for your reply but your answer does not appear to be the solution I need. This SQL statement below used in a SVG Chart yields a legend using the series name. The same SQL statemnet used in a Flash Chart yields "Value" as the series name. Why?
    <pre>
    SELECT NULL link,
    to_char (minipay_detail_vw.event_dt, 'YYYY, MM') AS label,
    sum (minipay_detail_vw.contract_pay_amt) AS value
    FROM [email protected]
    WHERE minipay_detail_vw.object_class_cd = '018'
    AND to_char (minipay_detail_vw.event_dt, 'YYYYMM') <
    to_char (sysdate, 'YYYYMM')
    AND financial_organization_cd IN
    ('1650', '1655', '1660', '1665', '1670')
    AND (:p337_fy = '%null%' OR minipay_detail_vw.fiscal_year = :p337_fy)
    GROUP BY to_char (minipay_detail_vw.event_dt, 'YYYY, MM')
    ORDER BY to_char (minipay_detail_vw.event_dt, 'YYYY, MM')
    </pre>
    Jeff

  • Flash Chart Legend Problem

    Hi,
    Im having a problem with my flash chart legends in Apex3.0.
    I have changed the name of the Series to what i want to appear in my legend - however the legend just shows "Value" for all my Series.
    Does anyone else have this problem?
    Cheers,
    Immanuel

    Hello,
    I need a legend like this
    No of Clicks('000)
    If i give l" No of Clicks('000)" as column alias, chart says Error :No chart data available.
    If i give "No of Clicks('000')" or "No of Clicks(''000)" as column alias in the query, it displays the correct legend..
    Would anybody tell me how to show the legend like this
    No of Clicks('000)
    Regards,
    Archana

  • The flash chart Link not opening in oracle Apex 4.1

    I have created a flash chart (Pie chart ) on the latest version 4.2.
    Everything is workinfine when I have created a hidden item and associated a computation to it and added that in custom color option in chart attributes
    I am able to customize this again in this version
    But When I have done same thing in Apex 4.1
    I am able to see the output .but When I try to change the color and click on chart attributes it throws an error showing no data found
    Kindly help me in solving this error .

    Hi,
    To assist in resolving your issue, could you please outline the steps you've carried out in your 4.1 environment? Also, could you please confirm exactly what version of APEX you are referring to - 4.1.0 or 4.1.1?
    Regards,
    Hilary

  • Flash Chart Legend Not In Capitals

    I have created a flash chart based upon a function returning sql. The chart displays fine but the legend column names for some reason are converted to initial capitals from all originally being in capitals, eg "SERIES" now equals "Series". I really need the legend to display all capitals as it is in the sql.
    For example:
    The function returns a string similar to this .......
    select NULL as "LINK",
    WEEK as "LABEL",
    VALUE1 as "VALUE1,
    VALUE2 as "VALUE2"
    from MY_TABLE
    order by WEEK
    When the flash chart is rendered on the page the legend displays the two series values as "Value1" and "Value2". Somehow the chart ignores the capital case of the column names and applies initial capitals only over riding the original case.
    There appears to be no over ride for the legend case so where is it coming from ? It shouldn't make any difference but the chart type is a "3D column" style. Not sure if this is a XML question or maybe a Flash Player issue.
    Regards,
    Jack.

    I had the same problem.
    To fix it:
    1. Find a font that is strictly caps. I used Felix Titling.
    2. Edit the flash chart & under the chart attributes set USe Custom XML to yes.
    3. Scroll down almost to the bottom and find the legend tag.
    4. In the font tag for the legend substitute the font you chose.
    This will capitalize ALL the letters in the legend.
    I don't know how to selectively capitalize letters.
    Bob Richards

  • Apex 3.1 and Custom Flash Charts

    I am having difficulty getting to the point where my custom flash charts can be displayed. I have Oracle 10.2, over OHS to Apex 3.1. I cannot post any of the config files or code here because it is a different network, so I realize it will be hard to troubleshoot; and I apologize in advance.
    I would use the canned Flash charts, but my application displays data much like MS Outlook's multi-user calendar does. The chart has to be color coded, similar to Outlook's Busy vs Tentative etc. It has to show multiple events at various times, including overlapping times. And it has to handle schedules for multiple people. Lastly, there are of course gaps in the schedule, because no day is comprised entirely of meetings. That is why I felt I had to do it manually.
    I wrote XML/SVG code to do this previously, with HTML DB 1.5, and it worked fine. But Flash is the way we are going now, and I can't use SVG anymore. (Besides, Adobe says SVG will no longer be supported next year.)
    I followed the thread of April 07 in which MAdelfio posted suggestions, but I can't get it right. I did everything listed except I never included the <data>...</data> code, because I am not sure where it goes. I have a custom written stored proc, exactly like in the thread, and I pass it all the args that apex_util.flash wants. I get a malformed XML message when I try to display the chart. That seems like it should be a very straight forward error, but I can't figure out where to look. I have been using 1.5 for about a year, and last month upgraded to 3.1.
    Any suggestions on how to troubleshoot this? Or, failing that, any simple examples that display Flash charts in which the code was generated by a stored procedure?
    Thanks,
    Michael

    I'm sorry about not being able to provide all the info you need. Since it is on a totally separate network, with no access to the outside world, the only way I can do it is to print and retype everything. So I was hoping that someone could just provide suggestions as to where to look rather than providing answers. I understand that it is impossible for you to solve my problems, especially when you have been given no real information. And I don't want to keep you guessing -- I'd love to be able to just show everything and ask for help; I just can't.
    Anyway, I am trying to use only those facilities provided with Apex. I do not have any 3rd party tools except for Perl. I am using the standard shockwave flash plugin for Mozilla. The way I did it with SVG was to create a stored procedure that generated an XML file. I put a button on the page that ran the stored proc and then redisplayed the page, with an HTML region. That region included an iframe, where the source was a perl script that merely regurgitated the SVG script (for some reason I could not get the iframe to accept XML as a source, so I created send_svg.pl, which merely outputted the named SVG file).
    The format I followed was in this thread: Re: Custom Flash Charts
    I even created a replacement proc for APEX_UTIL.FLASH with the exact output as the thread, knowing that even if it worked I'd still have a ton of work making it produce my chart. But once I can get the infrastructure right, I feel I can write the flash XML.
    Maybe the easiest thing is to scan that thread I referenced and tell me if it is still accurate? That is, could anything have changed in 3.0.1, or should it still work? It is possible, maybe even likely, that I made a mistake retyping all that stuff, so maybe just verifying that it SHOULD work is a good start.
    Thanks again, and sorry again.
    Michael

  • APEX 3.0 - flash chart using 'Omit label interval'- missing lines in legen

    Hi,
    we are using APEX 3.0 on XE as development database.
    Using the option "omit label interval" in the flash chart configuration, the legend will show the entries the same way as the x-axis.
    For example:
    setting omit label interval to 23 to get only one entry per day on the x-axis (we have one value for every hour of the day and want to display the chart on monthly base). My chart containing 2 series will show only the legend entry for the first serie.
    How can I display the second one ?
    Greetings
    Marco

    Marco,
    Unfortunately, that's a bug in APEX 3.0. The 3.0.1 patch set will include a fix for it.
    Marco

  • Error while creating the Flash Chart

    Hi ,
    While creating the Flash Chart i got the following error..
    Error Item ID (4789301958029267) is not an item defined on the current page.
    What does it mean????
    My Chart Series is:
    SELECT NULL LINK, DISTRIBUTOR, CLGASSETS, FOLIOS FROM (
    select NULL Link, distributor,SUM(Clgassets) Clgassets,SUM(folios) FOLIOS from (
           select Month,distributor,
                  clgassets,sales,red,trxns,folios,
                  row_number() over(partition by SchType order by clgassets desc) rn,
                  dense_rank() over(partition by SchType order by clgassets desc) den_rank
              from(
                    Select Month,
                    Scheme_type SchType,
                    Broker Distributor,
                    sum(CLGASSETS)  CLGASSETS,
                    sum(SALES) SALES,
                    sum(RED)  RED,
                    sum(TRXNS) TRXNS,
                    sum(FOLIOS) FOLIOS
          from TABLE
                    MFDEX_TOPN_QUERY_PKG.TOPN_REPORT_QUERY
                 'OWNPERF',
                 :p_amc_code,
                 'X',
                 'X',
                 :p6001_month,
                 'X',
                 'X',
                 'X'                       
                    )  op where instr(':'||:P6001_schtype||':',':'||scheme_type||':') > 0
                   group by Month, Scheme_type,Broker
                   order by CLGASSETS DESC)
             order by clgassets desc)
    where den_rank<=5
    GROUP BY DISTRIBUTOR
    ORDER BY Clgassets DESC)
    WHERE ROWNUM<=5Help me out to clear this error.
    Cheers,
    Shan.

    Hi Sa'ad
    Its been a little while since I used Web Analysis but I remember that there are issues if you have more than 1 dimension in rows or columns. What I cannot remember is whether it automatically shifts a dimension to the page or whether as you suggest it just doesn't display.
    Pie charts can only display data from two dimensions (1 rows, 1 columns), you can filter using dimensions on pages. If that doesn't give you what you need then I'm afraid you need to stick to a different chart type.
    Hope this helps
    Stuart

  • Flash Charts - How to manipulate the #data# replacement string in XML

    I have a problem with the XML file for a flash chart. I am trying to display a 2dColumn chart of an SQL query with the general form:
    select null link, x as name, sum(y) as value from z group by (x);
    this generates multiple rows, which are displayed as a bar in the chart. So far so good. The problem is, that each row is defined as a block in the chart, but only one name entry is created "value", which is displayed in the legend of the chart.
    I can display the block names on the x-axis of the chart, however, I can't rotate them, so that they don't overlap in the display, which I would be able to do with names. I assume, that the blocks are defined in the #data# replacement string of the XML file. I would like to change the generated XML replacement string from the SQL to make each row selected a different name, and only have one block ("value").
    What would be the easiest way to achieve this?

    user587996,
    There's no way to manipulate the #data# replacement directly, but you could generate your own XML (see Re: Apex changing nulls to zeroes when creating Flash Charts for one way to do it).
    When you say "I can't rotate them, so that they don't overlap in the display" -- have you tried the Labels Rotation chart attribute, or is that not working?
    - Marco

  • How to include Flash chart in a PDF report file

    Dear all,
    I want to add chart in pdf file. I used Jfreechart and all done.
    Now i want to move further, i want to add flash chart instead of simple chart in pdf report file.
    I searched on net and found "AlivePDF", i want to know is there any other possible way to add flash chart in a pdf report file.
    Also sample code is most welcome.
    I am not sure about exact forum for this question, please help me with forum category if i need to post this question there.
    Deepak Kumar

    Indeed, you are in the wrong forum, reducing your chances to get a good answer...
    You are in the JavaFX forum, which is only remotely related to Flash and quite far from PDF...

  • How to display 3 lines in an AnyChart candlestick flash chart ?

    Hi,
    I have a nice Candlestick flash chart and I am using Anychart 5.1.2. i would like to display 3 horizontal bar lines on this chart.
    The values on the y axis on these 3 bar lines are contained into 3 items. Do you have an idea on how to display these lines with the XML ? Here is the XML existing.
    <?xml version = "1.0" encoding="utf-8" standalone = "yes"?>
    <root>
      <type>
        <chart type="Candlestick">
          <animation enabled="no"/>
          <hints auto_size="yes">
            <text><![CDATA[{NAME}
    Niveau maxi: {HIGH}
    Niveau moyen: {OPEN}
    Niveau mini: {LOW}]]>
    </text>
            <font type="Verdana" size="10" color="0x000000" />
          </hints>
          <names show="yes" width="150" placement="chart" position="bottom" >
            <font type="Verdana" size="10" color="0x000000" />
          </names>
          <values show="no" prefix="" postfix=" m ngf" decimal_separator="." decimal_places="0" />
          <arguments show="no" />
          <candlestick_chart>
            <bulls>
              <background enabled="yes" color="White" />
            </bulls>
            <bears>
              <background enabled="yes" color="Black" />
            </bears>
          </candlestick_chart>
        </chart>
        <workspace>
          <background enabled="yes" type="solid" color="0xffffff" alpha="0" />
          <base_area enabled="no" />
          <chart_area enabled="yes" x="80" y="50" width="670" height="280" deep="0">
            <background enabled="no"/>
            <border enabled="yes" size="1"/>
          </chart_area>
          <name text="&P8_SITE_AFF. - Niveau du &P8_DATE_DEBUT. au &P8_DATE_FIN. - Pas de temps : &P8_TRUNC. (DD : Jour, HH24 : Heure, MI : Minute)" >
          <font type="Verdana" size="14" color="0x000000" align="center" />
          </name>
    <x_axis name="Niveau min : &P8_NIVEAU_MIN. m ngf - Niveau max : &P8_NIVEAU_MAX. m ngf - Niveau moyen : &P8_NIVEAU_MOYEN. m ngf" smart="yes" position="center_bottom" >
            <font type="Verdana" size="14" color="0x000000" bold="no" align="center" />
          </x_axis>
          <y_axis name="Niveau" smart="yes" position="left_center" >
            <font type="Verdana" size="14" color="0x000000" bold="no" align="center" />
          </y_axis>
          <grid>
            <values />
          </grid>
        </workspace>
        <legend enabled="no"/>
      </type>
      #DATA#
    </root>Thank you for your kind help.
    Christian

    Hi,
    I have a nice Candlestick flash chart and I am using Anychart 5.1.2. i would like to display 3 horizontal bar lines on this chart.
    The values on the y axis on these 3 bar lines are contained into 3 items. Do you have an idea on how to display these lines with the XML ? Here is the XML existing.
    <?xml version = "1.0" encoding="utf-8" standalone = "yes"?>
    <root>
      <type>
        <chart type="Candlestick">
          <animation enabled="no"/>
          <hints auto_size="yes">
            <text><![CDATA[{NAME}
    Niveau maxi: {HIGH}
    Niveau moyen: {OPEN}
    Niveau mini: {LOW}]]>
    </text>
            <font type="Verdana" size="10" color="0x000000" />
          </hints>
          <names show="yes" width="150" placement="chart" position="bottom" >
            <font type="Verdana" size="10" color="0x000000" />
          </names>
          <values show="no" prefix="" postfix=" m ngf" decimal_separator="." decimal_places="0" />
          <arguments show="no" />
          <candlestick_chart>
            <bulls>
              <background enabled="yes" color="White" />
            </bulls>
            <bears>
              <background enabled="yes" color="Black" />
            </bears>
          </candlestick_chart>
        </chart>
        <workspace>
          <background enabled="yes" type="solid" color="0xffffff" alpha="0" />
          <base_area enabled="no" />
          <chart_area enabled="yes" x="80" y="50" width="670" height="280" deep="0">
            <background enabled="no"/>
            <border enabled="yes" size="1"/>
          </chart_area>
          <name text="&P8_SITE_AFF. - Niveau du &P8_DATE_DEBUT. au &P8_DATE_FIN. - Pas de temps : &P8_TRUNC. (DD : Jour, HH24 : Heure, MI : Minute)" >
          <font type="Verdana" size="14" color="0x000000" align="center" />
          </name>
    <x_axis name="Niveau min : &P8_NIVEAU_MIN. m ngf - Niveau max : &P8_NIVEAU_MAX. m ngf - Niveau moyen : &P8_NIVEAU_MOYEN. m ngf" smart="yes" position="center_bottom" >
            <font type="Verdana" size="14" color="0x000000" bold="no" align="center" />
          </x_axis>
          <y_axis name="Niveau" smart="yes" position="left_center" >
            <font type="Verdana" size="14" color="0x000000" bold="no" align="center" />
          </y_axis>
          <grid>
            <values />
          </grid>
        </workspace>
        <legend enabled="no"/>
      </type>
      #DATA#
    </root>Thank you for your kind help.
    Christian

Maybe you are looking for

  • Creating a FD sales order for free service

    Hi thr, We have a requirement to create a free of charge sales order with item category similar to TAD (like a service material). I've copied FD sales order type to create a new sales doc type and then I created a new item category similar to TAD. I

  • Web service task: Error when returning an empty array

    Hi, I've encountered an annoying error when using a Web Service Task from an SSIS package in SQL Server Data Tools. [Web Service Task] Error: An error occurred with the following error message: "Microsoft.SqlServer.Dts.Tasks.WebServiceTask.Webservice

  • Converting scientific notation string to number?

    This is raising an error: > ToNumber (u201C2.75E-05u201D) How do you convert scientific notation strings to numbers? This is coming from XML. I can probably have the XML written so that it's not scientific notation. Tim

  • You have no authorization for the requested data. Message no. UPC217

    Hi All, When i execute a BPS planning function i am getting the following error. 'You have no authorization for the requested data. Message no. UPC217' Plz let me know how to rectify the problem asap. Thank you all in advance Kiran

  • Validations in MDM

    Hi MDM guru's, I am just 1 month old in MDM with ABAP background. I have few questions regarding MDM Validations-- We use flat files(Text) to load data into MDM. I have a secnerio -- When sending Vendors Data into MDM, it shuld not syndicate the reco