Apex 4.0.2 manipulate graphical Flash using Javascript?

Hi all

Has anyone of you used the AnyChart.js successfully provided to manipulate a chart generated with Apex?

My goal is...

* 1.* power show/hide series on the fly.
* 2 using two y-axis I must control if a series is displayed using the axis y main or the y axis high school. (I have a dynamic number of series (1-20) displayed at any time)


Some of the problems I am facing...

a. in the Flash graphic - region Source < OBJECT > tag < EMBED > creates the Chart Flash object on the page. When the flash object is created in this way the object does not appear to have the function of external Interface available.

A temporary solution could replace the Flash graphic - region Source with this code:
 
<script src="#IMAGE_PREFIX#flashchart/anychart_5/js/AnyChart.js"; type="text/javascript"></script> 
<div id="my_#CHART_NAME#"></div> 
<script type="text/javascript" language="javascript"> 
  var c_#CHART_NAME# = new AnyChart("#IMAGE_PREFIX#flashchart/anychart_5/swf/#CHART_TYPE#.swf"); 
  with(c_#CHART_NAME#) { 
    width = "#WIDTH#"; 
    height = "#HEIGHT#"; 
  } 
  with(c_#CHART_NAME#.messages) { 
    init = "#FLASH_INIT#"; 
    loadingXML = "#FLASH_LOADING#"; 
    loadingResources = "#FLASH_RESOURCES#"; 
    loadingTemplates = "#FLASH_TEMPLATES#"; 
    noData = "#FLASH_NO_DATA#"; 
    waitingForData = "#FLASH_WAITING#"; 
  } 
  c_#CHART_NAME#.setXMLFile("#HOST#apex_util.flash?p=;APP_ID.:&FLOW_PAGE_ID.:&APP_SESSION.:FLOW_FLASH_CHART5_R#REGION_ID#"); 
  c_#CHART_NAME#.write("my_#CHART_NAME#"); 
</script> 
Now I have access to the library of AnyChart.js, but it there a better way?


b. the worst problem is that the absence of ID's < series > and < point >. Apex generates the series of data in the xml response, as
<series name="SALES" type="Line" color="0x1D8BD1"> 
<point name="01-01-2011" y="0"></point> 
Missing persons ID must be a bug.
<series id=”some_series_id” name="SALES" type="Line" color="0x1D8BD1"> 
<point id=”some_point_id” name="01-01-2011" y="0"></point> 
No idea as to the difficulty of the missing id?

-----
I am currently using Application Express 4.0.2.00.06 by the way

Thank you
Kenny

