Oracle APEX and AnyChart

Hi team,

I'm working on the instance APEX 5.0 hosted (apex.oracle.com) to create the sample question.

Here I have region HTML code below:

<script type="text/javascript" language="javascript" src="/i/flashchart/anychart_6/js/AnyChart.js?v=5.0.0.00.31"></script>
<div id="container"></div>
<script type="text/javascript" language="javascript"> 
    //<![CDATA[
    var chart = new AnyChart('/i/flashchart/anychart_6/swf/OracleAnyChart.swf');
    apex.server.process(
        'CALL_CHART',
         {
            x01: "test"
         },
         {
            dataType : 'text',
            success : function (pData)
            {
                console.log(pData);
                chart.setData(pData.toString());
                chart.write('container');
            }
         }
       
    );
   
    //]]>
</script>

Then I have an application process on CALL_CHART with the code

CALL_CHART;


And the CALL_CHART procedure that returns the XML simple with hard-coded data currently:

create or replace  procedure CALL_CHART as
begin
htp.p('Cache-Control: no-cache');
   htp.p('Pragma: no-cache');
   owa_util.http_header_close;
htp.p('<anychart><settings><animation enabled="false"/><no_data show_waiting_animation="False"><label><text>#NO_DATA_MESSAGE#</text><font family="Verdana" bold="yes" size="10"/></label></no_data></settings><margin left="0" top="0" right="0" bottom="0" /><charts><chart plot_type="CategorizedVertical" name="container"> <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="0x000000" /><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="0x000000" /><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" ><bar_series ><tooltip_settings enabled="true"><format><![CDATA[{%Name}{enabled:False} - {%Value}{numDecimals:0,decimalSeparator:.,thousandsSeparator:\,}]]></format><font family="Tahoma" size="10" color="0x000000" /><position anchor="Float" valign="Top" padding="10" /></tooltip_settings><label_settings enabled="true" mode="Outside" multi_line_align="Center">            <format><![CDATA[{%Value}{numDecimals:0,decimalSeparator:.,thousandsSeparator:\,}]]></format><background enabled="false"/><font family="Tahoma" size="10" color="0x000000" /></label_settings><bar_style></bar_style><marker_settings enabled="True" ><marker type="None" /></marker_settings></bar_series></data_plot_settings>
<data>
  <series name="Ice Cream">
    <point name="Winter" y="12000" />
    <point name="Spring" y="13000" />
    <point name="Summer" y="25000" />
    <point name="Autumn" y="16000" />
  </series>
  <series name="Chocolate Bars">
    <point name="Winter" y="12000" />
    <point name="Spring" y="12000" />
    <point name="Summer" y="15000" />
    <point name="Autumn" y="16000" />
  </series>
  <series name="Coke">
    <point name="Winter" y="10000" />
    <point name="Spring" y="17000" />
    <point name="Summer" y="19000" />
    <point name="Autumn" y="16000" />
  </series>
</data>
</chart></charts></anychart>');
end;


But my diagram is just with "Waiting for Data" anyone know how to call javascript Anychart?

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

Sunil/sunil

chart: test 2

Help, please

Hi Sunil,

I added a new example to my sample application, https://apex.oracle.com/pls/apex/f?p=36648:133, using your snippets as the basis for this.  I just relocated a portion of information, like the positioning of the JS file reference and the function to call the page attributes rather than embedded in the region.  I also slightly modified my version of your process, to remove the 3 lines, as indicated in the information section my diagram below.  This will do the trick for you?

Kind regards

Hilary

Tags: Database

Similar Questions

  • Hi I am new to Oracle APEX and my desires to organize me working on it... can someone help me to begin with?

    Hi I am new to Oracle APEX and my desires to organize me working on it... can someone help me to begin with?

    Hello

    Start reading the documentation

    Oracle Application Express - Documentation

    Check the packaged applications that comes with the APEX.

    You can find a lot of info and examples of Oracle Learning Library

    http://Apex.Oracle.com/pls/Apex/f?p=44785:2:0:FORCE_QUERY:2, IRB, CIR:P2_GROUP_ID, P2_PRODUCT_ID:1000 %2 C 2039

    APEX to read related blogs

    WORLD: APEX Blogroll

    You can find many things from this forum, just use search.

    Kind regards

    Jari

  • Oracle apex and extjs grid table

    Hello

    IM new to extjs and I was wondering if anyone can help me with this.
    I want to create a report in oracle apex and place the output in the extjs grid table
    for example, I want to display the output of select * from object in table grid

    thnx in advance
  • Problems with oracle apex and http server

    I have Oracle Apex 3.2 running with the hen Oracle 10 g. OSH I load large pages... some pages are not completely made... There is the incomplete source code when certain pages are generated...

    This causes things like the hidden tag that contains the md5 for the page auditor would not generate correctly...

    check out this [http://img444.imageshack.us/i/error2le.png/]


    And it causes the repercussion in the process DML:

    check out this [http://img715.imageshack.us/i/error1d.png/]

    Edited by: Juan David Palacios on June 9, 2010 08:24

    Edited by: Juan David Palacios on June 9, 2010 09:44

    Edited by: Juan David Palacios on June 10, 2010 05:57

    Can I update pl/sql tollkit after installation of apex 3.2?

    Following the instructions in the README file. TXT as described in the documentation, Yes.

  • Jasper on oracle APEX integration error. "Error: file null.jasper not found.

    Hi all

    Recently, we have configured Oracle APEX and configured report Jasper on Glassfish 4.1. Everything went well, but when you try to run the test report we get following error.

    "Error: file null.jasper not found.

    Can anyone help with this?

    Database: Oracle 11g R2

    APEX: 4.2

    GlassFish 4.1

    Report of Jasper 1.3.0.2

    Hi Kiran,

    Thanks for your reply, we used the same link for integration.

    But now we have solved the problem. The issue was with the version of Glassfish. It seems that report jasper is not compatible with the 4.1. So, we removed 4.1 Glassfish and install Glassfish 3.1. That solved the problem for us.

  • Site Web of Oracle ApEX based

    I intend to create a Web site using Oracle ApEX and a question about security, authentication.

    Most of the pages are going to be public to anyone, but some of them will require authentication. My question is what is the guideline to handle this? If I activate an authentication on application level scheme then each visitor is going to land directly on the login page when you visit the Web site, which is not good. I intend to place a login box area of the public pages, so users can connect / register if they want to.

    Your help is very appreciated!

    Hi user13428604,

    user13428604 wrote:

    Update your 'user13428604' user ID to something meaningful. Reference: Video tutorial how to change username available

    I intend to create a Web site using Oracle ApEX and a question about security, authentication.

    Most of the pages are going to be public to anyone, but some of them will require authentication. My question is what is the guideline to handle this? If I activate an authentication on application level scheme then each visitor is going to land directly on the login page when you visit the Web site, which is not good. I intend to place a login box area of the public pages, so users can connect / register if they want to.

    Your help is very appreciated!

    You can have Oracle APEX application pages are public, even if the authentication is enabled at the application level. You define the Attributes of Page -> authentication Page is Public for pages that are going to be public. The pages that are not public, to set the Attributes of Page -> authentication Page requires authentication(which is set by default to the creation of the page). So when the user accesses the public pages, the app will not ask the user for authentication, but when he tries to access the page with all of the authentication, it will ask you for credentials.

    It's Security page attributes screenshot where you want the public pages:

    Reference:

    I hope this helps!

    Kind regards

    Kiran

  • How to limit navigation directly via the URL when the user tries to type the page number and access this page in ORACLE APEX 4.2

    Hi all

    I developed an application where I have 6 pages and 5 tabs and based on the user role I posted the tabs for the user to access these pages.

    But when the user, who doesn't have access to the particular page (say, page 2), but still the user can navigate to it directly by typing the page number in the URL.

    I want to avoid such scenarios.

    eg: http://Apex.Oracle.com/f?p=110:2 , when the user type this in the address bar, it navigates the user to this page even if this particular user does not have access to this page.

    How to prevent the user to navigate through the URL, if the user tries to navigate directly through URLS rather than tabs, I have to give the error message.

    Version: ORACLE APEX 4.2

    Thank you

    Good reading this recent post

    Re: Authentication at the Page level

    All links to a page and the page itself must be secure.

    You can also consider the protection of session state to prevent tampering of the URL.

  • Export of apex (oracle.apex.APEXExport) on Oracle 12 c and ORA-28040

    Customer running of Java oracle.apex.APEXExport (from Apex v4.2.5) against a 12.1.0.2 RAC - and JDBC connection failure made with a ORA-28040: no authentication protocol for. (works without problem against all our 11g RAC)

    Oracle MOS see Notes section Configuration of SQL * Net of parameters (SQLNET.) ALLOWED_LOGON_VERSION_CLIENT and SQLNET. ALLOWED_LOGON_VERSION_SERVER) to an earlier version (example 8) on the client and the server, bouncing the listener, etc.

    Googling turned up the solution to the CLASSPATH to include the ojdbc6.jar (as the first jar jdbc in the path) - and only using one more late JDBC driver/pot solves the problem.

    Played a bit with both options, but not luck. Always get the error ORA-28040 .

    Ideas, comments and suggestions will be appreciated on how to address this issue.

    Well, problem solved. With the CLASSPATH workaround works fine - if done correctly.

    Find an odbc6.jar on the platform, for example

    find $ORACLE_HOME-name ojdbc6.jar

    Set the classpath the jar of real and then in the utilities directory in your file Apex (i.e., the location where you have unpacked your download Apex). For example

    export CLASSPATH=/u01/app/oracle/product/11.2.0/dbhome_1/jdbc/lib/ojdbc6.jar:/software/apex/utilities

    Now run export Apex by following the instructions, for example

    Java oracle.apex.APEXExport - db :: -user -password -instance

  • Apache FOP disappeared by Oracle APEX installable APEX 5.0 and 5.0.1 APEX

    Hi all

    Is Apache FOP 'fop.war', missing the installable Oracle APEX to APEX 5.0 (apex_5.0.zip) and APEX 5.0.1 (apex_5.0.1.zip)?

    As once extraction APEX 5.0/5.0.1 is no record "fop" or "fop.war" under/path/to/apex/utilities.

    But after extraction APEX 4.2.6 (apex_4.2.6.zip) it is "fop.war" to /path/to/apex/utilities/fop/fop.war

    The APEX Oracle 'Configuration of printing the report' documentation for APEX 5.0 (in Oracle Application Express Administration Guide) lists 'External (Apache FOP)' as option "print server".

    Reference: http://docs.oracle.com/cd/E59726_01/doc.50/e39151/adm_wrkspc002.htm#BABIECEE

    The Administration Instance for APEX 5.0 settings also show "External (Apache FOP)" option:

    Screenshot from 2015-07-22 21:19:46.png

    Therefore, the question: is Apache FOP endorsed the option of print for APEX 5.0 Server? If so, why he isn't in the installable APEX to APEX 5.0 and 5.0.1 APEX.

    The second question is: point 6 in thereport of the print in a full development environment setup' for APEX portrays 5.0 "/ xmlpserver/convert" as "Print Server Script' for Apache FOP and BI Publisher. While this is correct in the case of BI Publisher, it should be for Apache FOP "/ fop/apex_fop.jsp" according to: PDF of print on demand Express 3.1 and above.

    Kind regards

    Kiran

    Hi Kiran,

    If you use ADR to run APEX, then the option "external (Apache FOP)" is unnecessary. You would simply take ADR as a print server in the administration of instance APEX. "External (Apache FOP)" option it will take though, if for some reason you need to using mod_plsql or EPG for APEX and then only ADR as a print server - whereby case you will need to configure all the attributes (host, port, script), given that those who would be so different from your APEX the host and port.

    Regarding your requests, I'll work on getting this pages OTN and whitepapers and documents updated regarding the printing configuration by their SUMMIT. For questions regarding ADR, I recommend posting these on the forum of ADR please:

    https://community.Oracle.com/Community/database/developer-tools/oracle_rest_data_services

    Thank you
    Marc

  • ICX/Session Cookie - integration of APEX and Oracle EBS

    Hello

    I'm moving a FND username or id of session ICX APEX of Oracle e-Business to load the information of the employee. The Oracle while paper and the document of the stem of the West, he says that we can use the following functions.

    wfa_sec. GetSession (< username outparameter >);

    icx_sec.GetSessionCookie;

    Both of these functions return-1 or going into exception. I have confirmed with our DBAs that the APEX and e-business are installed on the same domain. APEX has access to the schema of APPS but its connected to one of our schema custom.

    No idea why it does not work?

    In addition, how can I pass the username to fnd the URL using methods (JSP Interoperable with OA) GWY.jsp? targetAppType = APEX & p101:1 or LaunchApex.jsp (depending on jsp SSWA)? Examples? And how can we apply a checksum to the URL, because it originates in Oracle e-Business.

    Your help is very appreciated.

    Hoang.

    We finally got this working. The problem was with load balancing. He was using a https protocol while ApEx has been using http. We changed the balance of the load to a http protocol, the functions return the correct values.

    Hoang.

  • Forms and reports Oracle apex Oracle10g migration

    Hello

    We are a small shop and have invested heavily in the pl/sql code to generate various reports and graphs using forms and reports10g, and it has been very stable. Forms and Reports11g oracle is different from 10g because it uses middleware and architecture is very different. and it might be overkill for what we need. Can someone point me in the right direction regarding documents, books and videos? for the migration to the APEX? I am new to Apex and will look at the documents available and wanted everything but just some advice from the user.

    Thank you

    Austin

    You really don't have to MIGRATE to the APEX, it is more than a process of re-development... Your existing PL/SQL code can be re-used when viable, but in the forms & reports you have an environment of a free State with APEX environment State...

    APEX also has this similar middleware (APEX listener with WebLogic or Glassfish)... We must therefore understand that you will need to think about what you REALLY want a gesture APEX...

    Forms & reports still work for you, then you MIGHT want to stay there with them... Otherwise, move to the APEX would be a long term choice...  Given that the future of forms & reports is not too clear...

    Thank you

    Tony Miller

    Software LuvMuffin

  • Oracle Apex 4.1 and Oracle 10g installation of the UN steps

    Hello

    Oracle apex 4.1 and Oracle 10 g installed has been corrupted. Need Experts suggestion to uninstall both and re install again. Please suggest me. Installation has been performed on the windows operating system 7


    Thank you
    Sudhir

    Check out the forum before posting questions, you MIGHT find an answer: How to remove and reinstall APEX

    Thank you

    Tony Miller
    Dallas, TX

  • Community page and Blog with Oracle Apex

    Hi guys,.

    Surprised with the overall function to Oracle Apex 4.1 and its growing popularity by replacing Oracle Forms. I am currently working on an idea to set up a page internal oracle of the community with technical Forums (say as oracle forums, ask tom etc.) as well as a blog page. Is this possible using Oracle Apex? The one you suggest a sample public request/sites with similar characteristics to have a look and feel.

    See you soon,.
    Arun

    Arun wrote:
    @fac586,.

    Thanks for your reply. I remember to check these sample application a year back and currently these are not available in the oracle site. Thanks a lot for sharing this. The latest version of Apex 4.1 will allow me to develop similar applications?

    Of course. These applications must run OK, but they don't use any APEX 4.x features. As part of your studies, you might want to run through the upgrade utility to upgrade a little.

  • How schema can be exported and imported into Oracle Apex?

    Hello

    I am very new to oracle apex. I had installed the apex and the Oracle XE database successfully. I want to import an application to my apex. It was created using workspace - worm and schema - Ves. I had imported the application and the workspace in my apex. But, I'm not able to run the application because I had specified my diagram (HR) by default for the application. How can I import the schema "Ves", in which the application is developed, in my apex?... so that I can run the application in the same pattern... Help, please. Thank you

    Do a quick web search for ApexLib highlights the suggestion that a part of your installation is missing. No doubt the other APEX instance includes the so-called Apex Lib, which seems to be a sort of add-on APEX framework (I never heard him personally sorry Patrick!).

    It seems that your original application has dependencies on this module, which you have not captured during migration. I suggest re - visit your existing instance of APEX and see what are the additional dependencies it (it has different points of view in the dictionary of the APEX which can help you with this) deal with them everything first, then re - try your migration of the application.

  • Reading and updating of MS Active Directory (AD) by Oracle APEX

    Hi all

    Anyone who has ever read and update components using Oracle APEX AD?
    I know we have accumulation APEX in the LDAP authentication, but this is for authentication, what reading other attributes such as phone number, Department, office etc. of MS AD; and updated about the same information.

    Oracle Identity Management is the only solution
    Windows Server 2008 R2 provide SOAP based web services (ADWS), AD has anyone who used with APEX (11g R2 with setting up EPG)?
    Is it possible to have a c# code (thanks to an outpatient procedure) who could read and write MS AD; can we only use the 'C' code in oracle as external proc or c# as well?

    Pointers would be a great help.

    Thank you
    Ash

    Hello Ash,

    APEX LDAP API is a simplification for the DBMS_LDAP API provided by your database. You can use this API in APEX as well. This API is documented here:
    http://download.Oracle.com/docs/CD/E14571_01/OID.1111/e10186/dbmsldap_ref.htm#OIMAD009
    Among many other examples that you find in this forum, you can look in the following thread for an example of extracting any LDAP (including AD) attributes: {message identifier: = 8399529}

    -Udo

Maybe you are looking for