Refresh chart really asynchronous flash...

Hello

Oracle 10g r2, Apex 4.0.2.

I have a page with a tree on the left and a flash chart in the right. The graph is updated every time I click on a node in the tree.

The table is a bit slow to render as it calculates a large amount of data.

The problem is that during the graphical calculation, my mouse keep the image of the 'hand', and the user can't do anything while the table is not loaded. It is not the idea that I have of "asynchronous" update!

The first time that the table is loaded, it displays "Loading data" and the "initialization" messages defined in the xml Anychart configuration but does not when calling apex_RefreshFlashChart.

Here is my function defined in the source region of the diagram:
<script type="text/javascript">
function update_meas_diagram(){
  var chartName = '#CHART_NAME#';
  chartName = chartName.substring(1);
  apex_RefreshFlashChart(&APP_PAGE_ID., chartName, APPLICATION_LANGUAGE);
}
</script>
Called when the tree node is clicked:
$('.tree_node','#my_tree').click(function() {
   [...]
   update_meas_diagram();
});
Any solution?

Thank you.

Yann.

Hey Jan,.

I have experienced the same problem, but I have not found a solution to let the "loading data" text appear asynchronously. What I've done is to develop a work around for this problem that works very well. So consider you have a calculation
who works 30 seconds and for this time, the application is like "jelly" you described in your post above.

What I've done is to separate the two different sql statement. The first sql/plsql-block of instructions is responsible for 99% of the calculation. It operates separately as an asynchronous task in the database. Meanwhile a javascript routine keeps track of the employment growth and shows on a progress bar. The javascript routine questioning a state table that provides progress information. That progress information itself is provided by the first block plsql himself during the race.

Once the completed database work, the chart/report will be updated based on a second sql statement that only the calculated data collected previously. There is almost no lag time between (1) updating graphics and 100% (2) progress bar staus

I used a plugin for the progress bar:

http://www.apex-plugin.com/Oracle-Apex-plugins/item-plugin/progressbar_58.html

Hope I could help you a little.

Greetings, Paul

Tags: Database

