How do I raise an error on the same page?

I am using htmldb_item text and hidden to manually process some records.
I could use the validation part of APEX but I wasn't satisfied with the results.
I want to loop through the records and depending on the error stop or continue processing the records.
Sometimes is OK to stop the whole thing and some others I just need to display an error on the record, get the error, continue going through the loop and display the results with the respective error(s).
And if that's not possible just to know how to display the raise_application_error on the same page.
I really appreciate your help, and many thanks in advance.
juan

Juan,
When Application Express finds a validation error, the page rendering step is executed again in the same database process used for the validations. So the procedure wwv_flow.accept, which is doing your validations, calls wwv_flow.show (a PL/SQL call) and passes information about the validation errors to the show procedure so that error text can be merged into the page rendering process.
If you want to simulate this you might need to save validation info in collections and build the "show" part of the page so that it knows how to run in "validation-display" mode, i.e., to be able to use the collections.
Scott

Similar Messages

  • My phone has the correct AppleID in the in settings section but asks me to login with one that isn't mine.  I deleted the ID from my itunes but it still won't let me login with mine. How do I get my iPhone on the same page?

    My iphone4 has the correct Apple ID in the information settings section and asks me to login to my ID most of the time but when I try to update my apps, it asks me to login with an ID that isn't mine.  I deleted the wrong ID from my itunes but it still won't let me login with my own ID to update apps.  How do I get my iphone on the same page?

    How did you obtain these apps? All apps are DRM protected & tied forever to the account used to originally obtain them. They cannot be transferred to another Apple ID(account), nor can they be updated using any Apple ID other than the one that was used to originally obtain them.

  • How to insert into 2 tables from the same page (with one button  link)

    Hi,
    I have the following 2 tables....
    Employees
    emp_id number not null
    name varchar2(30) not null
    email varchar2(50)
    hire_date date
    dept_id number
    PK = emp_id
    FK = dept_id
    Notes
    note_id number not null
    added_on date not null
    added_by varchar2(30) not null
    note varchar2(4000)
    emp_id number not null
    PK = note_id
    FK = emp_id
    I want to do an insert into both tables via the application and also via the same page (with one button link). I have made a form to add an employee with an add button - adding an employee is no problem.
    Now, on the same page, I have added a html text area in another region, where the user can write a note. But how do I get the note to insert into the Notes table when the user clicks the add button?
    In other words, when the user clicks 'add', the employee information should be inserted into the Employees table and the note should be inserted into the Notes table.
    How do I go about doing this?
    Thanks.

    Hi,
    These are my After Submit Processes...
    After Submit
    30     Process Row of NOTES     Automatic Row Processing (DML)     Unconditional
    30     Process Row of EMPLOYEES     Automatic Row Processing (DML)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    50     Insert into Tables     PL/SQL anonymous block     Conditional
    My pl/sql code is the same as posted earlier.
    Upon inserting data into the forms and clicking the add button, I get this error...
    ORA-06550: line 1, column 102: PL/SQL: ORA-00904: "NOTES": invalid identifier ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored
         Error      Unable to process row of table EMPLOYEES.
    Is there something wrong with the pl/sql code or is it something else?

  • How do I put two galleries on the same page?

    What's the "trick" to putting two galleries on the same page?
    I've been experimenting, but it's not working out well. I have one working, but when I put the seond one on, all sorts of unexpected things happen. The first gallery goes up "over" the banner (it covers it??) and even though the sizes are spec'd the same, the second one shows up a lot larger as well.
    It's very weird.
    Any insight would be appreciated!
    Thanks!
    Michelle

    Juan,
    When Application Express finds a validation error, the page rendering step is executed again in the same database process used for the validations. So the procedure wwv_flow.accept, which is doing your validations, calls wwv_flow.show (a PL/SQL call) and passes information about the validation errors to the show procedure so that error text can be merged into the page rendering process.
    If you want to simulate this you might need to save validation info in collections and build the "show" part of the page so that it knows how to run in "validation-display" mode, i.e., to be able to use the collections.
    Scott

  • How to load multiple HTML5 canvas on the same page (the proper method)

    Hi,
    I've been struggling to load multiple canvas animations on the same page. At the beggining I thought that exporting the movies with different namespaces and reloading the libraries in a sequential flow might work, but it doesn't. It always loads just the last animation loaded. More info here: Coding challenge: what am I doing wrong?
    Here is a sample of what I'm doing:
    1st: Publish two flash movies with custom namespaces for "lib" set in the "publish settings": "libFirst" and "libSecond".
    2nd: Edit the canvas tags in the HTML page. One called "firstCanvas" and the other one called "secondCanvas"
    3rd: Edit the javascript like this:
            <script>
                // change the default namespace for the CreateJS libraries:
                var createjsFirst = createjsFirst||{};
                var createjs = createjsFirst;
            </script>
            <script src="//code.createjs.com/easeljs-0.7.1.min.js"></script>
            <script src="//code.createjs.com/tweenjs-0.5.1.min.js"></script>
            <script src="//code.createjs.com/movieclip-0.7.1.min.js"></script>
            <script src="{{assets}}/js/first.js"></script>
            <script>
                function initFirstAnimation() {
                    var canvas, stage, exportRoot;
                    canvas = document.getElementById("firstCanvas");
                    exportRoot = new libFirst.first();
                    stage = new createjsFirst.Stage(canvas);
                    stage.addChild(exportRoot);
                    stage.update();
                    createjsFirst.Ticker.setFPS(libFirst.properties.fps);
                    createjsFirst.Ticker.addEventListener("tick", stage);
            </script>
            <script>
                // change the default namespace for the CreateJS libraries:
                var createjsSecond = createjsSecond||{};
                var createjs = createjsSecond;
            </script>
            <script src="//code.createjs.com/easeljs-0.7.1.min.js"></script>
            <script src="//code.createjs.com/tweenjs-0.5.1.min.js"></script>
            <script src="//code.createjs.com/movieclip-0.7.1.min.js"></script>
            <script src="{{assets}}/js/second.js"></script>
            <script>
                function initSecondAnimation() {
                    var canvas, stage, exportRoot;
                    canvas = document.getElementById("secondCanvas");
                    exportRoot = new libSecond.second();
                    stage = new createjsSecond.Stage(canvas);
                    stage.addChild(exportRoot);
                    stage.update();
                    createjsSecond.Ticker.setFPS(libSecond.properties.fps);
                    createjsSecond.Ticker.addEventListener("tick", stage);
            </script>
    <body onload="initFirstAnimation(); initSecondAnimation();">
    Could someone please reply with the best practice on how to do this? If possible, without the need to reload all the libraries...
    If I only need to show one flash movie at a time, would it be more efficient to cut & paste the canvas tag using jQuery in the DOM and reloading a different lib on it?
    Many thanks!
    #flash #reborn

    I was able to fix it. At the end, it was easier than I thought. Just have to publish using a different "lib" namespace for each movie, load all the scripts at the end of the <body> and then add the following to the onload or ready events:
    $(document).ready(function () {
            var canvas, stage, exportRoot;
            // First movie
            canvas = document.getElementById("firstCanvas");
            exportRoot = new libFirst.first();
            stage = new createjs.Stage(canvas);
            stage.addChild(exportRoot);
            stage.update();
            createjs.Ticker.setFPS(libFirst.properties.fps);
            createjs.Ticker.addEventListener("tick", stage);
            // Second movie
            canvas = document.getElementById("secondCanvas");
            exportRoot = new libSecond.second();
            stage = new createjs.Stage(canvas);
            stage.addChild(exportRoot);
            stage.update();
            createjs.Ticker.setFPS(libSecond.properties.fps);
            createjs.Ticker.addEventListener("tick", stage);
            // Third movie
            canvas = dument.getElementById("thirdCanvas");
            exportRoot = new libThird.third();
            stage = new createjs.Stage(canvas);
            stage.addChild(exportRoot);
            stage.update();
            createjs.Ticker.setFPS(libThird.properties.fps);
            createjs.Ticker.addEventListener("tick", stage);

  • How to display mutiple form contents on the same page

    I have multiple forms for a same page,when i press submit in one form it has to go to next form,where both form contents should display on the same page.Can anyone post example code for this?
    Thnx in advance.

    I have multiple forms for a same page,when i press
    submit in one form it has to go to next form,where
    both form contents should display on the same
    page.Can anyone post example code for this?that's not how it works. when you press submit, the form data is submitted to the server. you can then forward the user to a page with another form, but what you're talking about doesn't make sense

  • How can I ensure newer versions of the same page are opened every time I visit

    I am advised by my Uni IT screen to ensure that firefox is set to check for 'newer versions of the same page with every visit to the page'. This is to ensure proper functioning inside the University's internal tutorial program.

    # Type '''about:config''' into the location bar and press enter
    # Accept the warning message that appears, you will be taken to a list of preferences
    # Locate the preference '''browser.cache.check_doc_frequency''', double-click on it and change its value to '''1'''
    http://kb.mozillazine.org/Browser.cache.check_doc_frequency

  • How to make fields grow dynamically within the same page and in column wise

    Hi,
    Like the newspaper format: Where contents of news are shown columns wise.
    We need to make the fields in a page grow column wise within that same page.
    For example, in a page:
    Column 1 Column 2
    ASDASDASDGKASHDGKAA | ASDFASGFHSJFAJKSD
    ASDFASDFASDJFASGJKDFHA | ASDFASDASDFASDFASD
    AFSDFASDFASDHGFKASDFASD | ASDFASDFASDFASDFASDFA
    ASDFSDGFJASHDGFJKASHDGKFAS |
    ASDFAGASDHFKASHDGFHASDJKFHASJKHF |
    ASDFHASGDKFASDJGHFASDFJKSDGFJKAGSDJ |
    If the Column 1 is full with the fields in the page it should start filling the column 2 which is also in the same page.
    If the Column 2 is also full then only it should move to the next page and should continue the same scenario.
    Please suggest a better way to do this in the Adobe Output Designer.
    Thanks and regards,
    Gurunath V.
    E-Mail: [email protected]
    P.S: Please also mail to my e-mail ID.

    Hi Gurunath, if you steel need a solution on this problem, I think this could help:
    1- place two fields on the form (JF01, JF02), one under each other.
    2- Make two subform with them (Sline1, Sline2)
    3- Make the field JF02 expand on same subform.
    4- Modify the preamble in this way:
    ^define group:D_line1 \field$POSITION\reserve"0.333",in\subformSline1.\positionsave,"first_line"
    ^define group:JF01!OnOverflow \groupG_Sline2.\fieldJF02.
    ^define group:G_Sline2!OnBOF \positionrestore,"first_line"\positionright,"3.65",in
    In the data file put all the text in JF01.
    -The first line say:
    When JF01 is called, save it's y position (\positionsave,"first_line")
    -The second line means:
    when the text overflow JF01 put it in JF02.
    (cause JF02 overflow on itself all the remaining data is overflowed in JF02)
    -The third line means:
    if JF02 arrives at the end of the page (OnBOF), restore the saved position ( \positionrestore,"first_line") and move to the right of "3,65" inches (\positionright,"3.65",in).
    In other words, when JF02 arrive at the and of the age, the next field JF02 is positioned at the same height of JF01 and is shifted on the right
    Take care that in this way JF02 cannot anymore go o a new page.
    Hope this help.
    Andrea

  • How can I print multiple photos on the same page from iPhoto?

    I want to print multiple pictures on one paper. How can I do that from iPhoto? If I select multiple photos they are printed on separate pages.

    Select the photos and click print - select the printer, paper size and print size (be sure that they will physically fit on the paper) and click customize - on the resulting page click on the settings icon - the gear looking thingy at the bottom - and in the selection window set print multiple photos on a page - the preview should reflect this change - and click print again to continue
    LN

  • How appears a  new JSP  file  in the same page?

    Hello all,
    I have a JSP file in a portal page.From this file I want to open another one.The new file must be opened in the same portal page with the same size and exactly in the same place. But it always openes a completely new page and the portal page disappears.I know that the mistake is from the provider file, but I don't know what should I change.
    Thanks for your help!
    K.Chrostani

    In my.jsp you could put a form with n submit buttons whith different values of parameter "name", like this:
    ---My.jsp------
    <form method="yourMethod" action="My.jsp">
    <input type="submit" value="Button1" name="button1">
    <input type="submit" value="Button1" name="button2">
    <input type="submit" value="Buttonn" name="buttonn">
    </form>
    <%if(request.getParameter("button1")!=null){%>
    <jsp:include page="f1.jsp">
    <%}%>
    <%if(request.getParameter("button2")!=null){%>
    <jsp:include page="f2.jsp">
    <%}%>
    <%if(request.getParameter("buttonn")!=null){%>
    <jsp:include page="fn.jsp">
    <%}%>
    I didn't try it but it might work.

  • How to use Spry and Jquery on the same page.

    I'm using both spry (dataset) and jquery (datepicker) on my page. When I load the jquery script my dataset doesn't work.
    I've done some research and found that I need to insert an observer that tells jquery when the spry dataset is finished loading. Found this information at: http://forums.adobe.com/message/2899897. I've tried implementing this into my script but just doesn't seem to work. Below is the script from my site, how would I insert an observer into this script?
    <script type="text/javascript">
    <!--
    var ds1 = new Spry.Data.HTMLDataSet("/test/fsasearch_results_dynamic.php", "search_results");
    var ds2 = new Spry.Data.HTMLDataSet("/test/countstable_dynamic.php", "table");
    $(function() { $( "#datepicker" ).datepicker({ dateFormat: 'yy-mm-dd', beforeShowDay: nonWorkingDates, numberOfMonths: 2, minDate: +5, maxDate: +30});
        function nonWorkingDates(date){
            var day = date.getDay(), Sunday = 0, Monday = 1, Tuesday = 2, Wednesday = 3, Thursday = 4, Friday = 5, Saturday = 6;
            var closedDates = [[7, 29, 2009], [8, 25, 2010]];
            var closedDays = [[Saturday], [Sunday]];
            for (var i = 0; i < closedDays.length; i++) {
                if (day == closedDays[i][0]) {
                    return [false];
            for (i = 0; i < closedDates.length; i++) {
                if (date.getMonth() == closedDates[i][0] - 1 &&
                date.getDate() == closedDates[i][1] &&
                date.getFullYear() == closedDates[i][2]) {
                    return [false];
            return [true];
    //-->
    </script>

    Please post any SPRY related question in the SPRY forum.

  • How to create hyperlinks to places on the same page?

    This is the question really. I want to have a list of topics at the top of a page as hyperlinks which would then direct readers to an appropriate place on the page (e.g. for FAQ page: list of questions first - as links to the places on the page where they are answered). Is it possible with iWeb?
    Many thanks in anticipation...

    Although not a smooth method Peter Berglund uses HTML snippets to simulate anchors on web pages. He describes his method in his blog here: How to use Anchors in iWeb.
    If you don't have a lot of other widgets on your page it's fairly easy to implement. With other widgets for other purposes it's more difficult but can be done.
    OT

  • How to place footnotes and endnotes on the same page?

    I have a word document with nearly about 64 footnotes and 500 endnotes. Endnotes are basically references guiding to other sources which are quoted in the book.
    My client has asked me to place all endnotes (references) of each page at the bottom of the page itself along with footnotes, but they shouldn't merge with footnotes. The reason for that he related that it makes easier for the reader to check the reference of the quote immediately at the bottom of the page, instead of flipping over all the pages and going to the end of the book everytime.
    How to do this? Can anyone enlighten me?

    Endnote placeholders are usually customizable to wherever you want them to be.
    How to do this? Can anyone enlighten me?
    I'm not sure if you're asking this question from a aesthetic design perspective or from a functionality perspective.
    Either way, I guess this link should give you some clarity: http://carijansen.com/2010/11/13/footnotes-and-endnotes-with-indesign/
    Also, there is already a thread in this forum that should answer your question - http://forums.adobe.com/thread/681891
    You may also want to review these links for cross-referencing that cuts down lot of time which came out in CS4 by request:
    http://www.adobe.com/designcenter-archive/indesign/articles/lrvid4024_id.html
    http://www.adobepress.com/articles/article.asp?p=1332860&seqNum=5
    Message was edited by: Sudarshan Thiagarajan
    Reason: A couple of more links to detail cross-referencing feature

  • How do create different link attributes on the same page

    I am using CSS links for my menu. The links are white, large and bold, but I want an email link to be a different color, font and smaller in size. How can I do this?

    Yow 400 somthing views and no one to help this guy...wow you people are mean....
    Ok just use a class for the email link....
    put a span around that email link
    <span class="class_name"><a>email link</a></span>
    then in the css place the class
    .class_name{
    color:red;
    If this doesnt work then that means the class needs to be more specific example
    span .class_name{
    color:red;

  • How to build a Report/Form sharing the same page and do multiple Updates

    Hi, I´m building and APEX application (V4.2). Customer is demanding a report/form with the ability to do multiples Updates with only one click. For example, they check multiples "check box" for Aprpove and then only one click for  "Apply Changes".
    Thanks in advance,
    Luis E Contreras

    Hi Luis,
    If I understand you correctly you want to check a number of rows for approval and update their status. The jQuery function used looks for checked checkboxes. In your case that will correspond with an update on the IND_PROBACION column. You can simply log the PK column value of each checked row:
    var pkS = $('.uReportStandard input[type=checkbox]:checked').map(
       function() {
       return $(this).parent().parent().find('td[headers="PK"] input').val();
       ).get().join(':');
    $('#P1_PKS').val(pkS);
    You need to replace PK with the actual column name of your primary key column, or rowid for that matter.
    In your submit process you can simply set each IND_PROBACION to your apporval value for each pk stored in the P!_PKS item.
    If you need further assistence, please set up an example on apex.oracle.com
    Regards,
    Vincent
    http://vincentdeelen.blogspot.com

Maybe you are looking for

  • Server 2012 R2 + WSUS = not updating

    Hi all,  We've (finally!) started to deploy Server 2012 R2 machines, and one of the things I'm having problems with is WSUS. I've patched WSUS (which is running on 2008R2) so that it's aware of Windows 8/2012R2 machines, and servers are querying/repo

  • Hard drive is corrupt after i repair it

    My hard drive reads corrupt after I repair it.  I restart it, hit C, and open it with a startup disk, then repair and restart it.  After a while, when I verify my disk, it says that is corrupt, AGAIN!! Please help I'm running a mac pro dual core 2 2.

  • Weird exception in 12c (ORA-01461: can bind a LONG value only for insert into a LONG column)

    I have a Windows app that accesses an Oracle 12c database via ODBC (the driver version is 12.01.00.01). I have a table that has a key column named REGION_ID (NVARCHAR2(9)), and about a dozen other columns, three of which are named REGION1, REGION2, a

  • How to install Vista Service Pack 1 - Equium P200

    have now tried loads of times to install sp1 update. this on Equium P200. update sticks in loop and finally reverts to old settings.tried installinfrom disc. this did same, but came up with error code 0x800f0826. the link this took me to microsoft si

  • Question for SQL Loader / IMP /EXPORT

    hi all, i just describe my example first : - TABLE A have five columns. a_column,b_column,c_column,d_column,e_column. and have 1000 records. i want to remove c_column & e_column and add f_column. on TABLE A. which method (SQL Loader or IMP/EXP) is go