Database Queries/Filters Using APEX Maps

Hi All,
I'm a new programmer to Oracle APEX, and would love some help!!
I am constructing a database that has information about laboratories around the world that test for a certain type of disease. I've built a page in my application, and within that page, I have a Map region showing the United States. I want the user to be able to click on a state and it will send them to a filtered list (or table) of all the labs in that state. From there, the user should be able to click a lab and view all of the tests available at that lab. I'm having a difficult time getting the filtering of the database to work when the user clicks on a state. If anyone could help me figure this out, that would be wonderful!
Thank you so much in advance!

If you mean a flash chart that is building a map of the us, then you can do this will ease..  You would build a Anychart Map of the US as a region and associate your lab data for each state.  I would then have the State drilldown to an interactive report that would allow accessing each site..
Does that help?
Thank you,
Tony Miller
LuvMuffin Software

Similar Messages

  • Read email using APEX

    Hi,
    Now APEX has some good API to send out emails -- but any idea how to retrieve emails from mail server using APEX or pl/sql packages?
    Basically something to retrieve emails to database table and use APEX to build a UI to read them.
    Thanks!
    thcheng

    Hi,
    have a look at http://sql-plsql-de.blogspot.com/2007/12/emails-aus-einem-postfach-abrufen.html
    It describes a Java stored procedure to read emails which is wrapped by a PL/SQL wrapper. The posting is written in German, but you can use a translation service like Google to read it in English.
    Patrick
    My APEX Blog: http://www.inside-oracle-apex.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://apexplugin.sourceforge.net/ New!

  • Filtering OVD with database field and not field which is used for mapping

    Hi,
    I have a requirement where we are using OVD and creating a dataabase adapter. In the database adapter, I want to put a condition to check whether Status = 0. This field is not used in mapping, but only for putting condition.
    Can you please guide me how to put filter condition in OVD?
    Thanking you,
    Regards,
    Prashant

    Hi,
    Use the floating field in Adobe.
    Use a  Static Text Field  and Insert the Field EMPLOYEE_DETAIL-PERIOD from your Data View
    Thanks.
    Uma

  • How to use Oracle maps in APEX??

    I am developing one application in APEX 3.2. I need to use Oracle Map for the same.
    How to integrate Oracle maps with Apex ?? Can any one help me for this ?
    Thanks

    Nagesh.Patil wrote:
    Hi All,
    I want to use oracle workflows in my apex application.
    can anybody tell me how can I get this ?
    Thanks in advance..
    Database version : 11g XE
    Apex version : 4.0
    Nagesh Patil
    Oracle Workflow is only available as a component of EBS. It has never been available on, and is not certified for Oracle 11g, nor any version of XE.

  • Uploading csv file into database using apex

    Dear all
    I am using apex 4 and oracle express 10g, i need to upload .csv file into the database for one of my appls, i have referred discussion forum for solutions, i found also, but some how its not working for me.
    below mentioned is error and the code
    ERROR:
    ORA-06550: line 38, column 8: PLS-00221: 'V_DATA_ARRAY' is not a procedure or is undefined ORA-06550: line 38, column 8: PL/SQL: Statement ignored ORA-06550: line 39, column 8: PLS-00221: 'V_DATA_ARRAY' is not a procedure or is undefined ORA-06550: line 39, column 8: PL/SQL: Statement ignored ORA-06550: line 40, column 8: PLS-00221: 'V_DATA_ARRAY' is not a procedure or is undefined ORA-06550: line 40, column 8: PL/SQL: Statement ignored ORA-06550: line 41, column 8: PLS-00221: 'V_DATA_ARRAY' is not a proc
    Error
    OK
    CODE:
    DECLARE
    v_blob_data BLOB;
    v_blob_len NUMBER;
    v_position NUMBER;
    v_raw_chunk RAW(10000);
    v_char CHAR(1);
    c_chunk_len number := 1;
    v_line VARCHAR2 (32767) := NULL;
    v_data_array wwv_flow_global.vc_arr2;
    BEGIN
    -- Read data from wwv_flow_files
    select blob_content into v_blob_data
    from wwv_flow_files where filename = 'DDNEW.csv';
    v_blob_len := dbms_lob.getlength(v_blob_data);
    v_position := 1;
    -- Read and convert binary to char
    WHILE ( v_position <= v_blob_len ) LOOP
    v_raw_chunk := dbms_lob.substr(v_blob_data,c_chunk_len,v_position);
    v_char := chr(hex_to_decimal(rawtohex(v_raw_chunk)));
    v_line := v_line || v_char;
    v_position := v_position + c_chunk_len;
    -- When a whole line is retrieved
    IF v_char = CHR(10) THEN
    -- Convert comma to : to use wwv_flow_utilities
    v_line := REPLACE (v_line, ',', ':');
    -- Convert each column separated by : into array of data
    v_data_array := wwv_flow_utilities.string_to_table (v_line);
    -- Insert data into target table
    EXECUTE IMMEDIATE 'insert into TABLE_X (v1, v2, v3, v4 ,v5, v6, v7,v8 ,v9, v10, v11)
    values (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11)'
    USING
    v_data_array(1),
    v_data_array(2),
    v_data_array(3),
    v_data_array(4);
    v_data_array(5);
    v_data_array(6);
    v_data_array(7);
    v_data_array(8);
    v_data_array(9);
    v_data_array(10);
    v_data_array(11);
    -- Clear out
    v_line := NULL;
    END IF;
    END LOOP;
    END;
    what i understand from this is system does not identify v_data_array as array for some reasons, please help me.
    initially system was giving error for hex_to_decimal, but i managed to get this function on discussion forum and now it seems to be ok. but v_data_array problem is still there.
    thanks in advance
    regards
    Uday

    Hi,
    Mistakes in your sample I did correct
    Problem 1
    select blob_content into v_blob_data
    from wwv_flow_files where filename = 'DDNEW.csv'; to
    select blob_content into v_blob_data
    from wwv_flow_files where name = :P1_FILE;Problem 2
    EXECUTE IMMEDIATE 'insert into TABLE_X (v1, v2, v3, v4 ,v5, v6, v7,v8 ,v9, v10, v11)
    values (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11)'
    USING
    v_data_array(1),
    v_data_array(2),
    v_data_array(3),
    v_data_array(4);
    v_data_array(5);
    v_data_array(6);
    v_data_array(7);
    v_data_array(8);
    v_data_array(9);
    v_data_array(10);
    v_data_array(11);  to
    EXECUTE IMMEDIATE 'insert into TABLE_X (v1, v2, v3, v4 ,v5, v6, v7,v8 ,v9, v10, v11)
    values (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11)'
    USING
    v_data_array(1),
    v_data_array(2),
    v_data_array(3),
    v_data_array(4),
    v_data_array(5),
    v_data_array(6),
    v_data_array(7),
    v_data_array(8),
    v_data_array(9),
    v_data_array(10),
    v_data_array(11);  And I did create missing table
    CREATE TABLE TABLE_X
        v1  VARCHAR2(255),
        v2  VARCHAR2(255),
        v3  VARCHAR2(255),
        v4  VARCHAR2(255),
        v5  VARCHAR2(255),
        v6  VARCHAR2(255),
        v7  VARCHAR2(255),
        v8  VARCHAR2(255),
        v9  VARCHAR2(255),
        v10 VARCHAR2(255),
        v11 VARCHAR2(255)
      );Regards,
    Jari
    Edited by: jarola on Nov 19, 2010 3:03 PM

  • Changing passwords using APEX and Database Credentials

    We are developing an application that uses database credentials. We can login very easily. Is there a simple way to create a page so that the users can change their own passwords? I understand that the users will in effect be issuing an ALTER USER statement from within APEX. However, we get an "Insufficient Privileges" error message when issuing the command from APEX. So, whose credentials is APEX using?

    J,
    So, whose credentials is APEX using?
    There are no credentials involved here. All code in your PL/SQL application is parsed as the schema that owns the application. When you implement your PL/SQL application using Application Express, that schema is the "Owner" attribute, or parsing schema.
    See Re: ORACLE Password Change using APEX FORM
    Scott

  • Uploading csv file with number type data to database using apex

    hi
    am trying to upload csv file to oracle database using apex when i select the file using file browser and click on the button.
    my table looks like
    coloumn type
    col1 number(2)
    col2 number(2)
    col3 number(2)
    col4 number(2)
    please tell me the steps i need to follow
    urgent requirement

    This thread should help - Load CSV file into a table when a button is clicked by the user

  • Map the user exit variables with the queries/cubes using them

    Hello Friends,
    What are the post unicode conversion tests that you can perform on front end/existing queries?
    is there any added advantage for queries due to unicode?
    is testing the working of variable  enough? is there any table to map the user exit variables with the queries/cubes using them?
    Thanks
    Tanya

    Guys, any clue about this? Answer are appreciated.
    Thanks
    Tanya

  • Anyone have trouble convincing database infrastructure support to use Apex?

    Hi,
    I am consulting at a very large bank which outsources its database operations to another company. As such, the outsourcing group has very strict rules surrounding database usage. I have been using Application Express for a while now and would like to use it on projects for my current client. Unfortuneately, the outsourcing group has decided to reject usage of Application Express since it requires additional services (the web server) that they do not sancion running on database server. They also cited the email capbilities and web services as reasons why they shun it's usage.
    Anyone else run into this? If so, anyone successful in overcoming the arguments being made by this group? In my opinion they are just being lazy in that they don't want to deal with something new. Instead of building processes to monitor and control what they fear they have decided to not deal with it entirely and the effect is lost productivity of not being able to use technology such as Apex.

    Hi Bill,
    Oh I feel your pain, I've heard that sort of argument many times before (so excuse the cynicism/humour in my replies, it's not directed at you...it's against 'them') -
    Unfortuneately, the outsourcing group has decided to reject usage of Application Express
    since it requires additional services (the web server) that they do not sancion running on
    database server.As Bob says, you can install the OHS on another machine if that is their primary concern. Infact many times you might want it on a seperate machine anyway. As for the 'requires additional services', show me one component of Oracle that doesn't rely on another ;)
    Do they object to running the listener on the machine so that you can connect to it? Thought not ;)
    They also cited the email capbilities and web services as reasons why they shun it's usage. The easy answer is...if they don't like them, don't use them.
    My 'cynical' answer would be, have they removed the UTL_MAIL/UTL_TCP packages from the DB? Do they know they're there?
    In my opinion they are just being lazy in that they don't want to deal with something new.Harsh...but I somewhat agree with you, it's easy to dismiss offhand things that we don't know about, it takes a braver person to stand up and say "Dang....this tool is *so* much better than the one I just spent years learning" ;)
    The thing is, pretty much every argument I've heard against using APEX can either be disproved or counteracted, so long as it is a technical reason (or even just an 'urban myth'). However if it's a 'business rule' that you don't use 'XYZ' technology then it's often incredibly difficult to change that rule.
    However, I have come across a surprising number of 'Guerilla Projects', where even though APEX wasn't 'officially' used as a development tool by a company, some 'enterprising' developers have got hold of it, developed something, released it to users and changed perception that way (as Bob again mentions).
    In additional to Bob's other comment about setting up a test machine, why not show them what can be done in just a few minutes using the public Oracle site (http://apex.oracle.com), since a quick visual click-and-show often changes opinions a lot faster than giving them 200 pages of documentation ;)

  • How to regularly load data from .csv file to database (using apex)

    Hi,
    i am using apex3 , I need to load data from a csv file to apex . I need to perform this automatically through code at regular time interval of 5-10 seconds.
    Is it possible .If yes how ?. Please reply as early as possible. This will decide whether to use apex or not for this application.
    this is question for Application Express. Dont know why in forum for BPEL
    Edited by: TEJU on Oct 24, 2008 2:57 PM

    Hello,
    You really need to load the data every 5-10 seconds? Presumably it's read only?
    I would look at using an Oracle external table instead, that way you just drop your CSV in a location the DB can read it and then you build a table that essentially references the underlying CSV (that way when you query the table you view the data in the CSV file).
    Take a look at this link for a quick example on usage -
    http://www.oracle-base.com/articles/9i/SQLNewFeatures9i.php#ExternalTables
    Hope this helps,
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

  • Crosstab/Pivot queries.  How can I edit using Apex?

    Hello, all.
    I currently have a report within Apex that displays the results of a crosstab/pivot query as shown below. This works fine.
    What I now need to do is provide edit functionality on each row. The row does not have an individual ID column per sé as each row is the result of the crosstab query.
    What is the best way to offer the edit functionality using Apex?
    Thank,
    S>
    QUERY:
    SELECT vendor, product,
         MAX (DECODE (TO_CHAR(valuedate, 'MON'), 'JAN', amount, NULL)) AS JAN,
         MAX (DECODE (TO_CHAR(valuedate, 'MON'), 'FEB', amount, NULL)) AS FEB,
         MAX (DECODE (TO_CHAR(valuedate, 'MON'), 'MAR', amount, NULL)) AS MAR,
         MAX (DECODE (TO_CHAR(valuedate, 'MON'), 'APR', amount, NULL)) APR,
         MAX (DECODE (TO_CHAR(valuedate, 'MON'), 'MAY', amount, NULL)) MAY,
         MAX (DECODE (TO_CHAR(valuedate, 'MON'), 'JUN', amount, NULL)) JUN,
         MAX (DECODE (TO_CHAR(valuedate, 'MON'), 'JUL', amount, NULL)) JUL,
         MAX (DECODE (TO_CHAR(valuedate, 'MON'), 'AUG', amount, NULL)) AUG,
         MAX (DECODE (TO_CHAR(valuedate, 'MON'), 'SEP', amount, NULL)) SEP,
         MAX (DECODE (TO_CHAR(valuedate, 'MON'), 'OCT', amount, NULL)) OCT,
         MAX (DECODE (TO_CHAR(valuedate, 'MON'), 'NOV', amount, NULL)) NOV,
         MAX (DECODE (TO_CHAR(valuedate, 'MON'), 'DEC', amount, NULL)) DEC
    FROM (SELECT v.NAME AS vendor, p.NAME AS product, vt.NAME AS valuetype,
              e.datetime AS valuedate, e.VALUE AS amount
              FROM pfm_entry e, pfm_vendor v, pfm_product p, pfm_value_type vt
              WHERE e.vendor_route_id = v.route_id
              AND e.product_id = p.ID
              AND e.value_type_id = vt.ID
              AND e.value_type_id = 1
              AND e.datetime BETWEEN '01-JAN-07' AND '31-DEC-07')
    GROUP BY vendor, Product

    Hello, Steven
    Maybe you can use collections for that.
    Create a new collection which store your select statement.
    Each member of the collection have a unique id so you can use edit functionnality.
    And create a PL/SQL process which update your original table when the elements
    of your collection is updated.
    You can look at this doc. It may be useful.
    http://www.oracle.com/technology/oramag/oracle/06-nov/o66browser.html
    Mike

  • Can I use APEX directly read/sync with the Oracle Tables ?

    We have a Oracle Database to manage the design data.I am trying to setup a web-based front end using APEX to manage & monitor the parts ordering & logisitics.I want to drive the master data directly from the database without any export or data transfer ? Can I directly read or Link an Oracle tables from APEX application.
    Also,once this is setup,I am looking for setting up some data entry fields to enter Purchasing & Logistics information.Hope I can achieve this using APEX !
    Look forward for the appropriate response.
    Thanks,
    Sham

    Tony,
    Thanks & Appreciate your Quick response.
    Glad that I can use the existing Oracle db schema with APEX.I am not sure if there is any information as how I can connect or link my production schema to the APEX ! I was able to import .csv files & use XL data to create some test databases & play with APEX..but,I did try to go thru most of the instructions & guides to find how to use the production oracle tables,but,could not find anything particular...Please send me a link or material info.
    I suppose I can then use which ever attribute or table data that is required to build the queries ! I am planning to use the production data to build the ordering & logistics application using APEX.Assume I can create new fields & columns for parts that will be ordered & capture/record the purchasing information like Purchase order numbers/Supplier Info/Target Delivery dates etc...
    - Am on very tight schedules to get this application up & running ! Is there any support team or a technical support team that I can call upon if I need any help ?
    Thanks,
    Sham

  • Need help to develop CMDB using Apex

    Hi,
    We have a large number of servers, databases, environments, applications, etc for which we have planned to create a repository. Hence we need to develop a CMDB for the same.
    I have gone through the example tutorials related to Apex.
    However, I have never used Oracle 11g or Apex or SQL*Plus, which are required for this purpose.
    After installing Oracle11g, how do I create a test/fresh database in Oracle before installing Apex in it?
    So can someone help me with a detailed procedure to implement this CMDB, including installation of Apex?
    Thanks in advance.
    You can also reach me at [email protected]
    Regards
    Sharath
    Edited by: 906997 on Jan 10, 2012 1:35 AM
    Edited by: 906997 on Jan 10, 2012 1:55 AM

    Hello Sharath,
    >
    After installing Oracle 11g, we need to create some database in it so that Apex can be installed in it right?
    Can you please guide me on how to create the first database or some database in Oracle 11g?
    >
    You have to create a database if only you have installed Oracle 11g it with Install Database Software Only instead of Create and Configure Database option.
    If don't have a database now you have to create one with Database Configuration Assistant, suppose you have Oracle Database 11g Release 1:
    http://docs.oracle.com/cd/B28359_01/server.111/b28301/install003.htm#BABEIAID
    Besides this forum category is dedicated to Oracle Application Express, for Oracle Database related questions please post on:
    {forum:id=61}
    You will get appropriate answer when you post in appropriate forum.
    In order to get accurate/appropriate response you should include at least following information with your question:
    <ul>
    <li>Full APEX version</li>
    <li>Full Database version</li>
    <li>APEX Web server architecture (EPG, OHS or APEX listener)</li>
    <li>Browser(s) and version(s) used</li>
    <li>Operating system with version</li>
    </ul>
    Please read the [url https://wikis.oracle.com/display/Forums/Forums+FAQ]FAQ and [url https://forums.oracle.com/forums/ann.jspa?annID=1324]forum instructions for more information on using OTN forums effectively.
    Please update your forum profile with a real handle instead of *906997*.
    Hope it helps!
    Regards,
    Kiran

  • Where html pages located, which created by using APEX?

    Hi,
    I am using APEX 2.1(Oracle XE) to develop an app, would like to know where html pages stored?
    In other word, how can I put the existing html pages into APEX web server? I don't want to run two web servers on same computer.
    This question may relate to update APEX from 2.1 to 2.2, how to do the upgrade, my APEX is included in Oracle XE.
    Thanks.

    Hello,
    >I followed the method to view :8080/i, it's
    interesting, all stuffs are XE's but not find my own
    pages built by APEX.
    >I guess I'm confused now. You say "built by APEX"
    APEX doesn't build static pages so there is no way to
    access them statically.
    I thought what you wanted is you have static pages
    that you want to serve off an XE instance without
    using another webserver. By uploading your static
    html files into the /i/ directory you can serve them
    from there using the embedded webserver.
    If you want to server your pages from within the
    framework itself that at least means uploading them
    into the Shared Components and then linking to them
    in an iframe or frame to get valid pages or at the
    most getting the content sections into the database
    and pulling them into a region on a page.
    Your question is a little vague, can you be more
    detailed on what exactly you want and what you
    expect.
    CarlSorry for my unclear questions. But your answers are very right to me. Yes, I want to put my existing static html files into the /i/ directory, so I can serve them from there using the embedded webserver. I will upload them into Shared Components to try, I appreciate if you tell me how to make the link between these html pages to iframe. I am newby to this.
    My second question is that I use APEX built some test pages, but I can not find them in :8080/i virual fold.

  • Help With "Package An Application" Using APEX  3.0.1 with XE

    I'm using apex 3.0.1 and XE Database and I'm trying to create a package application but without succes, I can find the way to do it and I know that it's possible. What I'm trying to do is create a file like the package application that we can download from Oracle page but for an application I create.
    Looking here in the forums I found this link:
    http://www.oracle.com/technology/oramag/oracle/06-jul/o46browser.html
    And I was trying to follow it step by step until I found the Step 4: Package Up the Application, number 7.
    1. In the breadcrumb links in the upper left-hand corner of the screen, click the Application nnn link (where nnn corresponds to the ID of the employee lookup application in your Oracle Application Express instance).
    2. Click the Edit Attributes icon, and then click Supporting Objects.
    3. Click Edit.
    4. In the Welcome section, enter readme text for the application in the Message field, such as "This application lets users browse employee information. Users accessing the application with a USERID stored in the table can upload a photo if one does not already exist."
    5. Click the right arrow to go to the Prerequisites tab.
    6. To ensure that folks who already have a table named OM_EMPLOYEES in their schemas don't run into a conflict with this script, enter OM_EMPLOYEES in the first Object Names field and click Add.
    [b]7. Click the Scripts tab.
    8. Click Create.
    9. Click the Copy from SQL Script Repository icon.
    10. Enter Create Table, Sequence, and Trigger in the Name field, and click Next.
    11. Select om_employees.sql, and click Create Script.
    12. Repeat steps 9 through 11 for the om_download_pict.sql and seed_data .sql scripts. Feel free to name these scripts as you see fit.
    13. Click the Deinstall tab, and click Create.
    14. Click the Create from File icon.
    15. Click Browse, select the drop_om_objects.sql script (included with this column's download file), click Open, and click Create Script.
    16. Click the right arrow.
    17. Select Yes for Include Supporting Object Definitions in Export.
    18. Click Apply Changes.
    I can't find the scrips tab and I completely lost. I start to believe that this steps don't apply for Apex 3.0.1.
    If anyone of you could help me with this, please do it, I really need it.
    Johann.

    Johann,
    That doc was probably written against 2.2 because in 3.0, we reworked the supporting objects page a bit. If you are on Supporting Objects, in the Installation region, click on Installation Scripts. For more information, check the Advanced Tutorials document off our OTN site for a Tutorial called Reviewing a Packaged App (something like that - I can't access the doc at the moment).
    -- Sharon

Maybe you are looking for