Bug? -Validations in the processing of the Page

I think I found a bug in the Validations for the processing of the Page.

If I create a validation of type "Point in 1 Expression contains only characters of the Expression 2", it's as it should be and catches any invalid character.

But, if I create a new liquidation of type 'Error of function return text', this validation works and another one does not.

It is the expression of validation 1 for type validation "function return error text:

BEGIN
IF: P42_LLP_DECIMAL_DEG_LAT IS NOT NULL
THEN

IF: P42_LLP_DECIMAL_DEG_LAT <-90
THEN
RETURN "decimal latiitude must be between - 90.0000000 to 90.0000000';
ON THE OTHER
NULL;
END IF;

END IF;
end;

But, how to integrate the validation of character?

To be honest, I don't think you should! "Point in 1 Expression contains only characters of the Expression 2" does not guarantee that you have a number, which I think is the intent? (Try something like "5-0"...) There is a built-in "..." is digital""validation"but I have had problems with it. I would use a single validation "function return a Boolean:

begin

  return nvl(to_number(:P42_LLP_DECIMAL_DEG_LAT), 0) between -90 and 90;

exception

  when value_error or invalid_number
  then
    return false;

end;

[With ' decimal latiitude must be \[a number\]-90.0000000 to 90.0000000' as the error message in the validation, using the "..." a number...' bit if you want to insist on this.

Tags: Database

Similar Questions

  • Create a validation on the Page IExpense

    Hello

    I need to create a validation on the page of iExpense, where... the user selects the type of expense and adds details such as start date total etc...

    When he clicks on the next button, validation can take place when when checking should be done with the database to search for if the user has created the same before report. If so it should allow user to create the new report.

    The problem I m facing here is... the validation must be done at the next button... and this button is common on all pages as it's a track.

    How can I do this... I m totally confused.

    Can someone help me fulfill this requirement. I know I should do the extension, I want to know what objects all I extend.

    Thanks in advance,
    Kone

    Kaushik,

    When you follow the method mentioned by AJ, you can find VO named "ExpenseTypesVO" under the path "oracle.apps.ap.oie.common.server".

    According to the statement present in it, required table where we need to insert the new type of expense is "AP_EXPENSE_REPORT_PARAMS".

    Kind regards
    Anand

  • Strange bug hidden when the page is refreshed

    I have a really strange bug in an application.

    I have a report on the table which displays some O/N flags. The columns that display the flags are implemented as hyperlinks, so the user can reset the flags to "n" by clicking on the links.

    It is based on the following post:

    Processes necessary to remove line

    I did this by pointing the hyperlink to the same page and by assigning an item hidden on the page with an id of line, as shown in the above post.

    When the page loads, it has PL/SQL in front header area running SQL to define the indicators of "n" in the database. Right after that I use a process to clear the cache to reset the hidden element.

    It all works very well... when the user clicks on the hyperlink, the hidden element is filled and PL/SQL is running, then the hidden item is reset. If the user goes to another page and back, PL/SQL does not yet (because the hidden element is now empty).

    However, if the user clicks on the hyperlink, and they then refresh the page (F5), the PL/SQL is running again. Whenever they refresh the PL/SQL runs despite the cache for this element during the erasing. It seems as if the page refreshes is somehow the hidden item, remembered when the user has clicked on the hyperlink.

    I guess that by pressing F5 is to return all of the data, it sends the last time... How can I stop this from happening?

    Hello

    You can also use an approach using Ajax as described here: [http://apex.oracle.com/pls/otn/f?p=41715:17].

    Greetings,
    Roel

    http://roelhartman.blogspot.com/

  • Force validation of the page on a button, but no validation

    Hello

    I use JDeveloper 12.1.3 64 bit with Java 1.7.75

    Now, here I have a page that displays the data of many EOs, and all have a relative of monkey.

    I would like to create a button that will force the validation on this EO parent and its parent, while I can see the Validation errors on the page.

    What I can't do is to perform the validation. Is it possible to do so.

    So far I tried to execute the method validate() on parent current rank, but validation errors of the dishes not shown on the page.

    Any idea of star.

    Thank you.

    Hi Laus,

    In your page your components have validations? For example, they are needed?

    In your button, you can not immediate = "true" otherwise you components of your page validations are ignored.

    From my point of view, that's enough. You have a custom validation?

    Best regards

    Pedro Gabriel

  • Prevent validation when the page navigation

    I use Jdev 11.1.1.7.0.

    I have a jspx page that has an empty form.

    But when I want to leave the page without entering anything, I get the form validation error messages.

    How can I prevent the validation error without worrying if the form has input values?

    Set the immediate property of the component of the navigation (link... button) to 'true '.

    Timo

  • Validation of the page when you press the button

    Hello

    I have an element of the P59_MAIL_EVENT page that must be completed before pressing the button P59_CREATE_ATTACHMENTS from another region. The P59_MAIL_EVENT field is a Popup LOV.  The button sets a value on page 60 and then redirects to the page 60. It works fine when the P59_MAIL_EVENT field is filled in. I am trying to introduce an error control to prevent the user from go to page 60, if they did not choose something in P59_MAIL_EVENT.  I tried a simple Page element / Not Null of validation, but it did not work.

    I created a validation step with PL/SQL function that returns a Boolean. It is associated with P59_MAIL_EVENT and the when button is set to P59_CREATE_ATTACHMENTS button. Validation seems to have no effect. It brings me to page 60 when the LOV is empty and the key, which is what I'm trying to prevent.

    BEGIN

    IF: P59_MAIL_EVENT IS NULL THEN

    RETURN FALSE;

    ON THE OTHER

    RETURN TRUE;

    END IF;

    END;

    Thanks for looking at this.

    PhilMan2 wrote:

    I have an element of the P59_MAIL_EVENT page that must be completed before pressing the button P59_CREATE_ATTACHMENTS from another region. The P59_MAIL_EVENT field is a Popup LOV.  The button sets a value on page 60 and then redirects to the page 60. It works fine when the P59_MAIL_EVENT field is filled in. I am trying to introduce an error control to prevent the user from go to page 60, if they did not choose something in P59_MAIL_EVENT.  I tried a simple Page element / Not Null of validation, but it did not work.

    I created a validation step with PL/SQL function that returns a Boolean. It is associated with P59_MAIL_EVENT and the when button is set to P59_CREATE_ATTACHMENTS button. Validation seems to have no effect. It brings me to page 60 when the LOV is empty and the key, which is what I'm trying to prevent.

    BEGIN

    IF: P59_MAIL_EVENT IS NULL THEN

    RETURN FALSE;

    ON THE OTHER

    RETURN TRUE;

    END IF;

    END;

    The P59_CREATE_ATTACHMENTS button must submit page and branch to page 60, rather than redirection so that validation works. Change the button action to redirect to submit and create a branch to page 60 which is conditional on the button get clicked.

  • Issue to the PPR calling event where it deposits the validation of the page

    Hello

    I need to display the field based on the value of the checkbox.
    I used event PPR clicking chekbox bean. event: update

    I put SPEL in the fields in the form.

    but when ever I select the value in the box, submit the page and pop-up (check all fields mandatory or not)
    It shows failiures of form validation:

    Enter the mandatory fields...

    How to handle this.

    Please help in this.


    Thank you

    Hello

    Please make sure that the event on the box is firePartialAction and disable clietSideValidations.

    Thank you
    Mukesh Uchaniya

  • Validation on the page point is lost when creating dynamic action button


    Nice day

    I have some page elements like empno, job etc in my application to learn the goal where I validations

    to check the length of the point/numeric field and check for null

    I have 4 buttons [create, delete, cancel, apply changes] do dml basic operation

    Initially, all validations were shot when there was not any trigger attached to the buttons

    Once a dynamic action was created for a button by button create account to make these features as the insertion in arrays that are passed as a packaged procedure

    It works in all cases (for example) even if an entry is garbage does is allow inserts into the table and all the controls as EMPNO, JOBNO validations are ignored

    How can we ensure that these validations must be taken into account first and fired before and only if it is a valid entry before you create key

    otherwise it should always display error message when you enter invalid

    Tried to use the point of application by the shared components, then set value of Validation for function returns the error text a different value for the same point of the application

    [Like global variable]

    Don't know if the method described above is correct but stuck in this

    Not too much competent in JavaScript and didn't want to try if there is any possibility

    Kindly help on this

    Thank you

    Why not use page instead of dynamic action processes, they fire after validations

    Gus

  • Validation of the page of the day

    Hello

    I downloaded and successfully installed the apex month selector.

    http://Apex-plugin.com/Oracle-Apex-plugins/item-plugin/clarifit-from-to-date-picker_154.html

    Now I have a month of departure and one end of the month and I want to check if the end is before the month of departure.

    The variable is in the format YYYY mm

    I tried a function return Boolean validation

    {source}

    BEGIN
    IF to_char(:P7_ENDMONTH) < = to_char(:P7_STARTMONTH) THEN
    RETURN FALSE;
    ON THE OTHER
    RETURN TRUE;
    END IF;
    END;

    {source}

    But it won't work. Do you know why?

    Published by: Thorsten on 26.03.2013 08:52
  • Validation of the element on the page to be less than 50 characters

    Hello
    I created the validation for the page element, her thong and I want to be not more than 50 letters,
    I used PL/SQL expression and I used this one
    V ('P55_MANAGER_NAME'). Length > 50

    I got this error

    ORA-06550: line 1, column 47: PLS-00487: invalid reference to the variable '< expression > NEW' ORA-06550: line 1, column 7: PL/SQL: statement ignored

    Can someone help me what the right expression?

    Change your validation and set error display location Inline in the Notification

  • Validation in the Dreamweaver vs W3C validation page

    The Validation of the Page "Check" in Dreamweaver makes some mistakes such as validation W3C offers HTML? Is there a reason to do both?

    Roughly, it does.

    > Is there a reason to do both?

    I would always default to the W3 standard (pun intended if it exists at all the)
    intended).

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.dreamweavermx-templates.com - template Triage!
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
    ==================

    "suetertarr" wrote in message
    News:ego1rh$LHM$1@forums. Macromedia.com...
    > Validation of the Page "Check" in Dreamweaver makes some HTML mistakes
    > as the W3C validation offers? Is there a reason to do both?

  • All links on the page fail after migration to Trinidad

    Migrated Jdev 10g App to JDev 11g (11.1.1.9).

    Note: the page works in 10g.

    I got the site working with the exception of one page (and a few minor bugs). This page looks like others he has a tab-based menu (and duplicate links) and a search box. When I search for or click on one of the links the backing bean ActionListener code is not executed, and I get a message the top left of the page with just a picture of X and the word Error.Console journal has this:

    < oracle.adf.model > < DCJboDataControl > < initializeApplicationModule > < [499] DCJboDataControl.initializeApplicationModule (520) (oracle.adf.model.bc4j.DataControlFactoryImpl.SyncMode immediate = >)

    < oracle.adf.model > < DCBindingContainerState > < validateToken > < [500] DCBindingContainerState.validateToken (680) process BindingContainer State token(decompressed_state):BCST: = 0CablesByStage2TestIDReportView1Iterator = - D-, >

    < oracle.adf.model > < DCUtil > < findSpelObject > < [501] DCUtil.findSpelObject (372) DCUtil, returning:oracle.jbo.uicli.binding.JUApplication for ETAppModuleDataControl >

    < oracle.adf.model > < DCJboDataControl > < initializeApplicationModule > < [502] DCJboDataControl.initializeApplicationModule (520) (oracle.adf.model.bc4j.DataControlFactoryImpl.SyncMode immediate = >)

    < oracle.adf.model > < ApplicationPoolImpl > < reuseReferencedInstance > < ApplicationPoolImpl.reuseReferencedInstance (2509) [503] reuse an instance of session cached request module >

    < oracle.adf.model > < DCUtil > < findSpelObject > < [504] DCUtil.findSpelObject (372) DCUtil, returning:oracle.jbo.uicli.binding.JUApplication for ETAppModuleDataControl >

    < oracle.adf.model > < DCUtil > < findSpelObject > < [505] DCUtil.findSpelObject (372) DCUtil, returning:oracle.jbo.uicli.binding.JUApplication for ETAppModuleDataControl >

    < oracle.adf.model > < DCIteratorBinding > < getViewObject > < DCIteratorBinding.getViewObject (1474) resolution [506] VO: Macpac2bodshullView1 for the iterator binding: Macpac2bodshullView1Iterator >

    < oracle.adf.model > < DCIteratorBinding > < getViewObject > < DCIteratorBinding.getViewObject (1474) resolution [507] VO: Stage2TestIdByHullView1 for the iterator binding: Stage2TestIdByHullView1Iterator >

    < oracle.adf.model > < DCIteratorBinding > < getViewObject > < DCIteratorBinding.getViewObject (1474) resolution [508] VO: CablesByStage2TestIDReportView1 for the iterator binding: CablesByStage2TestIDReportView1Iterator >

    < oracle.adf.model > < DCUtil > < findSpelObject > < [509] DCUtil.findSpelObject (372) DCUtil, returning:oracle.adfinternal.view.faces.model.binding.FacesCtrlRangeBinding for CablesByStage2TestIDReportView1 >

    < oracle.adf.model > < DCJboDataControl > < syncWithForceOption > < DCJboDataControl.syncWithForceOption (1905) [510] * DCDataControl.sync () called from: DCBindingContainer.refresh >

    < oracle.adf.model > < DCBindingContainerState > < validateToken > < [511] DCBindingContainerState.validateToken (680) process BindingContainer State token(decompressed_state):BCST: = 0CablesByStage2TestIDReportView1Iterator = - D-, >

    < oracle.adf.model > < DCBindingContainer > < validateInputValues > < DCBindingContainer.validateInputValues DCBindingContainer:etwclreportPageDef (4352) [512] no postings were not made >

    < oracle.adf.model > < DCJboDataControl > < syncWithForceOption > < DCJboDataControl.syncWithForceOption (1905) [513] * DCDataControl.sync () called from: DCBindingContainer.refresh >

    < oracle.adf.model > < DCIteratorBinding > < releaseDataInternal > < [514] DCIteratorBinding.releaseDataInternal (2965) releasing iterator binding: variables >

    < oracle.adf.model > < DCIteratorBinding > < releaseDataInternal > < [515] DCIteratorBinding.releaseDataInternal (2965) releasing iterator binding: Macpac2bodshullView1Iterator >

    < oracle.adf.model > < DCIteratorBinding > < releaseDataInternal > < [516] DCIteratorBinding.releaseDataInternal (2965) releasing iterator binding: Stage2TestIdByHullView1Iterator >

    < oracle.adf.model > < DCIteratorBinding > < releaseDataInternal > < [517] DCIteratorBinding.releaseDataInternal (2965) releasing iterator binding: CablesByStage2TestIDReportView1Iterator >

    It's almost as if a validation is a failure, but I only see a validator on the page.

    I'm running out of things to try on this. When I put breaks in the code of the bean to support they are never reached. WLS newspapers don't have any error in them.

    There is a custom listener phase with methods that are available, but no error is generated in it.

    Any ideas on where to look to fix this?

    Thank you

    Dave

    I found this piece of code in the page is the problem:

    value = "#{bindings." CablesByStage2TestIDReportView1Iterator.rangeSize}">

    This inputText sets the RangeSize of the iterator. I comment this out and I don't get the error. I tried to simply remove the validator but always error.

    What is the best solution - capture the value of the text input and use a method on the bean managed for the value and update the rangesize?

    Is there a declarative way? I use Trinidad components due to migration of the 10 g page.

  • Validation on the box

    Hello

    I have a region report that has the following code in it...

    < pre >
    SELECT HTMLDB_ITEM. CheckBox(1, a.Return)""
    a.display «»
    OF schemaName.viewName_checkbox one
    WHERE a.return > 1
    ORDER BY a.return ASC
    < / pre >

    How could I go put a posting on this point, I would like a validation that requires the user to choose at least one box. I can't see clearly how to do that in the part of the validation of the page.

    Thank you
    Ben

    Ben:

    The other way that I know is the way you go about it.

    Text between 2

     tags is rendered with the 'angled stripes' background. Check this page http://wiki.oracle.com/page/Oracle+Discussion+Forums+FAQ?t=anon   for more
    
    Varad
    
    Edited by: varad acharya on Dec 10, 2008 7:06 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
    
  • ORA-06550 for a process in the Page that discusses

    Hello
    I'm trying to create a process to update some data, but I know very well the syntax of the APEX for the procedures.
    I write the code in a process of 'Treatment of the Page' section.
    The code is:

    DECLARE w_TPS NUMBER (9.7);
    DECLARE w_TVQ NUMBER (9.7);
    DECLARE w_val_tot_lignes NUMBER (15.2);
    Start
    -Lire % GST
    SELECT NUM_PARAMETRE FROM w_TPS
    OF TBL_PARAMETRES
    WHERE COD_PARAMETRE = 'GST ';
    -Lire % QST
    SELECT NUM_PARAMETRE FROM w_TVQ
    OF TBL_PARAMETRES
    WHERE COD_PARAMETRE = 'QST;
    -Calculate total invoice
    SELECT SUM(NUM_HEURES * VAL_TAUX) FROM w_val_tot_lignes
    OF TBL_FACTURES_DETAIL
    WHERE ID_FACTURE_MASTER =: p225_id_facture_master;

    UPDATE tbl_factures_master
    SET VAL_FACTURE_NET = w_val_tot_lignes,
    POU_TPS = w_TPS,
    VAL_TPS = w_val_tot_lignes * w_TPS;
    POU_TVQ = w_TVQ,
    VAL_TVQ = w_val_tot_lignes * w_TPS;
    VAL_FACTURE_TOTAL = (w_val_tot_lignes * w_TPS) + (w_val_tot_lignes * w_TVQ) + w_val_tot_lignes
    WHERE id_facture_master =: p225_id_facture_master;

    end;

    The error:
    ORA-06550: line 3, column 1: PLS-00103: encountered the symbol "DECLARE" when expecting one of the following values: start type of the subtype of the function pragma < an ID > < a double quote delimited identifier > removal of current cursor exists before the symbol 'start' is substituted for 'SAID' continue. ORA-06550: line 4, column 1: PLS-00103: encountered the symbol "DECLARE" when expecting one of the following values: function < an ID > pragma procedure subtype type < to start a double-quotes

    I ran across this myself but I forgot the real reason.

    idea 1: hidden character
    solution: retype everything by hand.
    Make sure you do a 'ctrl-a' to 'select all' before clicking on 'delete' so that it picks up this hidden character.

    idea 2: bad SQL
    If I remember correctly, there was a typing error in my table name or column

    idea 2 b: bad SQL
    I don't see the name of schema for tables in one of your SELECT or UPDATE instructions.
    Try to add them.

    Run each of the SELECT/UPDATE with SQL Developer instructions to see if you notice a bug in the SQL code.

  • Next page... the page processing

    I'm trying to change the treatment of page... my goal is "after page5 goto page8.

    I created a new branch in 'Treatment of the Page "->" after treatment '->' Branches'-> 'go to Page 8'
    after Edit-> Action-> page - 8

    Point branch-> on submit after treatment (after calculation, validation and treatment)

    Help, please.

    Thank you
    HESH.

    Hi Hesh,

    Your finish button has been configured to redirect to page 2, rather than submit the page that would run then you reset_pagination process and branch to page 8.

    (Edit button and see Action when the button clicked)

    Just give a try.

    Published by: Bob37 on April 23, 2012 10:53

Maybe you are looking for