Similar Questions

  • Asynchronous flash chart where update select list value changes

    Hi devs,

    I groped with flash graphics with dynamic when update select list point of changes in value.

    First of all, I used the function of Denes Kubicek [http://htmldb.oracle.com/pls/otn/f?p=31517:229 | http://htmldb.oracle.com/pls/otn/f?p=31517:229:3039869356317498] update the value of the session from my dynamic selection list after change:
    &lt;script language="JavaScript" type="text/javascript">
    
    function fnc_setItem (pItem)
    { 
      var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=dummy',0);
      get.add(pItem,$x(pItem).value)
      gReturn = get.get();
      get = null; 
    }
    &lt;/script>
    That has worked well. Then has been to change the update interval chart flash and:

    Home > Application Builder > application 150 > Page 1 > Flash chart attributes > update >
    Asynchronous update = Yes
    Update interval (seconds) = 5

    My report is automatically updated every 5 seconds. But how can I make it work just with the change in the value of the selection list?

    The function is used to refresh the report: apex_RefreshChart (1, '2258227549390282', ' de');

    Patrick Wolf was a good example for her: [http://www.inside-oracle-apex.com/auto-refresh-flash-charts-in-apex-30/ | http://www.inside-oracle-apex.com/auto-refresh-flash-charts-in-apex-30/]

    But I couldn't make it work properly.

    Thanks in advance


    Tobias

    Hello Tobias,.

    Having defined with function of the Dene session state, you can refresh the table to help:

    apex_RefreshChart ($v ('pFlowStepId'), $v('Pxx_REGION_ID').substr (1), navigator.language);

    PXX_REGION_ID is the ID of the region of the chart area. You can set that in the bottom of the region to help;

    $s ("Pxx_REGION_ID", "#REGION_ID #");

    See [example: http://apex.oracle.com/pls/otn/f?p=41715:29]

    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this response in marking it as useful or Correct ;-)

  • Several "columns" in the charts in SVG/FLASH?

    I need to create a pie with three elements... both are derived from a column in the database, while the latter is derived from another column. I've been playing with this for the last couple days.

    Because I know so little about this stuff, my last resort was to create hidden objects, with a SQL process to update the time "before the header" this work... but I can't understand how to obtain these three elements in my pie!

    Here are my three sql statements, that I need to enter a pie chart:

    Point 1: "Total needed.

    SELECT COUNT (PRODUCT)
    OF PRODUCT_DATA
    WHERE PRODUCT = 'NO '.
    AND PRODUCT_TYPE = 'HOME'

    Point 2: "update more than 10 years'

    SELECT COUNT (PRODUCT_DATE)
    OF PRODUCT_DATA
    WHERE PRODUCT_DATE < = TO_DATE (March 30, 1999 "," DD-MON-YYYY "")
    AND PRODUCT_TYPE = 'HOME'

    Point 3: "update < 10 years."

    SELECT COUNT (PRODUCT_DATE)
    OF PRODUCT_DATA
    WHERE PRODUCT_DATE > = TO_DATE (March 30, 1999 "," DD-MON-YYYY "")
    AND PRODUCT_TYPE = 'HOME'


    (Ideally I would replace the 30 March 1999 ' with TO_DATE (TRUNC (SYSDATE)-10 years, 'DD-MON-YYYY'), but have not thought too much about it yet!)

    Related to this... the above information has been imported from and Excel spreadsheet. The imported fine paintings... but there is a page with several graphics/tables which were all different formulas

    I have created a calculation to update three points... but could not figure out how to put them in the pie chart:

    P5_TOTAL_REQUIRED
    P5_TOTAL_OVER_10YRS
    P5_TOTAL_UNDER_10YRS


    Appreciate any help!

    KSL.

    Hello

    You can use UNION ALL to gather statements:

    SELECT NULL LINK, LABEL, VALUE FROM (
    SELECT 'Total Required' LABEL,
    COUNT(PRODUCT) VALUE
    FROM PRODUCT_DATA
    WHERE PRODUCT='NO' AND PRODUCT_TYPE = 'HOME'
    UNION ALL
    SELECT 'Update Over 10YRS' LABEL,
    COUNT(PRODUCT_DATE) VALUE
    FROM PRODUCT_DATA
    WHERE PRODUCT_DATE <= TO_DATE('30-MAR-1999', 'DD-MON-YYYY') AND PRODUCT_TYPE='HOME'
    UNION ALL
    SELECT 'Update < 10Yrs' LABEL,
    COUNT(PRODUCT_DATE) VALUE
    FROM PRODUCT_DATA
    WHERE PRODUCT_DATE >= TO_DATE('30-MAR-1999', 'DD-MON-YYYY') AND PRODUCT_TYPE='HOME'
    )
    

    To the date of issue, you can use:

    ADD_MONTHS(SYSDATE, -120)
    

    Who will deduct 10 years (120 months) from now

    Andy

  • Refresh the flash page

    How can I create a refresh button in my flash?

    Yes... found the solution!
    It's a sort of workaround but I would fix this code to my flash button

    getURL ("javascript: MM_Refresh()");

    then in the page html of the flash file will appear that it is just a case of adding

    function MM_Refresh() {}
    Window.Location.Reload)
    }

  • Windows Desktop, open, IE8 reverse flash colors at the opening of new window or program

    Just got a new Dell OptiPlex 780 desktop running Windows7 two days ago. Everything works fine except for this really boring 'flash' each time I open a new program, open new windows (but not all the time that I opened a window) and whenever I go to a new link on IE8. The entire screen and becoming black, blue with white color momentarily, Exchange Office becoming green, green Orange, etc.

    It is very dsitracting and boring, the entire screen flashes literally these vivid, boring colors for about a second.

    Any suggestions?

    Just got a new Dell OptiPlex 780 desktop running Windows7 two days ago. Everything works fine except for this really boring 'flash' each time I open a new program, open new windows (but not all the time that I opened a window) and whenever I go to a new link on IE8. The entire screen and becoming black, blue with white color momentarily, Exchange Office becoming green, green Orange, etc.

    It is very dsitracting and boring, the entire screen flashes literally these vivid, boring colors for about a second.

    Any suggestions?

    Hello

    If that happened, right out of the box, I would recommend Dell to search for known problems. It's probably a chart/device driver problem.

    Whatever the cause, this should not be happening on a new computer.

    Dell's Support homepage

    Dell Support Forums

    Tell us what you find.

    Thank you for using Windows 7

    Ronnie Vernon MVP
  • Circular buffer asynchronous read with crush

    Trying to accomplish the following without success so far:

    Setup a a DAQmx read buffer in a manner such that

    • all cost overruns are allowed

    • can read a buffer half at any time (entire buffer will not work, due to the following requirement)

    • read is compared to sample the most recent, If no data was read before or not.

    If I'm really asynchronous, I should get the more recent samples (which a party may or may not be 'old' or reading of the previous call) without delay at any time I choose to call it DAQmx Read. So far, I get a dleay compatible with a demi-tampons of a data value.

    Play with the following parameters did me not what I was looking for. I thought that the following combination might work:

    Crush the unread samples

    Reading Relative to the most recent

    Read size = size of buffer/2

    I can do this separately without the DAQ buffer; This isn't the issue. Call it an exercise if you wish - I'm just curious to know if this can be done with the DAQmx read buffer.

    I guess what I'm wondering really is if the pointer of the playback Position can be ignored.

    That works very well, thank you.

  • How do i"back up" for a flash drive?

    I want to save my computer. How can I set up a flash drive you as the recipient of the backup

    Bob

    Unless you have a really, really big flash drive you cant really.  Win 7 OS partitions are usually more than 40 concerts, over more than 50 years.  Even compressed his great and who's not even begin to review your data, games, etc.

    You can save up to an external USB hard drive, however.

  • ADOBE FLASH ANNOYING ERROR!

    Hey guys, I have an ERROR really annoying Flash, I've done great animation and I wanted to record, during backup, the program stopped working and program auto closed. So I wanted to open the saved file, but when I want to open file says "unexpected file format", I tried to think that with winRAR but it does not work for me. Help, please

    Thank you, David.Schránka01.jpg

    your fla is corrupt.

    First check the file size.  If its 0, all your work is lost.

    If it is greater than 0, you can recover all or part of your work.

    Change the name of your extension in rar and open fla in winrar and see if she can 'fix' the rar file.  then rename a fla and try opening in flash pro.

    If this fails you can unrar the FLA renamed and there may be some assets, you can import into a new fla.

    as an alternative to working with the fla, if you have a working SWF, you can decompile to recreate the fla.  IMO, sothinks decompiler is the best.

    Finally, never do this again.  Save your fla with increasing version numbers.

    for example, for a project named macros keyboard, I will use mapKeys_01.fla, mapKeys_02.fla etc.  a typical project will have between 20 and 200 versions.  I remove everything except the final 5 or 10 to save disk space.

    so while you save whatever_xx.fla and flash pro crashes, or your computer unexpectedly whatever_xx.fla corrupter shutsdown, you have the whatever_xy.fla previously recorded (where xy = xx - 1) still works.  you don't lose the work done between the two versions.

  • Flash Player installation problems

    I downloaded several times the update of Flash Player - 15.0.0.189 although I signed up for automatic updates ago. It works well for ages. I use Mac OS x 10.6.8 and use download Safari.The is good, but there no message continues to tell me how to install. I also uninstalled and downloaded again and still cannot install the update. Why this now actually automatically? I really need Flash Player to work.

    Post edited by: Valerie Relton noted Question correctly answered. It is not!

    I'm having the same problem for Windows

  • CC think Flash CS6 is installed and is not

    Well, I really need Flash CS6, because Flash CC does not lower than Flash 10.3 publish and not publish AS2 specifications of what sites are demanding. That alone cause massive headaches.

    So I need Flash cs6, which I used to have installed (legally), but my license expired so I went to creative cloud.

    Creative Cloud Desktop think again I Flash CS6 my desktop, but I did not. I deleted it when I went to an SSD for the system hard drive.

    So I can't download Flash CS6 either and I web banners to be shipped.

    Huge frustration here...

    Thanks in advance for ANY help.

    Simon.

    Well, the problem (no thanks to all of Adobe. I've been on "Live Chat" for an hour without help...) I 'had' a .dmg for Flash CS6 file and when I installed it I just clicked on 'I have a subscription.

    But the problem with Cloud Office Creative - there is too much trust on it (no alternative download option) and the software itself is flakey. He constantly asks to update itself, God knows why, and then it does not work when you need it. And since I'm now pay each month of service, I'm not impressed by the product and attitude from Adobe. Why support for AS2 and Flash<10.2? bah="">

  • I can't download adobe Flash Player on android phone?

    I went to download adobe flash player to my samsung galaxy 551, but when I go to install it, it will say: installation and then a triangle with an exclamation point appears saying application not installed.

    can anyone help please?

    I really want flash on my phone.

    Thank you

    John

    Hi John,.

    Please see this page for a list of all certified devices:

    Flash Player certified devices

    If your device is supported, this FAQ will guide you through the process of manually installing the plugin:

    How to manually install Flash Player on my Android device?

  • It is time to move on? (stop making flash games)

    Hello

    It's time to stop making flash games? am an amateur flash programmer, I used to work with ActionScript 2 and when I decided to start learning ActionScript 3, the artist that I used to work with told me that it is a useless task, it will be a waste of time and it is best to begin work with HTML5, flash cause will die sooner or later specially for mobile device (which is our main platform)

    so my question is,

    I had to move and stop learning AS3? cause I really found it a little bit 'disappointing' (i really like flash) and I saw that Unity3D built-in flash edition that make my opinion of a kinda weird friend.

    Thank you

    then, if you want to target the iOS devices, you must use the html, html5, javascript.

    If you do your animation with actionscript, it is time to stop the use of the flash.

    If you do a little of your animation using the timeline, you can still use flash to create animations flash cs6 (with the extension of the free createJS) and export these animations to be used with compatible with iOS browsers html.

  • How to make a button full screen for Flash Catalyst?

    Hey everybody.  I really hope someone can help me with this.  How can I make a button full screen in Flash Professional that would make my Flash Catalyst project go full screen?

    I'm sorry that I don't really know Flash Catalyst as much as I would like. Interface design is left to me, some designers to my agency use catalyst. If it's the Flash forum is as far as I can tell you. I didn't know that catalyst has not supported the Basic scripts (I thought I read that he did).

    In the end, for a very cheap price, you can do something like go to http://www.lynda.com/ and buy a subscription. Very cheap compared to what you get. They offer numerous courses on everything and I am sure that your answer would be in one of the (well broken up by subject) video training videos.

    You are looking for just a catalyst shows a bunch of courses:

    http://www.Lynda.com/search?q=catalyst&x=0&y=0

    Edit:

    For example, I watched the essential training in 2 minutes and CS5.5 chrono, I noticed that when you click on a button, you should have a 'Interactions' Panel that allows you to do things. If they do not have full screen as an interaction that is another thing, but I'm just pointing out, it is very easy to learn to do all sorts of things in the video training. If you don't want to buy a membership he just find a video that you think would have the info in there and I'll watch it and let you know if she tells me how do and how to do it.

  • Project Flash pointers

    Hi guys,.

    I'm really a Flash noob and would appreciate some tips with a few things:

    I make videos for a training program. It is import audio, images and animation of the images, etc. I'll be exporting to FLV at the end and then convert them to MP4 for online downloads.

    Here are TWO important questions that I need answered:

    1.) can I use ActionScript 3.0 or ActionScript 2.0 for this?

    2.) when I try to import audio data, the entire audio file does not immediately appear in a new layer I created. He only goes in the blank keyframe that I inserted. How to import the audio so that the entirety of it looks?

    Help with these questions would be great.

    Thank you

    Unless you are using a version of Flash that is only AS2, AS3 you should use. If you have available AS3, use it. If you are a beginner, there is nothing to gain from learning anything about another AS2 that you shouldn't use it.

    When you import an audio file, it is placed in your movie library. You can attach a sound file to the timeline to any keyframe. It is a best way to play sounds that you have no control over them when they play in the timeline less. In any case, if the layer that contains the keyframe that you attach the audio file has no additional frames, you won't see the extent of the audio file. It will still play. You can extend the frames in this layer, or the whole movie to allow the full measure of the sound file to display in the timeline panel.

  • Opera, Firefox and IE <>Flash Player

    I have IE, Firefox AND Opera installed and use them for different issues (IE =) updates of Windows, Bank = Firefox, opera = news. Obviously, I do need to update Flash Player for IE and Firefox/Opera separately, BUT should I really uninstall Flash Player whenever an update is available, download two different from the most recent Flash Player installation files and run them before ALL my browsers show the latest version when checking in

    http://www.adobe.com/products/flash/about ? This seems to be the onlly way I can't find instructions how to handle updates, when different browsers are installed - just for each browser individually.

    By security reasons I'd rather find a way to use the update message (which may be wrong) just like the information on the fact that an update is available and what's his name, manually connect to adobe.com, verify that this update really exists and download and install it manually after that. Any suggestions how this practice of smooth and easy way?

    Hi, the first thing is even though even it's an update, it's a new version. So it must be uninstalled. The uninstall program removes all previous versions of all browsers. Then, you can install with IE and FF/Opera.

    This Guide will be useful, check your settings, etc.. I would like to download the uninstall program and save it to the desktop. Page down in the Guide for installers of manual and a SAVE to your desktop.

    Follow the news to turn off all apps that use Flash in the system tray, close all browsers. Make sure that you use the administrator account. Disable the if necessary Anti-anti-virus/firewall.

    Run the uninstall program, reboot, reboot. Run the installation programs. Some restart the computer after each installation, which belongs to you. But finally restart.

    Link http://kb2.adobe.com/cps/191/tn_19166.html

    eidnolb

Maybe you are looking for