Beginer in apex

dear experienced
i am beginer in apex and i follow the steps to install apex and there is step not work, that i need to enter
http://www.localhost.com:8080/apex/apex_admin
but it not work
and please if any one has easy steps to install apex and start with apex please write to me.
Best regards
Yasser

Hi Yasser,
You have provided very little information for anyone to give a detailed reply. What example of the database are you using? What version of APEX are you trying to install?
Many people have blogged about installing APEX and below are some links and a youtube video that will hopefully help you:
http://www.scribd.com/doc/5456221/Stepbystep-guide-to-install-Oracle-APEX-on-XE-on-Windows
https://sites.google.com/site/wanglianbing/oracle-1/install-apex-on-oracle-11g
http://www.youtube.com/watch?v=cXQ_RP3Z6bI
I would also suggest once you get it installed that you do the APEX 2 day developer guide:
http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35122/toc.htm
Thanks
Paul

Similar Messages

  • Uploading an image in interactive report APEX 4.0

    Hi,
    I hope you can help me. I am using the book "Begining ORACLE APEX", which is for APEX 3.1.2, to learn APEX. Now, I use the online APEX 4.0. In the 6th chapter one should add new columns to the PRODUCTS table: one for the PRODUCT_IMAGE, a BLOB column, and 3 more for MIMETYPE, FILENAME, and IMAGE_LAST_UPDATE. So, i need to make an interactive report, with this new table. I include it, but when I run the application it doesn't show. So i insert in the SQL for the report : "PRODUCT_IMAGE", and run the page again, and there i add the column using Actions button. When added, each row is is filled with: [unsupported data type]. When trying to upload an image it doesn't work. It doesn't show anything. I even tried putting: dbms_lob.length("PRODUCT_IMAGE") "PRODUCT_IMAGE" in the SQL of the report, but it doesn't work. It is like a problem with uploading the image. It doesn't do anything.
    I would really appreciate your help, this is really important for my job..
    Sincerely,
    Leila

    See the sample application provided in your workspace, there in page no 3 they have created a interactive report showing a image in one of the column, I think it will solve your problem.
    Tauceef

  • Last URL used by APEX

    Short Version: Is there a way to get the last URL in APEX using PL/SQL?
    Long Version:
    I am updating a standard error handling package to log the URL of the APEX page where the error occurred. I have a simple call that can be included in the exception section. For example:
    BEGIN
    ...statements
    EXCEPTION
    WHEN OTHERS THEN
    frwe_err_pkg.unexpected
    END;
    This call logs the error and redirects the application to a standard error page. I'm also logging the URL as part of the error context using the following code to get the url:
    FUNCTION apex_url
    RETURN VARCHAR2
    IS
    l_url VARCHAR2(4000);
    BEGIN
    l_url := owa_util.get_cgi_env ('REQUEST_PROTOCOL') || '://'
    || owa_util.get_cgi_env ('HTTP_HOST') || ':'
    || owa_util.get_cgi_env ('SERVER_PORT') || '/'
    || owa_util.get_cgi_env ('SCRIPT_NAME')
    || owa_util.get_cgi_env ('PATH_INFO') || '?'
    || owa_util.get_cgi_env ('QUERY_STRING');
    RETURN l_url;
    END apex_url;
    This works great in cases where errors occur in PL/SQL blocks for page level items and ON LOAD processes but I'm running into problems with ON SUBMIT page level processes because the URL is redirected. When an ON SUBMIT process raises an error owa_util.get_cgi_env ('PATH_INFO') returns "wwv_flow.accept" and owa_util.get_cgi_env ('QUERY_STRING') returns NULL. Is there a way to get the URL previous to the redirect using PL/SQL?

    I wrote a logging package that I plan to "release" someday soon. The following procedure might be useful to you in the context of your question:
    procedure snapshot_apex_items(
            p_log_id in number)
        is
            l_app_session number;
            l_app_id       number;
        begin
            $IF $$APEX $THEN
                l_app_session := v('APP_SESSION');
                l_app_id := v('APP_ID');
                insert into logger_logs_apex_items(log_id,app_session,item_name,item_value)
                    select p_log_id,l_app_session,item_name,item_value
                      from wwv_flow_data
                      where flow_instance = l_app_session
                        and flow_id = l_app_id
                        and item_name is not null;
            $END
            null;
        end snapshot_apex_items;You need to grant select on wwv_flow_data to whatever user owns this package / procedure. Don't grant anything more than select and don't grant it to public. I call this proc from exception blocks or wherever I need to debug a tough problem. The table is a child of my main logger table which already has module, action, client_id, sqlerr, callstack, etc. This proc grans the name / value pairs of every item in your current APEX session.
    Tyler

  • To whom it might interest - "bulk" changes to the apex repository

    For those who might be interested in methods for "bulk" changing the apex repository, especially for medium large applications, i wrote a few queries that may come in handy for common problems like :
    - "how to change template on all labels currently set to "Optional"?
    - "how to quickly delete a region with a given name from multiple pages in one shot?"
    - "how to check if there are items or buttons attached to a region?"
    and stuff like that...
    The list of queries that i initially supplied is supposed to grow in the future.
    Of course this kind of practice is absolutely unsupported, officially discouraged, so, use at your own risk.
    http://oraclequirks.blogspot.com/2008/10/some-examples-of-bulk-changes-to-apex.html
    Flavio
    http://oraclequirks.blogspot.com

    Hi Flavio
    Your post didn't appear to set session state anywhere, which tends to screw things up.
    ie. your objects "disappear" from your workspace and get reassigned to flow_id 0.
    I always do the following before any changes:
    declare
    l_flow_id number := 101; /** set to match application */
    l_company_id number := 1203342054321505; /** set to match application */
    l_user varchar2(30) := 'MARK'; /** set to match application */
    l_sgid number := wwv_flow.get_current_flow_sgid(l_flow_id,l_company_id);
    l_csize number := 12;
    begin
    -- set Apex context
    apex_application.g_user := l_user;
    wwv_flow.g_flow_id := l_flow_id;
    if l_sgid is not null then
    wwv_flow_api.set_security_group_id(p_security_group_id=>l_sgid);
    else
    raise_application_error(-20000,'Security group ID not found - must fix before can continue.');
    end if;
    /*** now do your changes ***/
    end;

  • Region Poisitioning

    Hi
    I am creating forms. It is having lots of information so want to divide it as per group and for that creating regions.
    I am very beginer to apex so as per my knowlege what i understand is region is used to group releated items. Please correct me if i am wrong.
    Now my requirement is to create almost 10 regions. In one region there are 5 sub regions need to created.
    Issue is i am not able to set poision of regions. There is static region id identifier to refrece particular region, but dont know how to use it.
    Can you please explain how to set position of region usign static region id or if any other way.
    Thanks in advance.

    You need to use a combination of features, most of which are in the Edit Region page - User Interface section.
    Perhaps obviously, you first need to set the correct order for your regions using the Sequence field.
    Then use the Column field to position regions side by side. To control the side by side positioning of regions more finely you may want to edit the Region HTML table cell attributes.
    It is also worth experimenting with the Template and Display Point attributes.
    Beyond that, you may need to start changing the display attributes of items or reports within your region.

  • Function Body Returning Query -  Questioning my Approach

    Application Express 3.2.0.00.27
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    I have some concerns that I am not using this in the optimal manner.
    Essentially I have all my queries in a package body and I call each report as follows:
    declare
    v_query varchar2(4000);
    begin
    v_query := apex.report_name(p1=>   :page_item_1,
                                                  p2=>   :application_item2);
    return 'select * from ('|| v_query||' )';
    end;I then generate the string in the report_name procedure
    and concatenate the string.
    This results in a valid sql string being returned to the database , however if I pass a different value
    then I will get a different sql string.
    I would rather be able to use bind variables using this approach if at all possible.
    So is this the correct approach is there a better approach?
    Edited by: Keith Jamieson on Jan 18, 2012 12:50 PM
    Edited by: Keith Jamieson on Jan 18, 2012 1:40 PM

    Current project makes extensive use of packages containing Function Body Returning Query report sources to dynamically build queries from SQL modules. However, the queries generated by any function are all used within one page. This enables page item bind variable references to be fixed within the SQL:
    function emp (p_commission in number) return varchar2
    is
      q_emp_qry varchar2(4000) := q'{select * from emp where 1 = 1 }';
      k_has_comm constant varchar2(2000) := q'{and comm >= to_number(:p2_sales_comm)}';
    begin
      if p_commission is not null
      then
        q_emp_qry := q_emp_qry || k_has_comm;
      end if;
      return q_emp_qry;
    end emp;

  • Dynamic SQL queries in HTMLDB application

    How can i build a HTMLDB page only for dynamic sql queries like the features in the HTMLDB SQL-workshop.
    I need a SQL interface for some power user running some ad-hoc queries.
    Can i call this page directly from any other HTMLDB application?
    Regards
    Martin

    Hello Martin,
    I am a beginer in APEX but I have the same problem with you. What are your solution for dynamic sql query ? For report a solution is Pl Sql procedure which return a sql query. But for a form ?

  • JQuery error on tabular form

    I try to check/uncheck all checkboxes in one column in a manual tabular form when one clicks at the checkbox in the column header. I am doing it with the jQuery:
    function handleCheckboxes(obj, fldName){
    $("[name=" + fldName + "]:checkbox").attr('checked', obj.checked);
    At my APEX workspace it works : http://apex.oracle.com/pls/otn/f?p=33365:1
    However, in a real application, the checkbox in the first row of data gets checked/unchecked, but not the others. I get the following error in the jquery_min.js:
    uncaught exception: String contains an invalid character (NS_ERROR_DOM_INVALID_CHARACTER_ERR).
    ret=jQuery.merge(ret,elem);});return ret...etInterval||array.call)ret[0]=array;else
    I have reduced my tabular form to only one column containing only checkboxes - the result is the same.
    Maybe someone has an idea what this error stems from and, better how to get rid of this problem?
    P.S. I can do the same thing without jQuery, but I am planning to use this tool for other APEX/AJAX tasks so I would like to get it right in the beginning.
    APEX: v 3.1.2.00.02
    jQuery: v.1.2.6
    Igor

    Problem solved.
    When I took away the reference to json.js library (http://www.json.org) from page template, jQuery began to work OK.
    In the meantime, there was a new version of the library on their site, json2.js (19.11.2008) and this new version does not seem to conflict with jQuery library.

  • Problems with OWA_COOKIE send and get

    Hi all,
    I have a problem with OWA_COOKIE-package. What I'm trying to do is to integrate Oracle eBS and an APEX app. The application resides on different databases and servers.
    I'm basing my code on this white paper:
    http://www.oracle.com/technology/products/database/application_express/pdf/Extend_Oracle_Applications_11i.pdf
    I have the function set up in eBS and it redirects me to my APEX login page. The next step is to pass a cookie with the user name password to the APEX app. Here the problems begins.
    My launch code in the eBS database (lots of hardcoded values just for the test):
    PROCEDURE xxapex_launch (application IN NUMBER DEFAULT 107
                           , page IN NUMBER DEFAULT 1
                           , request IN VARCHAR2 DEFAULT null
                           , item_names IN VARCHAR2 DEFAULT NULL
                           , item_values IN VARCHAR2 DEFAULT NULL) AS
    BEGIN
      OWA_UTIL.mime_header('text/html', false);
      OWA_COOKIE.send (name => 'APEX_APPS_107',
                       value => 'daniel:development',
                       expires => sysdate + 365,
                       path=>'/');
      OWA_UTIL.redirect_url('http://server:8090'||'/apex/f?p='||
                            application||':'||page||'::'||request||':::'||
                            item_names||':'||item_values);                       
    END xxapex_launch;
    The application process in APEX that should read the cookie(on-load before header):
    DECLARE
      c OWA_COOKIE.cookie;
      a wwv_flow_global.vc_arr2;
    BEGIN
      c := OWA_COOKIE.get('APEX_APPS_107');
      a := htmldb_util.string_to_table(c.vals(1));
      :P160_USERNAME := a(1);
      :P160_PASSWORD := a(2);
      IF :P160_PASSWORD IS NOT NULL THEN
        wwv_flow_custom_auth_std.login(
           P_UNAME => :P160_USERNAME,
           P_PASSWORD => :P160_PASSWORD,
           P_SESSION_ID => v('APP_SESSION'),
           P_FLOW_PAGE => :APP_ID||':160');
    __END IF;
    END;The error I get is no-data-found when this is run:
    :P160_USERNAME := a(1);
    The c.num_vals is 0 and what I can understand OWA_COOKIE.get does not find my cookie. Is there anybody out there that can point on what I'm doing wrong?
    Regards Daniel

    Back on this....
    Is there somebody that have successfully implemented the solution described in?
    http://www.oracle.com/technology/products/database/application_express/pdf/Extend_Oracle_Applications_11i.pdf
    Questions:
    Should I create a custom login page or use the default (that using my custom Authentication Scheme)?
    In the white paper where it's described on how to create the application process (that reads the cookie) it says (page 5):
    "This process should be conditional and should not be run if the login page is processing a logout request."
    Does somebody know on how to achive this?
    In my case my eBS is on one server and the APEX installation is on another server, I don't know if that's
    what preventing it to work.
    I'm trying to make a very simple proof of conecpt, my app only contain one login page (the default) and
    one blank HTML-page. I have a database link between my APEX and EBS database (using APPS user). My
    app works fine in a stand-alone scenario. But when I start it from EBS I get the login page (the appl.
    process code has not fired) and if I tries to login using a username and a pwd I can se that the
    appl. process fires and is reading the cookie correctly. The problem is that it "hangs" and it seems that
    appl. process fires over and over again (can see that in my log table).
    My code:
    The Authentication Function
    create or replace FUNCTION demo_ebiz_suite_auth
    (p_username in VARCHAR2,
    p_password in VARCHAR2) return BOOLEAN is
    begin
    __return true; /* can log in with whatever */
    end;
    Application Process - On load: Before header (page template header)
    DECLARE
    __c OWA_COOKIE.cookie;
    __a wwv_flow_global.vc_arr2;
    BEGIN
    __demo_toLog('APEX process', '1');
    __c := OWA_COOKIE.get('APEX_APPS_'||:APP_ID);
    __a := htmldb_util.string_to_table(c.vals(1));
    __:P101_USERNAME := a(1);
    __:P101_PASSWORD := a(2);
    __demo_toLog('APEX process', ':P101_USERNAME '||:P101_USERNAME);
    __demo_toLog('APEX process', ':P101_PASSWORD '||:P101_PASSWORD);
    __demo_toLog('APEX process', ':APP_ID '||:APP_ID);
    __IF :P101_PASSWORD IS NOT NULL THEN
    ____demo_toLog('APEX process', 'before trying to login');
    ____wwv_flow_custom_auth_std.login(
    ______P_UNAME => :P101_USERNAME,
    ______P_PASSWORD => :P101_PASSWORD,
    ______P_SESSION_ID => v('APP_SESSION'),
    ______P_FLOW_PAGE => :APP_ID||':1'
    ____demo_toLog('APEX process', 'after login');
    __END IF;
    EXCEPTION
    __WHEN OTHERS THEN
    ____demo_toLog('APEX process', 'Fel: '||SQLERRM);
    END;
    Maybe I'm doing some simple misstake here but I can't see it. I need a second opinion.
    Thanks.
    /Daniel

  • Apex 4 - Bug - Button image automatically adding /i/ at the beginning

    Hi,
    APEX generates a /i/ at the beginning of the image path if you don't start your input value with a slash (*/*).
    Steps to reproduce the bug
    -Create a regular button.
    -Modify the button properties (attributes)
    -Set Button Style to image
    -Set Button Image to *&A_APP_FOLDR.icon_editn.png* (should render: /res/app01/images/icon_editn.png)
    The result is: <img border="0" alt="Éditer" src="*/i//res/saf/icon_editn.png*">
    Notice the */i/* at the beginning.
    Now, if I do the same but I add a slash before my bind variable.
    -Set Button Image to */&A_APP_FOLDR.icon_editn.png*
    The result is: <img border="0" alt="Éditer" src="*//res/saf/icon_editn.png*">
    I know how to workaround this one. ;) But I am looking for a permanent fix.
    Thanks in advance to the APEX dev team for the proper correction.
    Louis-Guillaume
    http://www.lgcarrier.com
    http://www.apexframework.com

    This workaround seems to work for region buttons but not for item buttons. Item buttons still have the /i/ prepended to them.

  • Application Developed in Apex 3.2 is not working Apex 4.1

    Hi,
    We have few application developed using oracle apex 3.2 and oracle 10g enterprise edition as the database also have a Apache tomcat server configured in the system. These application are running fine have no issue in production instance.
    I recently installed Oracle Apex 4.1 and Oracle 10g Express Edition in my local machine to test these application in oracle 4.1. I took the same database dump and installed in the local machine no issues with the database side. I installed the application that are developed in 3.2 and installed in new local instance but this is not working.
    It show >>Internet Explorer cannot display the webpage
    Please suggest me what might be the issue how to trouble shoot this issue.
    Thanks
    Sudhir

    I don't understand reading so many tract file starting with
    xe_s00??Most of the trace file show about {Embedded PL/SQL Gateway:} it shows is metioned below
    Embedded PL/SQL Gateway: (wppr.c,495) Pl/sql block parsed...
    Embedded PL/SQL Gateway: (wpdenv.c,1528) CGI Environment has 33 vars. Max name len 128, Max Value Len 512
    Embedded PL/SQL Gateway: PLSQL_GATEWAY(14)=(6)WebDb
    Embedded PL/SQL Gateway: GATEWAY_IVERSION(17)=(2)2
    Embedded PL/SQL Gateway: SERVER_SOFTWARE(16)=(42)Oracle >>Embedded PL/SQL Gateway/10.2.0.1.0
    Embedded PL/SQL Gateway: GATEWAY_INTERFACE(18)=(8)CGI/1.1
    Embedded PL/SQL Gateway: SERVER_PORT(12)=(5)8080
    Embedded PL/SQL Gateway: SERVER_NAME(12)=(16)XDB HTTP Server
    Embedded PL/SQL Gateway: REQUEST_METHOD(15)=(4)GET
    Embedded PL/SQL Gateway: QUERY_STRING(13)=(36)p=4000:1500:3165980474173701::NO:::
    Embedded PL/SQL Gateway: PATH_INFO(10)=(3)/f
    Embedded PL/SQL Gateway: SCRIPT_NAME(12)=(6)/apex
    Embedded PL/SQL Gateway: REMOTE_HOST(12)=(1)
    Embedded PL/SQL Gateway: REMOTE_ADDR(12)=(10)127.0.0.1
    Embedded PL/SQL Gateway: SERVER_PROTOCOL(16)=(9)HTTP/1.1
    Embedded PL/SQL Gateway: REQUEST_PROTOCOL(17)=(4)tcp
    Embedded PL/SQL Gateway: REMOTE_USER(12)=(10)ANONYMOUS
    Embedded PL/SQL Gateway: ORACLE_SSO_USER(16)=(1)
    Embedded PL/SQL Gateway: HTTP_CONTENT_LENGTH(20)=(2)0
    Embedded PL/SQL Gateway: HTTP_CONTENT_TYPE(18)=(1)
    Embedded PL/SQL Gateway: HTTP_USER_AGENT(16)=(71)Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
    Embedded PL/SQL Gateway: HTTP_HOST(10)=(15)127.0.0.1:8080
    Embedded PL/SQL Gateway: HTTP_ACCEPT(12)=(10)text/html
    Embedded PL/SQL Gateway: HTTP_ACCEPT_ENCODING(21)=(5)gzip
    Embedded PL/SQL Gateway: HTTP_ACCEPT_LANGUAGE(21)=(6)en-IN
    Embedded PL/SQL Gateway: HTTP_COOKIE(12)=(344)ORA_WWV_REMEMBER_UN=SUDHIR:DEVELOPMENT; PUBLIC_ORA_WWV_USER_63113903525053=-1; ORA_WWV_USER_63113903525053=2AD259DDAF6770BE05FEF29509B68F5F; LOGIN_USERNAME_COOKIE=sudhir; WWV_CUSTOM-F_1638610445865577_111=CC022FAB479054CF32361C22B789D7EE; ORA_WWV_ATTRIBUTE_PAGE=4495%2C%23ALL; WWV_CUSTOM-F_1638610445865577_107=19291B8FC60BA1A47916DE46EE85F01C
    Embedded PL/SQL Gateway: HTTP_REFERER(13)=(127)http://127.0.0.1:8080/apex/f?p=4000:1:3165980474173701::NO:RP:FB_FLOW_ID,F4000_P1_FLOW,P0_FLOWPAGE,RECENT_PAGES:109,109,109;|,
    Embedded PL/SQL Gateway: WEB_AUTHENT_PREFIX(19)=(1)
    Embedded PL/SQL Gateway: DAD_NAME(9)=(5)apex
    Embedded PL/SQL Gateway: DOC_ACCESS_PATH(16)=(5)docs
    Embedded PL/SQL Gateway: DOCUMENT_TABLE(15)=(23)wwv_flow_file_objects$
    Embedded PL/SQL Gateway: PATH_ALIAS(11)=(1)
    Embedded PL/SQL Gateway: REQUEST_CHARSET(16)=(9)AL32UTF8
    Embedded PL/SQL Gateway: REQUEST_IANA_CHARSET(21)=(6)UTF-8
    Embedded PL/SQL Gateway: SCRIPT_PREFIX(14)=(1)
    *** ACTION NAME:() 2012-06-27 16:52:32.213
    *** MODULE NAME:() 2012-06-27 16:52:32.213
    *** CLIENT ID:() 2012-06-27 16:52:32.212
    Embedded PL/SQL Gateway: (wpd.c,1960) Begin header parsing...
    Embedded PL/SQL Gateway: (wpd.c,2009) Got a line (47 bytes): X-ORACLE-IGNORE: IGNORE
    Embedded PL/SQL Gateway: (wpd.c,2027) X-ORACLE-IGNORE parsed
    Embedded PL/SQL Gateway: (wpd.c,2009) Got a line (47 bytes): X-ORACLE-IGNORE: IGNORE
    Embedded PL/SQL Gateway: (wpd.c,2027) X-ORACLE-IGNORE parsed
    Embedded PL/SQL Gateway: (wpd.c,2009) Got a line (47 bytes): X-ORACLE-IGNORE: IGNORE
    Embedded PL/SQL Gateway: (wpd.c,2027) X-ORACLE-IGNORE parsed
    Embedded PL/SQL Gateway: (wpd.c,2009) Got a line (47 bytes): X-ORACLE-IGNORE: IGNORE
    Embedded PL/SQL Gateway: (wpd.c,2027) X-ORACLE-IGNORE parsed
    Embedded PL/SQL Gateway: (wpd.c,2009) Got a line (77 bytes): Content-type: text/html; charset=utf-8
    Embedded PL/SQL Gateway: (wpd.c,2108) Parsed header - Content-Type:text/html; charset=utf-8
    Embedded PL/SQL Gateway: (wpd.c,2009) Got a line (43 bytes): X-Frame-Options: DENY
    Embedded PL/SQL Gateway: (wpd.c,2168) Parsed header - X-Frame-Options:DENY
    Embedded PL/SQL Gateway: (wpd.c,2009) Got a line (43 bytes): Content-length: 40155
    Embedded PL/SQL Gateway: (wpd.c,2082) Parsed header - Content-Length:40155
    Embedded PL/SQL Gateway: (wpd.c,2009) Got a line (1 bytes):
    Embedded PL/SQL Gateway: (wpd.c,2016) End of headers detected
    Embedded PL/SQL Gateway: (wpd.c,1882) Parsed begin
    owa.get_page(:data__,:ndata__);
    end;
    Embedded PL/SQL Gateway: (wpd.c,1898) Bound drec variablesEmbedded PL/SQL Gateway: (wpcs.c, 76) Executed 'begin dbms_session.reset_package; end;' (rc=0)
    Embedded PL/SQL Gateway: (wpd.c,1818) Going to close cursor
    Embedded PL/SQL Gateway: (wpx.c,660) Normal completion
    Embedded PL/SQL Gateway: (wpx.c,688) Shutdown has been called
    Embedded PL/SQL Gateway: (wpx.c,700) Going to logoff
    *** SESSION ID:(527.737) 2012-06-27 16:52:37.533
    Embedded PL/SQL Gateway: (wpdenv.c,679) script_name='/apex' path_info='/f'script_prefix='' dad_name='apex'
    Embedded PL/SQL Gateway: (wpdenv.c,792) User-Agent is Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
    Embedded PL/SQL Gateway: (wpdenv.c,1412) dadname = 'apex', path_info = 'f'
    Embedded PL/SQL Gateway: (wpdenv.c,1451) Service will NOT use dynamic auth
    Embedded PL/SQL Gateway: (wpx.c,394) Initialized successfully 0
    Embedded PL/SQL Gateway: (wpx.c,316) SetRemoteUser : Remote User set to ANONYMOUS for this request.
    Embedded PL/SQL Gateway: (wpx.c,480) Auth info from .APP file is being used
    Embedded PL/SQL Gateway: (wpd.c,1729) Attempting to logon with '(unknown)'
    Embedded PL/SQL Gateway: (wpu.c,1499) DBCharSet=>AMERICAN_AMERICA.AL32UTF8 OWAVersion=10.1.2.0.4 (101204) OWAMatch=>1 (rc=0)
    Embedded PL/SQL Gateway: (wpd.c,1763) Logged in as (unknown)
    Embedded PL/SQL Gateway: (wpx.c,593) Going to select...
    Embedded PL/SQL Gateway: (wpx.c,647) Have been asked to execute a request
    Embedded PL/SQL Gateway: (wppa.c,335) Building Arglist based on Parsed Content from WRB
    Embedded PL/SQL Gateway: (wppa.c,1015) Enter ParseUrlData
    Embedded PL/SQL Gateway: GET
    Embedded PL/SQL Gateway: (wppa.c,1064) Getting Values from QUERY_STRING
    Embedded PL/SQL Gateway: [headers begin]
    Embedded PL/SQL Gateway: HTTP_COOKIE(11): (343)ORA_WWV_REMEMBER_UN=SUDHIR:DEVELOPMENT; PUBLIC_ORA_WWV_USER_63113903525053=-1; ORA_WWV_USER_63113903525053=2AD259DDAF6770BE05FEF29509B68F5F; LOGIN_USERNAME_COOKIE=sudhir; WWV_CUSTOM-F_1638610445865577_111=CC022FAB479054CF32361C22B789D7EE; ORA_WWV_ATTRIBUTE_PAGE=4495%2C%23ALL; WWV_CUSTOM-F_1638610445865577_107=19291B8FC60BA1A47916DE46EE85F01C
    Embedded PL/SQL Gateway: [headers end]
    Embedded PL/SQL Gateway: p=109:1:3165980474173701:::::
    Embedded PL/SQL Gateway: Identifier legal p(notconverted)
    Embedded PL/SQL Gateway: (wppa.c,1514) indx = 1, entryCnt = 1
    Embedded PL/SQL Gateway: (wppa.c,1834) Listing distinct actual names:
    Embedded PL/SQL Gateway: (wppa.c,1836) p
    Embedded PL/SQL Gateway: (wppa.c,1838) Listing actuals of array with large entries:
    Embedded PL/SQL Gateway: (wppa.c,1843) Listing distinct actual names and values:
    Embedded PL/SQL Gateway: (wppa.c,1875) p, type = 0, value (28) = 109:1:3165980474173701:::::
    Embedded PL/SQL Gateway: (wppa.c,430) Arglist built, 1 unique entries
    Embedded PL/SQL Gateway: (wpx.c,654) Going to wpprodb_OciDoBlock...
    Embedded PL/SQL Gateway: Identifier legal f(notconverted)
    Embedded PL/SQL Gateway: (wppr.c,435) start working with f
    Embedded PL/SQL Gateway: (wppr.c,1017) lcase(procname): f
    Embedded PL/SQL Gateway: (wppr.c,1296) The CALL block: len=1067, bind_count=9What is the next step to make the 3.2 developed application work.
    Thanks
    Sudhir
    Edited by: Sudhir_Meru on Jun 27, 2012 5:09 AM
    Edited by: Sudhir_Meru on Jun 27, 2012 5:11 AM

  • Display an Alert message in PL/SQL block in APEX

    Hi,
    we are getting an oracle exception while inserting a new row. As it is having the unique constaint on a coulumn.
    Now the problem iis we need to Display an "Alert message" based on the input field validation. That java script code for alert has to be embeded nside a PL/SQL block in Oracle APEX Application.
    we tried doing this with below code:
    Begin
    INSERT INTO <<table name>>(ID,NAME) VALUES (s1,:TXT_s2);
    exception when others then
    htp.p('<script language="javascript">');
    htp.p('alert("Exception");');
    htp.p('</script>');
    end;
    If anybody knows .... please reply.
    Thanks,
    Subarna
    Edited by: user9955252 on Apr 21, 2010 1:47 AM

    Hello,
    APEX Forum is here : Oracle Application Express (APEX)
    Regards

  • Display an Alert message from PL/SQL block in APEX

    Hi,
    we are getting an oracle exception while inserting a new row. As it is having the unique constaint on a coulumn.
    Now the problem iis we need to Display an "Alert message" based on the input field validation. That java script code for alert has to be embeded nside a PL/SQL block in Oracle APEX Application.
    we tried doing this with below code:
    Begin
    INSERT INTO <<table name>>(ID,NAME) VALUES (s1,:TXT_s2);
    exception when others then
    htp.p('<script language="javascript">');
    htp.p('alert("Exception");');
    htp.p('</script>');
    end;
    If anybody knows .... please reply.
    Thanks,
    Subarna

    If your end goal is showing a pretty error message instead of the message that the tables unique constraint raises try the following. This logic will show a nice message and not try to insert non-unique data.
    (1) Create a validation of type "Function Returning Error Text".
    (2) Place similar code like the following in your validation. Notice that if the unique name does not exist the no_data_found returns null allowing the validation to pass.
    DECLARE
      v_error varchar2(100);
    BEGIN
      SELECT 'A person by this name already exists.'
      INTO v_error
      FROM your_table
      WHERE your_name = :P1_YOUR_NAME;
      RETURN v_error;
    EXCEPTION
      WHEN no_data_found THEN
        RETURN NULL;
    END;

  • Capture Web Cam image in APEX and Upload into the Database

    Overview
    By using a flash object, you should be able to interface with a usb web cam connected to the client machine. Their are a couple of open source ones that I know about, but the one I chose to go with is by Taboca Labs and is called CamCanvas. This is released under the MIT license, and it is at version 0.2, so not very mature - but in saying that it seems to do the trick. The next part is to upload a snapshot into the database - in this particular implementation, it is achieved by taking a snapshot, and putting that data into the canvas object. This is a new HTML5 element, so I am not certain what the IE support would be like. Once you have the image into the canvas, you can then use the provided function convertToDataURL() to convert the image into a Base64 encoded string, which you can then use to convert into to a BLOB. There is however one problem with the Base64 string - APEX has a limitation of 32k for and item value, so can't be submitted by normal means, and a workaround (AJAX) has to be implemented.
    Part 1. Capturing the Image from the Flash Object into the Canvas element
    Set up the Page
    Required Files
    Download the tarball of the webcam library from: https://github.com/taboca/CamCanvas-API-/tarball/master
    Upload the necessary components to your application. (The flash swf file can be got from one of the samples in the Samples folder. In the root of the tarball, there is actually a swf file, but this seems to be a different file than of what is in the samples - so I just stick with the one from the samples)
    Page Body
    Create a HTML region, and add the following:
        <div class="container">
           <object  id="iembedflash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="320" height="240">
                <param name="movie" value="#APP_IMAGES#camcanvas.swf" />
                <param name="quality" value="high" />
              <param name="allowScriptAccess" value="always" />
                <embed  allowScriptAccess="always"  id="embedflash" src="#APP_IMAGES#camcanvas.swf" quality="high" width="320" height="240"
    type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" mayscript="true"  />
        </object>
        </div>
    <p><a href="javascript:captureToCanvas()">Capture</a></p>
    <canvas style="border:1px solid yellow"  id="canvas" width="320" height="240"></canvas>That will create the webcam container, and an empty canvas element for the captured image to go into.
    Also, have a hidden unprotected page item to store the Base64 code into - I called mine P2_IMAGE_BASE64
    HTML Header and Body Attribute
    Add the Page HTML Body Attribute as:
    onload="init(320,240)"
    JavaScript
    Add the following in the Function and Global Variable Declarations for the page (mostly taken out of the samples provided)
    //Camera relations functions
    var gCtx = null;
    var gCanvas = null;
    var imageData = null;
    var ii=0;
    var jj=0;
    var c=0;
    function init(ww,hh){
         gCanvas = document.getElementById("canvas");
         var w = ww;
         var h = hh;
         gCanvas.style.width = w + "px";
         gCanvas.style.height = h + "px";
         gCanvas.width = w;
         gCanvas.height = h;
         gCtx = gCanvas.getContext("2d");
         gCtx.clearRect(0, 0, w, h);
         imageData = gCtx.getImageData( 0,0,320,240);
    function passLine(stringPixels) {
         //a = (intVal >> 24) & 0xff;
         var coll = stringPixels.split("-");
         for(var i=0;i<320;i++) {
              var intVal = parseInt(coll);
              r = (intVal >> 16) & 0xff;
              g = (intVal >> 8) & 0xff;
              b = (intVal ) & 0xff;
              imageData.data[c+0]=r;
              imageData.data[c+1]=g;
              imageData.data[c+2]=b;
              imageData.data[c+3]=255;
              c+=4;
         if(c>=320*240*4) {
              c=0;
              gCtx.putImageData(imageData, 0,0);
    function captureToCanvas() {
         flash = document.getElementById("embedflash");
         flash.ccCapture();
         var canvEle = document.getElementById('canvas');
         $s('P2_IMAGE_BASE64', canvEle.toDataURL());//Assumes hidden item name is P2_IMAGE_BASE64
         clob_Submit();//this is a part of part (AJAX submit value to a collection) two
    }In the footer region of the page (which is just a loading image to show whilst the data is being submitted to the collection [hidden by default]) :<img src="#IMAGE_PREFIX#processing3.gif" id="AjaxLoading"
    style="display:none;position:absolute;left:45%;top:45%;padding:10px;border:2px solid black;background:#FFF;" />If you give it a quick test, you should be able to see the webcam feed and capture it into the canvas element by clicking the capture link, in between the two elements - it might through a JS error since the clob_Submit() function does not exist yet.
    *Part 2. Upload the image into the Database*
    As mentioned in the overview, the main limitation is that APEX can't submit values larger than 32k, which I hope the APEX development team will be fixing this limitation in a future release, the workaround isn't really good from a maintainability perspective.
    In the sample applications, there is one that demonstrates saving values to the database that are over 32k, which uses an AJAX technique: see http://www.oracle.com/technetwork/developer-tools/apex/application-express/packaged-apps-090453.html#LARGE.
    *Required Files*
    From the sample application, there is a script you need to upload, and reference in your page. So you can either install the sample application I linked to, or grab the script from the demonstration I have provided - its called apex_save_large.js.
    *Create a New Page*
    Create a page to Post the large value to (I created mine as 1000), and create the following process, with the condition that Request = SAVE. (All this is in the sample application for saving large values).declare
         l_code clob := empty_clob;
    begin
         dbms_lob.createtemporary( l_code, false, dbms_lob.SESSION );
         for i in 1..wwv_flow.g_f01.count loop
              dbms_lob.writeappend(l_code,length(wwv_flow.g_f01(i)),wwv_flow.g_f01(i));
         end loop;
         apex_collection.create_or_truncate_collection(p_collection_name => wc_pkg_globals.g_base64_collection);
         apex_collection.add_member(p_collection_name => wc_pkg_globals.g_base64_collection,p_clob001 => l_code);
         htmldb_application.g_unrecoverable_error := TRUE;
    end;I also created a package for storing the collection name, which is referred to in the process, for the collection name:create or replace
    package
    wc_pkg_globals
    as
    g_base64_collection constant varchar2(40) := 'BASE64_IMAGE';
    end wc_pkg_globals;That is all that needs to be done for page 1000. You don't use this for anything else, *so go back to edit the camera page*.
    *Modify the Function and Global Variable Declarations* (to be able to submit large values.)
    The below again assumes the item that you want to submit has an item name of 'P2_IMAGE_BASE64', the condition of the process on the POST page is request = SAVE, and the post page is page 1000. This has been taken srtaight from the sample application for saving large values.//32K Limit workaround functions
    function clob_Submit(){
              $x_Show('AjaxLoading')
              $a_PostClob('P2_IMAGE_BASE64','SAVE','1000',clob_SubmitReturn);
    function clob_SubmitReturn(){
              if(p.readyState == 4){
                             $x_Hide('AjaxLoading');
                             $x('P2_IMAGE_BASE64').value = '';
              }else{return false;}
    function doSubmit(r){
    $x('P2_IMAGE_BASE64').value = ''
         flowSelectAll();
         document.wwv_flow.p_request.value = r;
         document.wwv_flow.submit();
    }Also, reference the script that the above code makes use of, in the page header<script type="text/javascript" src="#WORKSPACE_IMAGES#apex_save_large.js"></script>Assuming the script is located in workspace images, and not associated to a specific app. Other wise reference #APP_IMAGES#
    *Set up the table to store the images*CREATE TABLE "WC_SNAPSHOT"
    "WC_SNAPSHOT_ID" NUMBER NOT NULL ENABLE,
    "BINARY" BLOB,
    CONSTRAINT "WC_SNAPSHOT_PK" PRIMARY KEY ("WC_SNAPSHOT_ID")
    create sequence seq_wc_snapshot start with 1 increment by 1;
    CREATE OR REPLACE TRIGGER "BI_WC_SNAPSHOT" BEFORE
    INSERT ON WC_SNAPSHOT FOR EACH ROW BEGIN
    SELECT seq_wc_snapshot.nextval INTO :NEW.wc_snapshot_id FROM dual;
    END;
    Then finally, create a page process to save the image:declare
    v_image_input CLOB;
    v_image_output BLOB;
    v_buffer NUMBER := 64;
    v_start_index NUMBER := 1;
    v_raw_temp raw(64);
    begin
    --discard the bit of the string we dont need
    select substr(clob001, instr(clob001, ',')+1, length(clob001)) into v_image_input
    from apex_collections
    where collection_name = wc_pkg_globals.g_base64_collection;
    dbms_lob.createtemporary(v_image_output, true);
    for i in 1..ceil(dbms_lob.getlength(v_image_input)/v_buffer) loop
    v_raw_temp := utl_encode.base64_decode(utl_raw.cast_to_raw(dbms_lob.substr(v_image_input, v_buffer, v_start_index)));
    dbms_lob.writeappend(v_image_output, utl_raw.length(v_raw_temp),v_raw_temp);
    v_start_index := v_start_index + v_buffer;
    end loop;
    insert into WC_SNAPSHOT (binary) values (v_image_output); commit;
    end;Create a save button - add some sort of validation to make sure the hidden item has a value (i.e. image has been captured). Make the above conditional for request = button name so it only runs when you click Save (you probably want to disable this button until the data has been completely submitted to the collection - I haven't done this in the demonstration).
    Voila, you should have now be able to capture the image from a webcam. Take a look at the samples from the CamCanvas API for extra effects if you wanted to do something special.
    And of course, all the above assumed you want a resolution of 320 x 240 for the image.
    Disclaimer: At time of writing, this worked with a logitech something or rather webcam, and is completely untested on IE.
    Check out a demo: http://apex.oracle.com/pls/apex/f?p=trents_demos:webcam_i (my image is a bit blocky, but i think its just my webcam. I've seen others that are much more crisp using this) Also, just be sure to wait for the progress bar to dissappear before clicking Save.
    Feedback welcomed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hmm, maybe for some reason you aren't getting the base64 version of the saved image? Is the collection getting the full base64 string? Seems like its not getting any if its no data found.
    The javascript console is your friend.
    Also, in the example i used an extra page, from what one of the examples on apex packages apps had. But since then, I found this post by Carl: http://carlback.blogspot.com/2008/04/new-stuff-4-over-head-with-clob.html - I would use this technique for submitting the clob, over what I have done - as its less hacky. Just sayin.

  • Show Custom Error Message in Apex

    Hi,
    I have created a Master-Detail form on Dept and Emp tables. In Dept table, I have deptsal column which is updated by a trigger on EMP table.
    DEPT table has following trigger:
    create or replace trigger "TRG_DEP_SAL"
    BEFORE UPDATE on "DEPT"
    FOR EACH ROW
    BEGIN
    IF :NEW.deptsal > 100 THEN
    RAISE_APPLICATION_ERROR(-20001,'Dept Salary too high!');
    END IF;
    END;
    So, when I enter salary on Apex Form which increases the limit of deptsal e.g. 100, it gives the following error message:
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: Dept Salary too high! ORA-06512: at "ZAHIDKHANUK.TRG_DEP_SAL", line 4 ORA-04088: error during execution of trigger 'ZAHIDKHANUK.TRG_DEP_SAL' ORA-06512: at "ZAHIDKHANUK.BIUD_EMP", line 11 ORA-04088: error during execution of trigger 'ZAHIDKHANUK.BIUD_EMP', update "ZAHIDKHANUK"."EMP" set "EMPNO" = :b1, "DEPTNO" = :b2, "ENAME" = :b3, "JOB" = :b4, "MGR" = :b5, "HIREDATE" = :b6, "SAL" = :b7, "COMM" = :b8, "ID" = :b9 where "EMPNO" = :p_pk_col
    Error Unable to process update.
    OK
    How can I display my own message?
    Thanks,
    Zahid

    Hi,
    Yes, you can do that. You would need to create a page validation that loops through the records in the tabular form, checks the values entered and then returns an error message.
    Create a new validation. Set it to a Page level validation, select PL/SQL and then Function returning error text, then give it a name. The PL/SQL will be something like:
    BEGIN
    FOR i IN 1..APEX_APPLICATION.G_F01.COUNT
    LOOP
      IF TO_NUMBER(APEX_APPLICATION.G_F04(i)) > 100 THEN
       RETURN 'Item ' || TO_CHAR(i) || ' - DEPTSAL must not be greater than 100';
      END IF;
    END LOOP;
    RETURN NULL;
    END;This will loop through the records in column 4 and check the amount. If it is greater than 100, an error message is generated displaying the row with the error. This will stop the process on the first error. If there are no errors NULL is returned which indicates that the validation test has passed.
    You should replace G_F04 with the correct column for your page - do a View Source on the loaded page and check for the "name" attribute for the column. G_F04 is for "f04", G_F05 is for "f05" etc.
    Andy

Maybe you are looking for

  • What are the ODBC connect details for the HR sample database?

    I have installed Oracle Express on Ubuntu 8.10 and read the Getting Started tutorials. Everything worked fine. THE DSN I need to connect via ODBC, to start with to the HR sample database on my PC. The Getting Started tutorial says the userid and pass

  • CAn we write a query like this

    CAn we write a query like this? If not how can this be changed? select col1,col2,col3.col4 from table 1 where col1,col2 in(select col1,col2 from table2)

  • About ADF and its future

    Hi all, I am finishing my master study and theme for final work will be something like Developing web applications using Oracle ADF framework. This mean that my future will be in this technologies. Company where i work still do not have any project i

  • Video download anomaly

    When I download a video from YouTube using DownloadHelper and then click on the icon on my desktop, instead of the video I get a tutorial for my scanner. The label on the file is correct, and when I Get Info for the file it is correctly identified as

  • Exchange mail setup failed

    How to setup exchange mail account in 3rdGen iPad?