If you generate the XML for the series yourself (for example Re: #DATA # in Chart XML you can include the ID you need.) Using your approach, it's how I got tilt series for work.

1 replace the source of the region for a flash chart to be javascript you provided (there's a guy on the xml url -;) APP_ID. should be & APP_ID.)
2. Add a function within the script from the source of the region tags to switch series

function chartSetSeriesVisible(e) {
  var target = e.target ? e.target : e.srcElement;
  if (target.nodeType == 3) target = target.parentNode;
  var isVisible = target.checked;
  c_#CHART_NAME#.showSeries('MY_SERIES_ID', isVisible);
  c_#CHART_NAME#.refresh();
}

Note the line - c_ #CHART_NAME # .showSeries ('MY_SERIES_ID', isVisible); includes the name of the diagram and hard-codes the name of the series of my XML generated

3. set an action on a checkbox or something else trigger this function by putting "onclick =" chartSetSeriesVisible (event) "" in the "form element HTML attributes" for the control

Tags: Database

Similar Questions

  • No graphics flash in APEX?

    I noticed that APEX is currently using Anychart as means of graphics. Is there any other means available that uses no Flash?

    If possible, we would like to identify a way to display graphics on the iPad, which leads most of the formats other than Flash.

    Did you guys of experience with tables not Flash web based in APEX? There seems to be a number that are based on HTML-5 or any other technology. I appreciate your help with this.

    Good day

    Joseph

    Published by: jowaytww on June 11, 2010 23:53

    no graphic Javascript code basically you build the graph using javascript.

    I assume that you have not used jquery is a Javascript library that addresses flaws in the browser. If you google jquery graphic you will see load. One we ussing is flow which is free. All you need to do is to create and empty the div and it sent the data, it takes care of the rest.

  • Apex graphics Flash - additional Documentation?

    Anyone know where I can find additional documentation on the parameters of the Apex graphic Flash?

    Specifically what I would do is to make the labels in my Camembert cheese roll and, once packed, be centered. I have a few long labels which are limited to the left or to the right. I would like to be able to display wrapped when they are too long and be perfectly justified to Center. I guess I have to play with the XML code in the attributes of table but I can't seem to find any documentation on the parameters.

    Thank you
    John

    Hi John,.

    Apex uses AnyChart for their flash cards. You can find the documentation here: http://www.anychart.com/products/anychart/docs/

    Note that the current version of APEX uses an older version of AnyChart. Because of the license agreement, you can use the version updated for the specified AnyChart maps (I think report interactive graphics are already using the latest version)

    Martin

  • rounding to a graphic flash

    Hello
    I created a flash chart using a simple application.
    The table works fine only my values are rounded to full (full) numbers.

    Is there a way to round to two digits?

    I tried round(column,2) value but does not work.

    Any ideas?

    Best regards Erik

    Hi Erik,

    To help solve your problem, could you please give some more information -

    * What APEX version do you use?
    Create diagram you what?

    When you change your chart, go to the page attributes of table and scroll to "Settings main" region. You should see an item called "decimal", where you can enter the number of decimal places that you want to display the values on your chart. Set the decimal value e.g. value * 2 *, then click on apply changes. When you run the graph, your values should appear, with two decimal places. Please note that for pie charts, the decimal element is visible on the region to "display settings."

    If your page attributes of table has no a question of numbers after the decimal, then you need to use custom XML to apply this setting to your graphic. The XML code required to do this depends on the version of the APEX and Flash graphics you use. For example, if you use APEX 3.2 or earlier, Flash cards are AnyChart version 3.3 and the XML required will look something similar to the following:

    
      
      .
      .
    
    

    .. where you can see the decimal_places = '2' attribute is defining the number of decimals to 2.

    If you use APEX 4.0/4.0.1/4.0.2, then Flash cards are AnyChart version 5.1.3 and the required XML code will look something similar to the following:

    
      
        {%Name}{enabled:False} - {%Value}{numDecimals:2,decimalSeparator:.,thousandsSeparator:\,}
      
      
      
    
    

    .. where you can see the numDecimals:2 attribute is defining the number of decimals to 2.

    I hope this helps.
    Kind regards
    Hilary

  • Clear the cache with graphic flash

    Hi all

    On a menu, I have a graphic flash with a link to goto page xx
    The url in the link have the clear cache attributes defined for the same page xx.

    on the same page of the menu, I also provide a list with an option for even goto page xx
    f? p = 103:2:815028013919804:NO:2:


    Now the question
    When you use the menu list of the cache is disabled
    When you use the graphic flash cache is not authorized!

    Some body have an idea how it works?

    Hugo Perfors

    I think that it is a problem of IE. Try to change the caching there options to see if it happens after that. I think that if you are using FF it won't happen.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • Adobe supports any rental online of the CPU for the pixelation or otherwise manipulate graphical files of several gigabytes?

    Adobe supports all online rental of CPU or purchasable app for pixelation or otherwise manipulate graphical files multi-Go?  I have a workstation HP Z600 with dual core and 12 GB of memory and a graphics file 33K pixelation injects in expectation of geological time.  In the future, I need to manipulate - rasterize, etc. - multi-gigabit, 600ppi, 60x40inch graphic files.  Amazon can be a resource, but it's HPC cluster computing resources or grid have a long learning curve interface.

    I think you have good arguments for the upgrade of your machine. Return on investment should be almost instant here.

    That said, Photoshop should be able to manage very well as long as you have a little patience and a reasonable work disk configuration. Be sure to keep that on your system drive, which is the main thing - otherwise it can grab up in an intractable confrontation between OS and PS files for the Exchange. Although it should better work with SSD.

    I used to manage files of 1 GB with a 32-bit Windows xp and only 2.2 GB of RAM effective system. It is a miracle that it worked at all, but he did. The thing back then was to have a RAID0 array as dedicated scratch disk.

  • Flash Canon 600 EX - Speedite RT - flash using testfire erratic power

    Hello

    For a photography assignment, I had to use an off-camera flash (using the testfire) to capture the different poses of a subject during a long exposure.

    However, by pressing the button testfire produced variable results:

    1. the subject was reasonably informed.

    2. the power of the Flash was weak, leading to a very underexposed subject

    3. the test button would not fire at all.

    Now, the obvious cause of this erratic behavior would be batteries to be replaced. However battery replacement (using brand batteries good long life) does not solve the problem.

    If someone else has countered this problem and if so, is there a solution?

    Kind regards

    W, which has no such assignment

    When you trigger the test button, the amount of energy it will draw depend on the mode and the settings of the flash.

    Mode you are using (manual or E - TTL) and if manual, what power level you have set (for example 1/1 = full, but there is also a 1/2, 1/4, 1/8, etc.)

    If give you him a burst of full power in manual mode, you have to wait for the flash to recycle the capacitors before it is ready to fire again.  The capacitors are a bit like rechargeable batteries except for the rate at which you can drain a battery is somewhat limited and a capacitor can pour out his incredibly fast energy.  How flash actually works is to have the batteries to recharge the capacitors until it has enough fire power, and then the power of the flash capacitors (because they can send a power tip to the strobe light).

    Most people tend to use E-TTL/E-TTL II mode - or - they use it in manual mode (M).  But there are other modes.

    If you want to manually control the flash for your situation, then press the "Mode" button repeatedly until you see the "M", displayed in the upper left corner of the LCD screen (now you are in "Manual" mode and the flash will always fire at the same power level in E - TTL mode, it will try to automatically detect the amount of energy uses and many things can give you varying results because frankly) You asked the flash to automatically detect and vary the power level).

    Manual mode is only half the fun... now press the soft key under the LCD panel around the "+/-" and allows you to control the power level.  By default it will pull at full power (1/1).  But you can now turn the wheel to reduce the power level (and you probably want to reduce the power level because 1/1 is a lot of power.)   For example... maybe 1/8 power would be more reasonable... or maybe 1/4 power.

    But the other reason to use the manual mode is once you set the power level, it will ALWAYS trigger with the same amount of power (until you change.)

    Remember that when you use the manual flash, flash has a 'falling' effect that causes the light seems less intense if the flash is farther or closer to the object.  This is what we call the 'inverse rule of the square law' and it's a law of Physics (not do around him - sorry.)  This means that if you want your subject to get uniform illumination so not only you must use the "manual" mode and set it to a specific for every time... power level but the flash itself must be at the same distance from the subject (if the subject moves... then you need to Flash for the maintenance of this uniform for each shot distance.)

  • APEX DA validation using javascript

    Hello

    APEX 4.2 using (Oracle, 10 anf 11g)

    I have a page and check off the items when click on the button "SUBMIT" using Javascript.

    for example.  I have a 10 page. P10_item1, P10_item2, P10_item3 so on. name of the button is SUBMIT.

    Dynamic action: Click-> button-> action-> execute Javascript code

    If ($x('P10_item1').value == "| $x('P10_item2').value ==" | $x('P10_item3').value == ") {}

    Alert ('required fields can be left blank');

    }

    else {}

    Apex. Submit ('SUBMIT');

    }

    ALL WORK fine, but I want to add the change of background color (field) if any field above is empty after

    Click on submit. I added these to the CSS page

    . Highlight-error

    {

    background-color: #FAE7E7! important;

    color: white;

    }

    so, how can I use this css in my javascript code after warning message please?

    Thank you very much.

    Kind regards

    RI

    Hi RI,

    (1) put that css for you have created for normal in background

    Page-> css-> online

    .highlight-ok
      {
      background-color: none !important;
      color: white;
      }
    

    (2) check the else part

    if ($x('P10_item1').value == '') { 
    
            $("#P10_item1").addClass('highlight-error'); 
    
            alert('Mandatory fields can be left blank'); 
    
        } else if ($x('P10_item2').value == '') { 
    
            $("#P10_item2").addClass('highlight-error'); 
    
            alert('Mandatory fields can be left blank'); 
    
        } else if ($x('P10_item3').value == '') { 
    
            $("#P10_item3").addClass('highlight-error'); 
    
            alert('Mandatory fields can be left blank');
        } else {
            $("#P10_item1").addClass('highlight-ok');
            $("#P10_item2").addClass('highlight-ok');
            $("#P10_item3").addClass('highlight-ok');
            apex.submit('SUBMIT'); 
    
        }
    

    Hope this helps,

    Kind regards

    Jitendra

  • problem using Javascript window.open Apex 4.2

    I'm trying to use javascript to open a new window in Apex 4.2

    When the user clicks a button on the item, I want to open the page in a new window

    That's what I coded:

    On the button

    under "the ACTION ONCE the BUTTON has been CLICKED" I select "redirect url".

    then enter this: javascript: window.open ('f? p = A:P: & SESSION.) ") ;  where A is the number of the application and P is the page of the application

    This method works.

    Click the button and a new page opens

    the problem is that the old page; the one I was on, disappears. It becomes a blank page with "[object]"displayed in the top left corner, nothing else on the page.

    Is there another way to do this?

    Try wrapping it in a vacuum similar to this:

    JavaScript:void(Window.Open...);

    or to add with

    Returns false;

    as

    JavaScript:Window.Open (...); Returns false;

  • I can do a slideshow without flash using Flash with JPEG gif files?

    Given that Flash .swf is not supported in iOS. I wanted to make a simple slideshow with high quality JPEG files. How can I do this?

    Wait instead of Flash using jQuery.  There are a variety of solutions redy-made, just search Google or visit the Dreamweaver forum and ask there.

  • What type of regular expression engine flash use

    what regular expression engine Flash use? not deterministic?

    Flash uses Perl Compatible Regular Expression Engine (PCRE). Who is nondeterministic

    Thank you

    Romie

  • How to display the context menu using javascript in application of apex

    Hi all

    y at - it someone who has set up a context menu using javascript in its request for apex. We may be able to open other pages I need when clicking on items in the context menu.

    Please answer as soon as possible. I will be very grateful to you all.

    Published by: user12259335 on November 23, 2009 01:18

    Hello
    Sorry, you are right, I don't send you all the :), but I have a request - could you just give me your email address to send you the code.
    Tahnks

  • Anyway do a MODAL popup window in the APEX, using JavaScript

    Y at - it anyway to make a MODAL popup window in APEX, using JavaScript.

    What I do is, at various stages in an application, I'm coding, the system will display a pop-up window, prompting users to enter their credentials. These credentials are then verified via LDAP.

    Basically I don't want the user to be able to close the window without entering their password or by clicking on the Cancel button.


    Here is the code I use:

    onClick = "javascript:esign();" "(Adding the HTML Form element attributes)


    function esign() {}
    popUp2 ('f? p = & APP_ID.:8: & SESSION.: & DEBUG.:', 450, 200);
    }



    I did a quick search on google and I met some JavaScript libraries that could do what I'm after is to say prototype.js, jquery.js
    but I was wondering if there is a default library that comes standard with APEX.

    Any help gratefully received

    Thanks, Keith

    create a button calling url and url target as the value
    JavaScript:modalWin();

    Place this script in the header

    You can create a button in a modal window to close
    and use this code for the text label of the button

    Closet

  • How to use Javascript to loop through a tabular presentation

    APEX: 4.2.3

    DB: 11 GR 2

    Requirement:

    I have a master form / retail. We will see that master is the order information; Detail is the order lines. Detailed form is tabular

    The detailed form, there is an attribute called 'Line Order Qty' and the user can update this field.

    User can update all rows in the detail forms and change "line Order Qty' for each line. When the user click on 'Save' button on Master form, I have to do below:

    Sum of the 'line Order Qty' for all lines, and compare it to another field called 'Plan Order Qty' on the master shape.

    If sum 'Line Order Qty' > "Plan Order Qty", then it should appear a message with "Are you sure?" with two buttons on the message: OK and cancel.

    If users click on 'OK', the application will proceed and update another field called 'Sum of Order Qty' on the main form and the value set for the sum of "Online Order Qty" for all lines;

    If the user clikc 'Cancel', the application will be paused. The user must come back to change "Line Order Qty", and then try again

    given, I need a popup message when the validation, I think I have to write javascript; However, in the javascript code, I need complete all lines in detail (tabular form) to get the

    The sum of the 'line Order Qty'. Then I can compare the value and to launch the pop message if validation has failed?

    By reading this thread: building the perfect beast: Oracle APEX - Soft Validation using dynamic measurements

    I think I need to create a reference for action (DA) dymaic Javascript expression; However, in Javascript, how do I browse a table?

    Yet once, I need an example of using Javascript to browse tabular forms in the form master / detail.

    I don't know that my question should be raised before; but I can't find a good match of thread.

    Thank you!

    Kevin

    Hi Kevin Zhang,

    Sum of the 'line Order Qty' for all lines, and compare it to another field called 'Plan Order Qty' on the master shape.

    If sum 'Line Order Qty' > "Plan Order Qty", then it should appear a message with "Are you sure?" with two buttons on the message: OK and cancel.

    If users click on 'OK', the application will proceed and update another field called 'Sum of Order Qty' on the main form and the value set for the sum of "Online Order Qty" for all lines;

    If the user clikc 'Cancel', the application will be paused. The user must come back to change "Line Order Qty", and then try again

    given, I need a popup message when the validation, I think I have to write javascript; However, in the javascript code, I need complete all lines in detail (tabular form) to get the

    The sum of the 'line Order Qty'. Then I can compare the value and to launch the pop message if validation has failed?

    Follow the steps below

    Step 1: Change your page - > function and declaration of the Global Variable-> to insert the code below

    (i) f06 is here, the column on which I am looping the f06 column and enters the total variable to the value change in the values of the row that is changed by the user.

    (II) also replace your column with f06 markup on which you want to loop and calculate the total

    (III) assuming that P6_ITEM is the point where you plan_order_qty, replace with your article.

    (IV) SAVE this demand is what happens when OK is clicked, assign the request to process.which you give the floor to a click of the button SAVE the

    function update_order_qty () {
      var line_order_qty_tot = 0;
      $("input[name='f06']").each(function() {
        line_order_qty_tot += parseFloat($(this).val().replace(/,/g,''))||0;
      });
    
      var plan_order_qty = apex.item( "P6_ITEM" ).getValue()
    
      if (line_order_qty_tot > plan_order_qty) {
          apex.confirm('Are you sure?', 'SAVE');
      } else {
          apex.submit( 'SAVE' );
      }
    }
    

    Step 2: Edit the page-> Execute when loading the page-> to insert the code below

    \\calculate the total on change
       $("input[name='f06']").change(function(){update_order_qt();})
    

    Step 3: Change your button Save and put under the Action when the button is clicked

    Action: Redirect URL

    Target URL:

    javascript:update_order_qty();
    

    Hope this helps you,

    Kind regards

    Jitendra

  • Pop - up using javascript in dynamics of the Actions

    Hi all

    Before you begin with the question, I want to share the below of the details on the application

    Table creation script

    create table status_dashboard (ID number, name varchar2 (10), varchar2 (10) State, varchar2 (1000)) URL;

    Insert the script

    insert into status_dashboard values 1, 'A1', 'up', 'www.ibm.com';

    insert into status_dashboard values 1, 'B1', 'up', 'www.hp.com';

    "insert into status_dashboard values 1, 'C1', 'up', ' www.msn.com";

    insert into status_dashboard values (1, "D1", "low", "www.yahoo.com'");

    insert into status_dashboard values 1, 'E1', 'up', 'www.oracle.com';

    insert into status_dashboard values 1, 'F1', 'up', 'www.facebook.com';

    insert into status_dashboard values (1, 'G1', 'down', 'www.twitter.com');

    "insert into status_dashboard values 1, 'H1', 'up', ' www.google.com ';

    insert into status_dashboard values 1, 'I1', 'up', 'www.apex.oracle.com';

    Report query

    SELECT max (case when mod (rn, 3) = 1 then end name) col1

    , max (case when mod (rn, 3) = 2 then end name) col2

    , max (case when mod (rn, 3) = 0 then end name) col3

    , max (case when mod (rn, 3) = 1 then decode (status, 'down', 'red', 'green') end) The_color1

    , max (case when mod (rn, 3) = 2 decode (status, 'down', 'red', 'green') then end) The_color2

    , max (case when mod (rn, 3) = 0 then decode (status, 'down', 'red', 'green') end) The_color3

    , ceil ((rn) / 3)

    (select name, status, row_number() on rn (order by name) of status_dashboard)

    Group by ceil ((rn) / 3)

    order by ceil ((rn) / 3)

    Report link on Oracle Apex

    https://Apex.Oracle.com/pls/Apex/f?p=54850:1

    I created a matrix report, enabled the conditional formatting. The only problem I have right now is to go to a link in the report.

    I use 3 text elements Apex - P1_ID, P1_NAME and P1_URL.

    I use also 3 dynamic actions

    1. DEFINE NAME - will set the P1_NAME field with the value clicked in the report.

    2 SET ID & URL - define the fields P1_ID and P1_URL of the DB using the P1_NAME field.

    3-pop-up-appears the P1_URL using javascript.

    Problem statement:

    The pop up page is a blank page, although I can see that the value for the P1_URL field is defined using dynamic measurements.

    Could someone please take a look at this example and help me with the same.

    PS: The example was developed using sample data.

    Hello

    When you use the substitution in JavaScript string, the value is used when page and is pretty hard-coded in the document value.

    Even if you change the value of the element or the element value in session state, it will not happen to the HTML document.

    In dynamic action, try something like

    popupURL($v("P1_URL"))
    

    Who will choose the value of the item and pass it to the popupURL function.

    Yes, you have created, sample, but how we can view source if we are unable to connect your workspace?

    Kind regards

    Jari

Maybe you are looking for