Flash Chart with Asynchronous Update

Hello all,
I'm trying to use the Asynchronous Update option of the chart's, but in different version of APEX it doens't work.
In my local DB I have APEX v. 4.0.1.00.03 and it works fine, loads the graphic and keep updating, but in the server the graphic is loaded but when it goes refreshing the chart disappear instead, the version is 4.0.0.00.46 .
Both charts have the same configuration and the standard query:
SELECT sum(case when COMM is null
                     then 0
                when COMM = 0
                     then 0
                else 1
                end) value,
       count(*) max_value
            FROM EMP Something I did noticed that is different at the source code is that one have the function apex_RefreshFlashChart and the other have apex_RefreshChart Is it really related to the version, or am i missing something?
Thanks,
Alan Martini.

Hi,
it was a bug, corrected in patch 4.0.1 (bug 9868860), see http://www.oracle.com/technetwork/developer-tools/apex/application-express/401-patch-166923.html#BABJCAFA.
It's why it don't works with APEX 4.0.0.

Similar Messages

  • Off the shelf Flash chart with live update and slider?

    Does anyone know of any good off the shelf Flash line chart
    that has
    1. Live AJAX-type update of data (without reloading entire
    Flash chart)
    2. Horizontal axis slider to be able to zoom in (like the
    time slider on Google Finance)
    I have been using
    XML/SWF
    chart chart but find that its live update is clunky.
    Is doing a custom chart our best bet?
    Thanks! Chirag

    Hi,
    it was a bug, corrected in patch 4.0.1 (bug 9868860), see http://www.oracle.com/technetwork/developer-tools/apex/application-express/401-patch-166923.html#BABJCAFA.
    It's why it don't works with APEX 4.0.0.

  • Flash chart with dynamic sql query does not display

    Hi,
    In my schema SIVOA I have a lot of tables declared like this :
      CREATE TABLE "SIVOA"."EVV_xxxx"
       (     "CLEF_VAR" NUMBER(4,0),
         "DATE1" DATE,
         "VALEUR" NUMBER(16,8) Only the last part of the name changes "xxxx". For example E009, E019, etc....
    I am making a chart page with report and want the user to select a name of a table and I will display using dynamic sql query, the table report and chart.
    P184_ENAME is a select list returning the last part of the name of the table, fro example 'E009', 'E019', etc.
    P8_CLEF_VAR is an item containing a value. This value is a key retrieved like this :SELECT CLEF_VAR
    FROM SIVOA.SITE_ECHELLE
    WHERE SITE = :P184_ENAMEI built a classic report using a sql dynamic function :DECLARE
    x VARCHAR2 (4000);
    BEGIN
    x := 'SELECT NULL, DATE1, VALEUR FROM SIVOA.EVV_'
    || UPPER(:p184_ename)
    || ' WHERE CLEF_VAR = :p8_clef_var' ;
    RETURN (x);
    END;:p8_clef_var is an itme containing the value '4544'.
    This works perfectly fine !
    When I use this sql fucytion into a flash chart it does not work. I get this message "No data found".
    I do not understand why a the report get a result and not the chart !
    But if i hard-code the number of the CLEF_VAR instead of fetching it from :p8_clef_var I get a nice chart ! Go figure !DECLARE
    x VARCHAR2 (4000);
    BEGIN
    x := 'SELECT NULL, DATE1, VALEUR FROM SIVOA.EVV_'
    || UPPER(:p184_ename)
    || ' WHERE CLEF_VAR = 4544 ' ;
    RETURN (x);
    I cannot stay with the key (CLEF_VAR) hard-coded unformtunately !
    My question is how to get the chart displaying properly ??
    Thank you for your kind answers.
    Christian                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Alex,
    Using your request, with the classic report I get results (data), but I get the same message with the Flash chart : "No data found" ! I don't know how to investigate this. i tried many things but nothing works.
    Christian
    PS I tried this :
    DECLARE
       X   VARCHAR2 (4000);
    BEGIN
    x := 'SELECT NULL, DATE1, ROUND(VALEUR,2) FROM SIVOA.EVV_'
          || UPPER (:p184_ename) ||
          ' WHERE CLEF_VAR = '
          || :p8_clef_var ||
          ' AND DATE1 BETWEEN TO_DATE ('''
    ||:P8_DATE_DEBUT||''', ''DD/MM/YYYY HH24:MI'') AND TO_DATE ('''
    ||:P8_DATE_FIN||''', ''DD/MM/YYYY HH24:MI'')'
    RETURN (X);
    END; But it does not work either. I could find that the SLQ syntax generated is good becaus I put it into an item which display the return done by the pls/sql.
    What is sttange also with the classic report is that if I do click on next or previous to see another rows, I get the message "No data found". If I try to export the report I get an excel file with "No data fouid".
    Does anybody already tried my "need" here ? i find strange thant I should not be the firs one trying to get a report an tables which name would be "dynamic".
    Tahnk you.
    Edited by: Christian from France on Feb 13, 2009 3:05 AM

  • Apex flash charts with date values on the x axis

    I am playing around in Apex 4 using flash charts and having a bit of troubles playing with dates on the x axis on a 2d line chart.
    What I am trying to achive is a values plotted across the chart and the date/time values are not a constent (ie not continually say 1 hour apart) hence why I want to use a datatype of date.
    In the SQL below:
    select null as link,  sysdate -2  as value, 0 as label from dual
    union
    select null , sysdate -2+1/24 , 1 from dual
    union
    select null , sysdate -2+2/24 , 2 from dual
    union
    select null , sysdate -2+5/48, 1 from dual
    union
    select null , sysdate -2+3/24, 0 from dual;I get a 2D Line chart but each date/time value is equally space apart (ie sysdate -2, sysdate -2+1/24, sysdate -2+2/24 and sysdate -2+3/24 should be 1 unit apart and sysdate -2+5/48 should be half way between sysdate -2+2/24 and sysdate -2+3/24).
    I think I have to use custom xml. Using http://www.anychart.com/products/anychart/docs/xmlReference/index.html and http://www.anychart.com/products/anychart/docs/users-guide/DateTime-Axes.html I edited the XML and changed:
    <?xml version = "1.0" encoding="utf-8" standalone = "yes"?>
    <anychart>
      <settings>
        <animation enabled="false"/>
        <no_data show_waiting_animation="False">
          <label>
            <text></text>
            <font family="Verdana" bold="yes" size="10"/>
          </label>
        </no_data>
      </settings>
      <margin left="0" top="" right="0" bottom="0" />
      <charts>
        <chart plot_type="CategorizedVertical" name="chart_1614502819445708">
          <chart_settings>
            <title enabled="False" />
            <chart_background>
              <fill type="Solid" color="0xffffff" opacity="0" />
              <border enabled="false"/>
              <corners type="Square"/>
            </chart_background>
            <data_plot_background>
            </data_plot_background>
            <axes>
              <y_axis >
                <scale   mode="Normal"    />
                <title enabled="false" />
                <labels enabled="true" position="Outside">
                  <font family="Tahoma" size="10" color="0x" />
                  <format><![CDATA[{%Value}{numDecimals:0,decimalSeparator:.,thousandsSeparator:\,}]]></format>
                </labels>
                <major_grid enabled="False"/>
    <minor_grid enabled="False"/>
              </y_axis>
              <x_axis>
                <scale  mode="Normal"    />
                <title enabled="false"/>
                <labels enabled="true" position="Outside">
                  <font family="Tahoma" size="10" color="0x" />
                  <format><![CDATA[{%Value}{numDecimals:0,decimalSeparator:.,thousandsSeparator:\,}]]></format>
                </labels>
                <major_grid enabled="True" interlaced="false">
                    <line color="Black" />
                  </major_grid>
    <minor_grid enabled="True">
                  </minor_grid>
              </x_axis>
            </axes>
          </chart_settings>
          <data_plot_settings enable_3d_mode="false" >
            <line_series>
              <tooltip_settings enabled="true">
                <format><![CDATA[{%Name}{enabled:False} - {%Value}{numDecimals:0,decimalSeparator:.,thousandsSeparator:\,}]]></format>
                <font family="Tahoma" size="10" color="0x" />
                  <position anchor="Float" valign="Top" padding="10" />
              </tooltip_settings>
              <label_settings enabled="true" mode="Outside" multi_line_align="Center">
                <format><![CDATA[{%Value}{numDecimals:0,decimalSeparator:.,thousandsSeparator:\,}]]></format>
                <background enabled="false"/>
                <font family="Tahoma" size="10" color="0x" />
              </label_settings>
              <line_style>
                                <line enabled="true" thickness="1" opacity="1" />
              </line_style>
              <marker_settings enabled="True" >
                <marker type="Circle" />
              </marker_settings>
            </line_series>
          </data_plot_settings>
    #DATA#
        </chart>
      </charts>
    </anychart>to
    <?xml version = "1.0" encoding="utf-8" standalone = "yes"?>
    <anychart>
      <settings>
        <animation enabled="false"/>
        <no_data show_waiting_animation="False">
          <label>
            <text></text>
            <font family="Verdana" bold="yes" size="10"/>
          </label>
        </no_data>
        <locale>
          <date_time_format>
            <format>%HH:%mm:%ss %dd/%MM/%yyyy</format>
          </date_time_format>
        </locale>
      </settings>
      <margin left="0" top="" right="0" bottom="0" />
      <charts>
        <chart plot_type="CategorizedVertical" name="chart_1614502819445708">
          <chart_settings>
            <title enabled="False" />
            <chart_background>
              <fill type="Solid" color="0xffffff" opacity="0" />
              <border enabled="false"/>
              <corners type="Square"/>
            </chart_background>
            <data_plot_background>
            </data_plot_background>
            <axes>
              <y_axis >
                <scale   mode="Normal"    />
                <title enabled="false" />
                <labels enabled="true" position="Outside">
                  <font family="Tahoma" size="10" color="0x" />
                  <format><![CDATA[{%Value}{numDecimals:0,decimalSeparator:.,thousandsSeparator:\,}]]></format>
                </labels>
                <major_grid enabled="False"/>
    <minor_grid enabled="False"/>
              </y_axis>
              <x_axis>
                <scale  mode="Normal" type="DateTime"    />
                <title enabled="false"/>
                <labels enabled="true" position="Outside">
                  <font family="Tahoma" size="10" color="0x" />
                  <format><![CDATA[{%Value}]]></format>
                </labels>
                <major_grid enabled="True" interlaced="false">
                    <line color="Black" />
                  </major_grid>
    <minor_grid enabled="True">
                  </minor_grid>
              </x_axis>
            </axes>
          </chart_settings>
          <data_plot_settings enable_3d_mode="false" >
            <line_series>
              <tooltip_settings enabled="true">
                <format><![CDATA[{%Name}{enabled:False} - {%Value}{numDecimals:0,decimalSeparator:.,thousandsSeparator:\,}]]></format>
                <font family="Tahoma" size="10" color="0x" />
                  <position anchor="Float" valign="Top" padding="10" />
              </tooltip_settings>
              <label_settings enabled="true" mode="Outside" multi_line_align="Center">
                <format><![CDATA[{%Value}{numDecimals:0,decimalSeparator:.,thousandsSeparator:\,}]]></format>
                <background enabled="false"/>
                <font family="Tahoma" size="10" color="0x" />
              </label_settings>
              <line_style>
                                <line enabled="true" thickness="1" opacity="1" />
              </line_style>
              <marker_settings enabled="True" >
                <marker type="Circle" />
              </marker_settings>
            </line_series>
          </data_plot_settings>
    #DATA#
        </chart>
      </charts>
    </anychart>and change the SQL series to:
    select link, to_char(value, 'HH24:MI:SS DD/MM/YYYY') as value, label from
    select null as link,  sysdate -2  as value, 0 as label from dual
    union
    select null , sysdate -2+1/24 , 1 from dual
    union
    select null , sysdate -2+2/24 , 2 from dual
    union
    select null , sysdate -2+5/48, 1 from dual
    union
    select null , sysdate -2+3/24, 0 from dual)But the chart changes from a line chart to a bar chart with each value being equally spaced.
    Can anyone see what I am doing wrong or point me in the right direction? Thanks in advance.

    This will be a little bit lengthy answer, but I guess it will be easier to understand what I meant to say.
    I created a table that contains values you used as a data source (just to make my life easier):
    SQL> alter session set nls_date_format = 'dd.mm.yyyy hh24:mi:ss';
    Session altered.
    SQL> select * from test;
    VALUE                    LABEL
    12.10.2010 09:03:45          0
    12.10.2010 10:03:45          1
    12.10.2010 11:03:45          2
    12.10.2010 11:33:45          1
    12.10.2010 12:03:45          0
    SQL> alter session set nls_date_format = 'hh24:mi';
    Session altered.From now on, we'll see only hours and minutes.
    Step 1: current and previous values - difference in number of MINUTES
    SQL> select t.value,
      2         lag(t.value) over (order by t.value) previous_value,
      3         (t.value - lag(t.value) over (order by t.value)) * 24 * 60 minutes_diff
      4  from test t;
    VALUE PREVI MINUTES_DIFF
    09:03
    10:03 09:03           60
    11:03 10:03           60
    11:33 11:03           30
    12:03 11:33           30Step 2: a little bit of calculation:
    - TIME_SPAN: how many minutes are there between MIN and MAX date?
    - MIN_DIFF: what is the minimum time difference (minutes)?
    - SLICES: how many time slices do we want on the x-axis?
    SQL> select
      2    min(x.value) min_val,
      3    max(x.value) max_val,
      4    min(x.minutes_diff) min_diff,
      5    (max(x.value) - min(x.value)) * 24 * 60 time_span,
      6    (max(x.value) - min(x.value)) * 24 * 60 / min(x.minutes_diff) slices
      7  from (select t.value,
      8               lag(t.value) over (order by t.value) previous_value,
      9               (t.value - lag(t.value) over (order by t.value)) * 24 * 60 minutes_diff
    10        from test t
    11       ) x;
    MIN_V MAX_V   MIN_DIFF  TIME_SPAN     SLICES
    09:03 12:03         30        180          6There's 180 minutes between 09:03 and 12:03; minimum time difference in our TEST table is 30 minutes, so - we want to have 6 time slices on the x-axis (180 / 30).
    Step 3: row generator technique: let's create time values that are missing:
    SQL> select y.min_val + (level - 1) * y.min_diff / (24 * 60) val
      2  from (select
      3          min(x.value) min_val,
      4          max(x.value) max_val,
      5          min(x.minutes_diff) min_diff,
      6          (max(x.value) - min(x.value)) * 24 * 60 time_span,
      7          (max(x.value) - min(x.value)) * 24 * 60 / min(x.minutes_diff) slices
      8        from (select t.value,
      9                     lag(t.value) over (order by t.value) previous_value,
    10                     (t.value - lag(t.value) over (order by t.value)) * 24 * 60 minutes_diff
    11              from test t
    12             ) x
    13       ) y
    14  connect by level <= y.slices + 1;
    VAL
    09:03
    09:33
    10:03
    10:33
    11:03
    11:33
    12:03
    7 rows selected.OK, now we have 30 minutes between every time value.
    Step 4: join newly generated time values with the original table. Use OUTER JOIN; missing labels will be 0 (zero):
    SQL> select
      2    null link,
      3    to_char(z.val, 'hh24:mi') new_value,
      4    nvl(t1.label, 0) new_label
      5  from (select y.min_val + (level - 1) * y.min_diff / (24 * 60) val
      6        from (select
      7                min(x.value) min_val,
      8                max(x.value) max_val,
      9                min(x.minutes_diff) min_diff,
    10                (max(x.value) - min(x.value)) * 24 * 60 time_span,
    11                (max(x.value) - min(x.value)) * 24 * 60 / min(x.minutes_diff) slices
    12              from (select t.value,
    13                           lag(t.value) over (order by t.value) previous_value,
    14                           (t.value - lag(t.value) over (order by t.value)) * 24 * 60 minutes_diff
    15                    from test t
    16                   ) x
    17             ) y
    18        connect by level <= y.slices + 1
    19       ) z,
    20       test t1
    21  where t1.value (+) = z.val
    22  order by z.val;
    L NEW_V  NEW_LABEL
      09:03          0
      09:33          0
      10:03          1
      10:33          0
      11:03          2
      11:33          1
      12:03          0
    7 rows selected.Cool, so we have them all. Now, go to Apex and create a chart using a query from step #4.
    I tested it - it displays something which means that it should work for you too (unfortunately, this forum doesn't accept attachments so that you could see it). Now, I can't tell whether that's what you need or not, but - if the idea itself is OK, it can be adjusted (I hope so).

  • 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

  • Flash chart and multiple Y-Axis

    Hi,
    I have to create a flash chart with a bar and a line graphic in 1 graphic output
    The left Y-axis should show the values of the bar (i.e. 0 - 20.000) and the right Y-axis should show the percetage value of the line graphic (0 - 100).
    How can I scale the different values and order it th left or right like EXCEL (APEX 4.1)
    Please help me
    Regards,
    Siegwin

    Hi Siegwin,
    thanks for providing access to your workspace. The reason that that second line is not behaving as you expect is because that series of the chart is not associated with the extra Y-Axis. As I mentioned in my previous posting, the extra Y-axis only gets associated with the second series of your chart. In your case, you're actually looking to associate series 2 and 4 with the extra Y-axis. In order to achieve that behaviour you could do one of the following:
    *1*. Hard-code the data in your custom XML region, ensuring you update the XML tags for the 4th series to look as follows:
    <series name="BX old failurre" type="Line" color="0xDBDC25" y_axis="extra_y_axis_1">instead of how it is currently generated for your chart on Page 1:
    <series name="BX old failurre" type="Line" color="0xDBDC25" >
    NOTE: the extra Y-axis will only be associated with the series where the attribute y_axis="extra_y_axis_1" is included.
    This option is not ideal, because you are hard-coding data in the chart, which won't be updated to reflect any changes to the underlying data.
    *2*. Split your chart out in to two separate charts instead of attempting to represent them on one, as done on Page 2 of your application. NOTE: the first chart is using some custom XML to set the maximum value of the extra series to 100.
    *3*. Generate your own <data> tags, to ensure that the extra Y-axis is associated with your selected series. This would require doing something similar to the Thresholds example here: http://apex.oracle.com/pls/apex/f?p=36648:35 - where you are basically overriding the #DATA# substitution string for your chart and replacing it with your own <data> tags.
    In a future release, we'll look at exposing options on the Chart Attributes page to allow for the setting of attributes specifically for the extra Y-Axis, and also allow for the specification of which series the extra Y-axis should be associated with. In the meantime, I think Option 2 above is your easiest option.
    Regards,
    Hilary

  • 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

  • Display Dynamic HTML beside Flash Chart in Chart Region

    Hello,
    I have a vertical 3D flash chart with some categories I,II,IV... on x-axix. I have to show a legend beside the chart dynamically depending on the categories displayed like (I - PC, II - TV, IV-Laptop....) First I tried to do this with static data. I modified, Region Source of Chart region to include the legend. I am successful to create a table & put some static html code. Now I want this to be dynamic.
    I found that with shotcuts I can put dynamic HTML code. I created shortcut with PL/SQL & successfully displayed them in a 'HTML REGION WITH SHORTCUTS', but I want that in Chart Region, not as a separate region. Shortcut is not working in Chart region.
    How can I achieve this? Is there a way to call a process or substitution string or some thing from Chart Region to display my legend dynamically beside the chart.
    Experts any hint is appreciated.
    Sowji.

    Experts,
    Can you please give any hint how this can be achieved? If I keep the dynamic legend as HTML with Shortcut region, the width & height are not matching with the chart region as it is dynamic. Also, I am unable to combine both 'chart' & 'html with shortcut' region to look like one region. So I am looking for options to insert the dynamic html in to chart region.
    Sowji.

  • Flash Chart 2d line issue

    I am using a flash chart - 2d line.
    The purpose of the chart is to show the percentage completed by the specified date. The percentage does not go up all the time. Some times it can go down also. We are capturing the comments if the percentage goes down.
    The following is the query. When there is only one entry, the line goes across on the top of the bar chart. It does not reflect what I wanted. I wanted the chart to start at 0 and progress towards 100%
    SELECT NULL LINK, date, Percentage FROM tableA where id=:id ORDER BY 2
    Thanks in advance

    Thank you Dimitri,
    I tried specifying the colors myself, but that didn't helped.
    What do you mean by putting the example online ... where?
    In fact to see this bug is very simple: it is enough to create a page with a standard 2dPie Flash Chart (with legend), and add a chart series with following source (series query):
    select null, rownum , mod(rownum,2) from all_objects
    where rownum<10
    Setting the Chart type to 2d pie or doughnut will have the mentioned problems, while the 3d pie not.
    For the moment we don't want to buy AnyChart 5.
    Regards,
    Boris

  • Change hint on flash chart

    Hi, we have a simple query and create a flash chart with the data
    select case when partition_name is not null then partition_name
    else table_name end table_name,
    max(report_date),
    max(mb_allocated)
    from tsreport, tsreport_obj
    where sid=refsid
    and tbs=tablespace_name
    and table_name = :P6_CHOOSEOBJECT
    and report_date between add_months(sysdate,-4) and sysdate
    group by table_name,partition_name, to_char(report_date,'WW')
    order by 2;
    Our link is table_name, as x value - we have the report_date and Y-Value is the numeric value mb_allocated;
    The default hint is mb_allocated, [reportdate] how we can change them to table_name|partition_name, mb_allocated, report_date ?
    We try to add the table_name to the query like report_date || ' ' || max(report_date) but them the chart shows only on the X-axis the name and not on the onmouseover tooltip?
    Thanks for any help;

    Hello,
    If you go to your Chart details and put the select list to Custom XML you find following code:
          &lt;hints auto_size="yes">
            &lt;text>&lt;![CDATA[{NAME}, {VALUE}]]>&lt;/text>
            &lt;font type="Verdana" size="10" color="0x000000" />
          &lt;/hints>You can change the NAME, VALUE there.
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/

  • 2D Column Flash Chart - Series Showing Zero Values in Chart

    Hi,
    I have created a 2D Column Flash Chart - with 6 series with different coloring of bars..I have obtained the result as I wanted.
    Now the problem is the distance between one series to another series is filled up with value 0.
    Anybody please help me remove the 0 value in chart which is coming between series.
    Thanks
    JP

    Hello,
    I guess you must have data that reflect the 0 value, no?
    In your query can you do WHERE value <> 0, so they don't get taken into account or is it the purpose to keep them in?
    Thanks.
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/

  • ASYNCHRONOUS updates

    Hi SAP Gurus,
    I have an idea about this, but I wanted to confirm with the experts. Asynchronous updates is something in which, "Messages can be persisted," and not, "Acknowledgment can be sent back," I am thinking this second option is more for Synchronous updates since it becomes a, "Blocking Mode." Am I right about this.
    Thanks,
    Adnan Abbasi

    Hi,
    Check these threads
    Synchronous Vs  ASynchronous
    Asynchronous and Synchronous
    Asynchronous Update – The program does not wait for the work process to finish the update. Commit Work.
    Synchronous Update – The program wait for the work process to finish the update. Commit Work and Wait.
    Asynchronous updating. In this mode, the called transaction does not wait for any updates it produces to be completed. It simply passes the updates to the SAP update service. Asynchronous processing therefore usually results in faster execution of your data transfer program.
    Asynchronous processing is NOT recommended for processing any larger amount of data. This is because the called transaction receives no completion message from the update module in asynchronous updating. The calling data transfer program, in turn, cannot determine whether a called transaction ended with a successful update of the database or not.
    If you use asynchronous updating, then you will need to use the update management facility (Transaction SM12) to check whether updates have been terminated abnormally during session processing. Error analysis and recovery is less convenient than with synchronous updating.
    Synchronous updating. In this mode, the called transaction waits for any updates that it produces to be completed. Execution is slower than with asynchronous updating because called transactions wait for updating to be completed. However, the called transaction is able to return any update error message that occurs to your program. It is much easier for you to analyze and recover from errors.
    DataBase Commit:
    This statement will apply any outstanding database updates and wait until they have actually been put on the database before proceeding to the next statement.
    An ordinary commit work will initiate the process to update the databases in a separate task and will press on in your abap.
    COMMIT WORK: ( Asynchronous)
    Your program does not wait for any acknowledgement. it just start executing the next statment after COMMIT WORK
    Reward points if helpful.
    Regards,
    Soumya

  • Synchronous or asynchronous update?

    how tables are effected by taking synchronous or asynchronous update?

    Hi,
    Synchronous Update – The program wait for the work process to finish the update. Commit Work and Wait.
    Asynchronous updating. In this mode, the called transaction does not wait for any updates it produces to be completed. It simply passes the updates to the SAP update service. Asynchronous processing therefore usually results in faster execution of your data transfer program.
    Asynchronous processing is NOT recommended for processing any larger amount of data. This is because the called transaction receives no completion message from the update module in asynchronous updating. The calling data transfer program, in turn, cannot determine whether a called transaction ended with a successful update of the database or not.
    If you use asynchronous updating, then you will need to use the update management facility (Transaction SM12) to check whether updates have been terminated abnormally during session processing. Error analysis and recovery is less convenient than with synchronous updating.
    Synchronous updating. In this mode, the called transaction waits for any updates that it produces to be completed. Execution is slower than with asynchronous updating because called transactions wait for updating to be completed. However, the called transaction is able to return any update error message that occurs to your program. It is much easier for you to analyze and recover from errors.
    Thanks,
    Kasiraman R

  • Asynchronous update of Flash chart error in IE

    Hi gurus,
    I had a post a while ago about an update command for a flash chart:
    [Asynchronous update of flash chart when select list value changes|http://forums.oracle.com/forums/thread.jspa?messageID=3491745]
    The goal was when I clicked a button or changed a select list the flash chart should update. Here is the command to update the flash chart:
    apex_RefreshChart ($v('pFlowStepId'), $v('Pxx_REGION_ID').substr(1), navigator.language );This worked really well in Firefox but IE always created an error:
    Details zum Fehler auf der Webseite
    Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
    Zeitstempel: Mon, 5 Oct 2009 06:16:52 UTC
    Message: Object doesn't support this property or method
    Line: 1
    Char: 31991
    Code: 0
    URI: http://apex.oracle.com/i/javascript/apex_3_1.jsTry this example:
    [http://apex.oracle.com/pls/otn/f?p=65555:23|http://apex.oracle.com/pls/otn/f?p=65555:23]
    I found out that IE used another function to get the client language. I fixed that but an error still occurs:
    Details zum Fehler auf der Webseite
    Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
    Zeitstempel: Mon, 5 Oct 2009 06:27:02 UTC
    Message: Unkown error.
    Line: 49
    Char: 5
    Code: 0
    URI: http://SERVER:8080/apex/f?p=150:1:10579031101899::NO::P1_I_ID,P1_INSTANCE_NAME:1,DB1That is the javascript I used now:
    //check the Browser type to set the right browser language
    function fnc_checkBrowserLanguage()
    var nav_lng="en"; //default language string
    if(navigator.language)nav_lng=navigator.language;
    if(navigator.browserLanguage)nav_lng=navigator.userLanguage;
    if(navigator.systemLanguage)nav_lng=navigator.systemLanguage;
    if(navigator.browserLanguage)nav_lng=navigator.browserLanguage;
    if(navigator.userLanguage)nav_lng=navigator.userLanguage;
    if(window.navigator.language)nav_lng=window.navigator.language;
    return nav_lng;
    // return 'en-us';
    function fnc_setTablespaceItem (pItem)
      var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=dummy',0);
      get.add(pItem,$x(pItem).value)
      gReturn = get.get();
    // alert('Item '+pItem+' Session State set to '+$x(pItem).value+'!');
      var v_flow_id = $v('pFlowStepId');
      var v_region_id = new String($v('P1_REGION_ID_TU').substr(1));
      var v_browser_lang = fnc_checkBrowserLanguage();
      //alert(v_flow_id);
      //alert(v_region_id);
      //alert(v_browser_lang);
      var vOriginal_apex_RefreshChart = apex_RefreshChart;
      apex_RefreshChart = function(v_flow_id,v_region_id,v_browser_lang)
        vOriginal_apex_RefreshChart(v_flow_id, v_region_id, v_browser_lang);
      apex_RefreshChart(v_flow_id, v_region_id, v_browser_lang);
      get = null;
    }If I set the alert boxed all variables have a value. Firefox works well. And I have no idea what I could do next???
    Tobias

    I just found out that the original time based flash update option creates the same error I get all the time. It can be configured under:
    Chart attributes > Refresh: Asynchronous Update = YES and Update Interval (Seconds) = 10
    Error: (line 49) (JScript - script block):
    function __flash__addCallback(instance, name) {
      instance[name] = function () {
        return eval(instance.CallFunction("<invoke name=\""+name+"\" returntype=\"javascript\">" + __flash__argumentsToXML(arguments,0) + "</invoke>"));
      }By the way I use the newest APEX version: "Application Express 3.2.1.00.10"
    Seems more like a general error? Everybody should be able to rebuild this under IE 8 or IE 7. I use IE8!
    Created source code:
    &lt;script type="text/javascript" language="javascript">
    function chart_r2258227549390282_InitRefresh(pNow) {
      setTimeout("chart_r2258227549390282_InitRefresh(true)",10000);
      if (pNow){apex_RefreshChart (1, '2258227549390282', 'de');}
    apex_SWFFormFix('c2258227549390282');
    &lt;/script>It still works well with Firefox.
    Tobias
    Edited by: Tobias Arnhold on Oct 6, 2009 2:37 PM

  • Can I use asynchronous update on a chart I generate from my own DB Package?

    I have created a database package that will generate a stacked bar graph in SVG with dynamically generated series based on a requirement I have been given.
    I would like to know if it is possible to take advantage of the asynchronous update mechanism available on Application Express for its own SVG charts?
    That is, as long as the package as a callable URL, can it be made to refresh as if it were a native SVG component of Application Express?

    Hello,
    Do not split your posts up across different threads askign for the same thing, it confuses the subject and makes it harder for people to help you.
    Asking a question should not be like a shotgun more like a sniper rifle, guess whos been playing first person shooters latley ;)
    Use this code in your plsql package to link in the correct javascripts.
    htp.prn('<script xlink:href="'||v('IMAGE_PREFIX')||'javascript/svg_js_includes/svg_common/oracle.svgInit.js"/>');
    htp.prn('<script xlink:href="'||v('IMAGE_PREFIX')||'javascript/svg_js_includes/svg_common/oracle.svgNodes.js"/>');
    htp.prn('<script type="text/ecmascript">');
    htp.prn('<![CDATA[');
    htp.prn('function htmldb_Load(evt){');
    htp.prn(' myTimer = setTimeout('svgSync();','5000');');
    htp.prn('}]]>');
    htp.prn('</script>');
    and add attribute to the top level &lt;svg> tag
    onload="htmldb_Load(evt)"
    that will reload yoru svg every 5 seconds
    Carl

Maybe you are looking for

  • Cannot add a new email account

    I have 3 email accounts set up in my iPhone: one Exchange and two Google accounts. Today I tried to add a Road Runner account and got to the screen to enter my user info and password. I enter that info and click save. Then the phone exits the screen

  • Not scheduling on manual creation of planned order

    Creating planned order through MD11 and noticed there scheduling not done and capacity planning not done and on doing scheduling manually dates altered and capacity planned which are appearing in CM01 for the respective week Planned order created thr

  • Select query with secondary index

    hi, i have a report which is giving performance issues on a perticular select query on KONH table. the select query doesnt use the primary key fields and table already has around 19 million entries.So there was a secondary index created for the field

  • Word 2008 for Mac: Hyperlinks

    I am using Word 2008 for the MAC.  I would prefer to use pages but pages cannot save active hyperlinks as a pdf file.  at least I do not know how to do that. I am creating a large document for a genealogical history of many people.  Each person has t

  • Payable status is being set as SP and the TL_PYBL_REASON_CD is being set as Payroll not Processed (PNP)

    Hi All, Have you come across any scenarios where the Payable status is being set as SP and the TL_PYBL_REASON_CD is being set as Payroll not Processed (PNP) in Peoplesoft Time and Labor 9.0 application? Thanks & Regards, Allen