Commit in Apex

Hi:
Is there autocommit in process source in Apex?

Tyler and Keith, I agree with what you are saying and had never doubt it before but please tell me then how to explain this:
I open two browser windows. Run a report in window 1 and then run the same report 2 minutes later in window 2. The report in window 1 finishes execution roughly 3 minutes after it was started. The report in window 2 finishes execution about 3 minutes after report in window 1 finished (total around 4 minutes execution for window 2). This makes me think that the report in window 2 won't start execution until the report in window 1 finishes.
Nobody is updating any tables at any time the reports are running (no db links involved either).

Similar Messages

  • Auto commit in apex

    Hello Sir,
    how can i set auto commit on/off using apex in application builder, auto commit is there in sql command but not in application builder,it is possible to set auto commit using coding in apex processes or PL/SQL Block.
    please help me.
    Thanks in Advance,
    Regards,
    Jack R.

    Hi Varad,
    Thanks for your quick reply,
    I want to manually handle commit and rollback on DML.
    can you explain about a stateless transaction model and span requests in apex?
    Thanks & Regards,
    Jack R.

  • Wwv_flow_utilities.redirect_url not working in On Submit Application proces

    Hi,
    I had this working for hours. In the process to change the redirect url somehow I changed something and the following is not working anymore. Thanks for your help.
    BEGIN
    IF &APP_PAGE_ID. != 101 THEN
    IF :P0_JAVASCRIPT_CHECK != 'JAVASCRIPT_ENABLED' THEN
    update test_data set thedata = 'I was here 1!'; -- I have confirmed that the code gets here. Since this is a test no need to explicitly commit as Apex will do it
    wwv_flow_utilities.redirect_url('f?p=&APP_ID.:1:&APP_SESSION.'); -- This doesn't work!!!
    update test_data set thedata = 'I was here 2!'; -- I have confirmed that the code gets here. Since this is a test no need to explicitly commit as Apex will do it
    END IF;
    END IF;
    END;
    Thanks,
    Paresh

    Varad,
    Thank you for your response. As I mentioned I am not looking for the standard API docs. I am specifically looking undocumented wwv* packages. I agree some of them are not for public consumption but they are usuful and mentioned on the forums e.g. wwv_flow_utilities.redirect url (for which there is already a documented alternative owa_util.redirect_url).
    I usually go through the package specs too but specs are not very clear (they are not intended as docs :)) e.g. from the spec "g_unrecoverable_error boolean := false; -- indicates error has occured which requires error page".
    Your responses and help is really appreciated.
    Thanks,
    Paresh

  • How to handle comma present in any filed while loading CSV file in APEX

    I am trying to import excel sheet data into a table. I have followed steps mentioned in below link and they work just fine with one exception.
    http://avdeo.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/
    Exception is related to presense of comma (,) in any particular filed like- Address.
    How can I handle this situation? I am using APEX 3.2
    Thanks,
    Abhi

    Yes this is correct.
    but problem will occur when e.g check the foll. string.
    (1001,And I quote "This, will work")
    Here it is a comm(,) in b/w "This and will".
    due to this sqlldr interpret it as end of field. and throws an error.
    I had gone through expert one on one oracle, what it maintioned as,
    put an extra double quotes( " ) like " " to enclosed the double quoted string.
    This works fine. For small data it can be done manually.
    But for large data what condition can be put in the ctl file to achieve this?
    or is there any other way to achieve this?
    Thank you.

  • How to handle comma while importing CSV file in APEX 3.2

    I am trying to import excel sheet data into a table. I have followed steps mentioned in below link and they work just fine with one exception.
    http://avdeo.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/
    Exception is related to presense of comma (,) in any particular filed like- Address.
    How can I handle this situation? I am using APEX 3.2
    Thanks,
    Abhi

    Wrong forum.
    You should be here.
    Oracle Application Express (APEX)

  • How the Auto Commit works in APEX

    Hi,
    I have a PL\SQL Process which consist of suppose insert / update / delete statements.
    insert into emp ()
    values ()
    update emp
    set
    delete from emp
    where empno = Just want to know..when apex do the Auto Commit..I mean after each DML operation.
    Thanks,
    Deepak

    Thanks..Varad for the response.
    one more clarification.
    suppose I have a PL\Process and I am having the following DML in sequence, DML is for the same table EMP
    insert into emp (empno) values (1234)
    delete from emp where empno != 1234First I am inserting into EMP and based on that insert, I am doing some delete from the same table EMP.
    so when I come to delete part, the data '1234' into EMP table must be commited, so want to know if I have to issue a COMMIT after the insert statement.
    Thanks,
    Deepak

  • Parameter Passing w/Comma Issue in APEX 4.1

    So I developed and manage a hosted APEX app that was working fine, except there is now a feature since the hosting company upgraded to 4.1.
    I have a button on a page (lets call this page 1), that links to another page (lets call this page 2) and passes a parameter. Unfortunately, the value for this parameter has a "comma" in it, so I used the following technique when passing:
    set these items: P2_NAME
    With these values: *\*&P1_NAME.*\*
    Note the use of the back slash *\* before and after.
    This worked fine in 4.0, but doesn't seem to be working in 4.1
    When I look at the "resolved" URL at run time it appears to be substituting *%255C* instead of the slashes.
    Has anyone else noticed this issue? Do you have a solution?
    Thanks in advance!
    Paul

    Hi Paul,
    can you provide an example on apex.oracle.com where you can reproduce your problem? I tried but was only able to reproduce that the URL is escaped to
    /apex/f?p=887:2:745085782624400::NO::P2_DEPTNO:%5C10%5Cwhich isn't a problem because that will correctly be converted back to
    /apex/f?p=887:2:745085782624400::NO::P2_DEPTNO:\10\by the web server.
    In your case it appears that a double escaping takes place where the % of the above URL is escaped another time to %25. That's why the web server doesn't convert back the URL to the \ sign.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Apex application registered with sso as partner application

    We have 1 apex app registered with sso and working properly.
    I just registered a new apex application with sso. when i authenticate through sso, it directs me to the originally registered application.
    I went in through the portal administrator app and verified my settings all pointed to the new application. I verified that my dad is set up correctly.
    Any ideas?
    APEX 2.0

    i did register and obtain the keys through portal admin.
    to ensure i used the proper keys (i guess there is a possibility i used the keys from db1 registration) i re-ran regapp with the right keys but recieved the following output:
    SQL> @regapp
    Partner Application Configuration
    Enter value for listener_token: HTML_DB:050iasphttp.xxx.na.xxx.com:7777
    Enter value for site_id: EFBE3E14
    Enter value for site_token: MSMXURH1EFBE3E14
    Enter value for login_url: https://050iaspdb.xxx.na.xxx.com:4443/pls/orasso/orasso.wwsso_app_admin.ls_login
    Enter value for encryption_key: 2EBDD126A3A40606
    Enter value for ip_check: N
    ERROR: Error in registration. Please try again
    User-Defined Exception
    Registration successful.
    Listener token: HTML_DB:050iasphttp.xxx.na.xxx.com:7777
    Site id : EFBE3E14
    Site token : MSMXURH1EFBE3E14
    Encryption key: 2EBDD126A3A40606
    Login URL :
    https://050iaspdb.xxx.na.xxx.com:4443/pls/orasso/orasso.wwsso_app_admi
    n.ls_login
    Logout URL :
    https://050iaspdb.xxx.na.xxx.com:4443/pls/orasso/orasso.wwsso_app_admi
    n.ls_logout
    IP check : N
    PL/SQL procedure successfully completed.
    Commit complete.
    No errors.
    SQL>
    ...in spite of the error, i aske the app developer to try and use sso for db2. he now recieves:
    User-Defined Exception
    Error Error in wwv_flow_custom_auth_sso.process_success:l_sso_user_name:l_sess_id:: Please contact administrator.
    OK
    any ideas?

  • 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

  • Page not getting Redirected in APEX page

    Hi,
    I have an Apex page with Tabular form region.
    I kept a text area in another region of same page. I need to save the text entered in this text area to another table apart from the table that is attached to the tabular form.
    I added a button to this region and trying to save the text entered in the text area to the table and redirect to next page by using below code in Process. But it is not happening.
    BEGIN
    IF NVL(:TAF,'-1') != '-1' THEN
    UPDATE catering_orders
    SET add_food_req = :TAF
    WHERE order_ref = :H;
    COMMIT;
    END IF;
    BEGIN
    owa_util.status_line(301,NULL, FALSE);
    owa_util.redirect_url('f?p=121:27:&APP_SESSION.::::H:'||l_max_no,TRUE);
    END;
    END;
    It is neither updating nor going to the next page because I have a tabular form region in my page. It is staying in the same page without any error.
    Please help me in this issue.
    Thank you
    Regards
    Dev

    Dev:
    Add the highlighted line as shown
    BEGIN
    owa_util.status_line(301,NULL, FALSE);
    owa_util.redirect_url('f?p=121:27:&APP_SESSION.::::H:'||l_max_no,TRUE);
    *apex_application.g_unrecoverable_error := true;*
    END; Varad

  • APEX not working with SSO

    I am trying to setup APEX 3.1 (fresh installation not upgrade) to work with SSO on Linux.
    APEX and AP infrastructure are installed on separate servers and APEX is working with mid tier HTTP server.
    I have followed the steps below and I don’t get any error messages at all but when I finally point the browser to an application I get an error:
    ERR-7620 Could not determine workspace for application
    Expecting p_company or wwv_flow_company cookie to contain security group id
    I would appreciate any help
    Regards,
    Anna
    alter user flows_030100 identified by xxxx;
    alter user flows_030100 account unlock;
    Loaded SSO SDK into the flows_030100 schema @APEX_DB
    Registered ApEx as a partner application, supplied values:
    HOME URL : http://serverABC.ypgstaging.local:7777/pls/apex
    Success URL : http://serverABC.ypgstaging.local:7777/pls/apex/wwv_flow_custom_auth_sso.process_success
    Log Out URL : http://serverABC.ypgstaging.local:7777/pls/apex/apex
    Application Name APEX
    As flows_040100@APEX_DB:
    SQL> @regapp.sql
    Partner Application Configuration
    Enter value for listener_token: apex:serverABC.ypg.local:7777
    Enter value for site_id: 6F20F2EF
    Enter value for site_token: W201QS2F6F20F2EF
    Enter value for login_url: http://serverABC.ypg.local:7777/pls/orasso/orasso.wwsso_app_admin.ls_login
    Enter value for encryption_key: 3F7CD0E25D17A170
    Enter value for ip_check: N
    Registration successful.
    Listener token: apex:serverABC.ypg.local:7777
    Site id : 6F20F2EF
    Site token : W201QS2F6F20F2EF
    Encryption key: 3F7CD0E25D17A170
    Login URL :
    http://serverABC.ypg.local:7777/pls/orasso/orasso.wwsso_app_admin.ls_login
    Logout URL :
    http://serverABC.ypg.local:7777/pls/orasso/orasso.wwsso_app_admin.ls_logout
    IP check : N
    PL/SQL procedure successfully completed.
    Commit complete.
    No errors.
    SQL> select * from wwsec_enabler_config_info$;
    LSNR_TOKEN
    SITE_TOKEN
    SITE_ID
    LS_LOGIN_URL
    URLCOOKIE_VERSION
    ENCRYPTION_KEY
    ENCRYPTION_MASK_PRE
    ENCRYPTION_MASK_POST
    U
    apex:serverABC.ypg.local:7777
    W201QS2F6F20F2EF
    6F20F2EF
    http://serverABC.ypg.local:7777/pls/orasso/orasso.wwsso_app_admin.ls_login
    v1.2
    3F7CD0E25D17A170
    C70C4A8B5227430F37EA0903E8A7C7BC
    35B1659E7B2E5FB7BF1C0381B44E1FF9
    N
    Then on APEX_DB server I ran the following:
    [oracle@ATC1SDBYM01 core]$ sqlplus
    Enter user-name: / as sysdba
    SQL> alter session set current_schema=flows_030100;
    Session altered.
    SQL> @custom_auth_sso_902.sql
    ...wwv_flow_custom_auth_sso
    Package created.
    No errors.
    SQL> @custom_auth_sso_902.plb
    ...wwv_flow_custom_auth_sso
    Package body created.
    No errors.
    SQL> grant execute on wwv_flow_custom_auth_sso to public;
    Grant succeeded.
    alter user flows_030100 identified by values ‘xxx’;
    alter user flows_030100 account lock;
    Here is a test application URL:
    http:/serverABC.ypgstaging.local:7778/pls/apex/f?p=F101::&c=yellowmart
    The application authentication schema is set to SSO.

    Scott
    I have restarted AS and rerun the regapp script successfully. I have noticed I entered the wrong domain name while registering it first time and I have corrected the error this time.
    SQL> select * from wwsec_enabler_config_info$;
    LSNR_TOKEN
    SITE_TOKEN
    SITE_ID
    LS_LOGIN_URL
    URLCOOKIE_VERSION
    ENCRYPTION_KEY
    ENCRYPTION_MASK_PRE
    ENCRYPTION_MASK_POST
    U
    HTML_DB:serverABC.ypgstaging.local:7777
    W201QS2F6F20F2EF
    6F20F2EF
    http://serverABC.ypgstaging.local:7777/pls/orasso/orasso.wwsso_app_admin.ls_lo
    gin
    v1.2
    3F7CD0E25D17A170
    C70C4A8B5227430F37EA0903E8A7C7BC
    35B1659E7B2E5FB7BF1C0381B44E1FF9
    N
    However I still get the same error message in my browser when I point it to the application.
    Regards,
    Anna

  • APEX SSO - execution of regapp.sql failing

    Hi All,
    I have Database 11.1.0.6.0. APEX version is 3.0.1
    I am trying to Configure SSO(single sign-on) with Apex.
    I am logged in as FLOWS_030100 into the database
    I am facing following issues when trying to execute the regapp.sql, which is extracted from ssosdk902.zip. I got this zip from 10.1.2.0.1 Oracle App Server and trying to use it for configuration for version 10.1.3.1
    1. It fails with following error.
    Partner Application Configuration
    ERROR: Error in registration. Please try again
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    PL/SQL procedure successfully completed.
    Commit complete.
    I figured out it was complaining for the l_ip_check varchar2(1); size, I increased that but then I got the following message:
    Partner Application Configuration
    ERROR: Error in registration. Please try again
    User-Defined Exception
    PL/SQL procedure successfully completed.
    Commit complete.
    No errors.
    I am wondering why is it not prompting for the values. Is there some change I should be doing to the regapp.sql to get it working for 11g DataBase.
    Please reply.
    Thanks
    Pooja
    Edited by: user539270 on Mar 19, 2009 11:57 PM

    Hi Scott
    Thanks for the reply!
    I got the script working without any change when executed from SQL Developer.
    How ever I am facing issue after getting the APEX configured with Oracle SSO. I have opened another thread with the details.
    (Facing Issues: APEX Configuration with SSO
    Please have a look.
    Regards
    Pooja

  • Roll Your Own - APEX 4.0 and JQuery-UI Application

    For those with a apex.oracle.com account and want to see jQeury tabs running via 4.0 in your own Workspace, use following this script to create your own version of Shijesh's (Apex_Noob) application.
    Credit also goes out to Alistair Laing for his hard work in investigating why 4.0 is requiring the use of the googleapis jquery.js... libraries.
    Application Builder - Create
    Application Type - Database
    Create Application - From Scratch
    Name - jQuery Application
    Add Page - keep default and Click Add Page
    Click CreateMy application defaulted to Theme 2, you will need to switch the theme to one of the following: If you don't the tabs will not render properly.
    8 Orange
    10 Sand
    13 Classic Blue
    14 Simple Green
    15 Light Blue
    16 Dark Blue
    18 Simple Gray
    19 Red Gray
    Message - Application created successfully.
    Click Shared ComponentsUnder User Interface Click - ThemesIf you don't see one of the above Themes, you will need to Create and switch your Theme.
    Click - CreateFrom the Repository selected Click - Next and select one of the above Themes
    Click - Switch ThemeSelect one of the above Themes and Click - Next
    Click -NextClick - Switch ThemeReturn to your newly created Application by Clicking on Application xxxxxxx Breadcrumb
    Click - Create PageSelect - Blank PageClick - NextAssign the page a name
    Click - NextAccept defaults and Click - NextClick - FinishClick - Edit PageI still work in Component View, to toggle to this View, click on the control adjacent to Page number and Go button. Hover over the ones on the far right and you will see both Component View and Tree View
    From Component View
    Click on the Page Edit Control
    In the Text Area labeled Javascript/Execute when Page Loads - paste in the following code:
    $x("tabs").appendChild( $x("tabs-1"));
    $x("tabs").appendChild( $x("tabs-2"));
    jQuery("#tabs").tabs();In the Text Area labeled HTML Header and Body Attribute/HTML Header - paste in the following code:
    <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/themes/redmond/jquery-ui.css" type="text/css" />
    <script src= "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.js"> </script>Click - Apply ChangesRequired use of the Google jqueryui libraries is being questioned by recent threads created by Alistair Laing since it appears that 4.0 does not currently support jQeury tabs
    {thread:id=1083507}
    {thread:id=1083540}
    Create a Region
    Type HTML Text - accept defaults
    Provide a Title like "Tabs" and accept defaults
    Template - Reports Region
    Sequence 10
    Click - NextIn the Enter HTML Text Region Source: Text Area - paste in the following code:
    <div id="tabs">
    <ul>
    <li><a href="#tabs-1">Employees</a></li>
    <li><a href="#tabs-2">Departments</a></li>
    </ul>
    </div>Click - Create RegionCreate a second Region
    Type Report/Sql Report
    Provide a Title like "Employees" and accept defaults
    Template Reports Region
    Sequence 20
    Click - NextIn the Enter SQL Query or PL/SQL function returning a SQL Query: Text Area - paste in the following code:
    SELECT empno,
           ename,
           job,
           mgr,
           hiredate,
           sal,
           comm,
           deptno
    FROM   empClick - Create RegionEdit the newly created Report Region
    Under Attributes/Static ID - paste in the following code:
    tabs-1Click - Apply ChangesCreate a third Region
    Type Report/Sql Report
    Provide a Title like "Departments" and accept defaults
    Template Reports Region
    Sequence 30
    Click - NextIn the Enter SQL Query or PL/SQL function returning a SQL Query: Text Area - paste in the following code:
    SELECT deptno,
           dname,
           loc
    FROM   deptClick - Create RegionEdit the newly created Report Region
    Under Attributes/Static ID - paste in the following code:
    tabs-2Click - Apply ChangesRun you page and you should see you tabs.
    Jeff

    Great post Jeff,
    With regard to Jquery UI and tabs I've contacted the Apex dev team and received a reply from them.
    All the jQueryUI files are included in the APEX 4.0 distribution, but not all jQueryUI components
    are loaded by default to avoid a huge initial download. It's not necessary to load your own version of jQueryUI, just load the missing component.
    For the "Tabs" you have to add
    <link href="IMAGE_PREFIX#libraries/jquery-ui/1.8/themes/base/jquery.ui.tabs.css" rel="stylesheet" type="text/css" />
    <script src="#IMAGE_PREFIX#libraries/jquery-ui/1.8/ui/minified/jquery.ui.tabs.min.js" type="text/javascript"></script>
    to your page template or the header attribute of your page where you want to use it.They did not mention which other Jquery UI widgets were not included so people need to check to see if they get any JS errors Like "$('#tabs').tabs() is not a function" this would suggest that tabs is not being loaded. To included it in you page header directly after #HEAD# you need to place the css and js as stated above.
    If you need jquery help just post you queries here or the is some other jquery links that maybe of some use
    jQuery
    http://jquery.com/ - Official jQuery Website
    http://api.jquery.com/ - jQuery API Library
    http://plugins.jquery.com/ - jQuery Plugins (Not APEX related)|
    http://yayquery.com/ - yayQuery - jQuery Podcast
    http://jqueryui.com/ - Official jQuery UI Website
    http://jqueryui.com/demos/ - jQuery UI Demos
    Edited by: Alistair Laing on Jun 9, 2010 4:04 PM
    Add more links
    Edited by: Alistair Laing on Jun 9, 2010 4:09 PM

  • Problem with javascript onload in apex page

    I want to run some javascript in APEX when the user loads the page, but I am having trouble getting the onload function to work. I’m new to javascript so it’s probably a simple mistake on my part .
    All I want to do is to change the background colour of a field (P5_GRPT) depending on the value of another field (P5_MIN_DAYS). I just want to get something basic that works then I can build on it and make it more elegant/generic, but at the moment the script below appears to have no effect whatsoever. Any help would be much appreciated. I have set the cursor focus attribute to “do not focus cursor” (Apex version 3.01.00.12)
    Page header html:
    <script type="text/javascript">
    Function trafficlight()
    c = document.getElementById("P5_MIN_DAYS").value;
    switch(c)
    case 1:
    $x("P5_GRPT").style.backgroundColor = "green";break;
    case 2:
    $x("P5_GRPT").style.backgroundColor = "yellow";break;
    default:
    $x("P5_GRPT").style.backgroundColor = "red";break;
    </script>Page html body:
    onload="trafficlight();"

    hi
    I'm new in apex 3.2 javasrcript and speak spanish
    i have function in html header
    <script language="JavaScript" type="text/javascript">
    function colorSal(pCol){
    var elms=document.getElementsByname(pCol);
    for (i=0; i< elms.length; i++){
    if (elms.value < 1500){
    elms[i].style.backgroundColor ='yellow';
    </script>
    and on body header:
    onload="colorSal ('f07');"
    This should change color column seven of tabular form but it does not happen .
    the query in tabular form is
    select
    "EMPNO",
    "EMPNO" EMPNO_DISPLAY,
    "ENAME",
    "JOB",
    "MGR",
    "HIREDATE",
    "SAL",
    "COMM",
    "DEPTNO",
    "MODIFIED_BY",
    "TICKED"
    from "#OWNER#"."EMP"
    thanks for your help

Maybe you are looking for

  • Multiple Libraries for Multiple Users on iTunes

    Is there a way - using iTunes 7 - to have multiple libraries? Our family shares a computer and I would love to have separate libraries. Thanks. Tas804

  • Can I use an external dvd drive to install windows?

    Basically I have a licensed version of Windows Vista Business laying around, but it is on 5 CDs, and I can't seem to find a legal source to redownload it so I can burn it on a dvd to use my legal key. And I know in the bootcamp instructions it says i

  • Can't find the right way to parse a string

    Hi to all, I am new to Lab-View, coming from a "C" background. I have spent all afternoon trying to get something to work, with no success. I am looking for a way to read files that are named sequentially, with a common prefix. For example: "abc2004_

  • Track Pad help!!

    I recently used a Microsoft wireless mouse for an hour and now my track pad is not working properly. I have to push it very hard and multiple times in order to click on something. Help!

  • What speed should I get?

    Not being "up to speed" with this ADSL "black art", can any knowledgeable person advise me as to what speed I should be getting based on these stats, please? Is it about right or should be more? ADSL line status <script type="text/javascript"></scrip