Custom Validation on Clicking Submit

Hi
I have a SIT setup for capturing Loan details of an employee. The employee enters these details through Self Service and goes for approval on submission. I want to validate the entries made by the employee through a PL/SQL code and pop an error message if it fails validation when clicking 'Submit' . Is there any way this can be achieved ?
Thanks in advance
Febin

What you would need to do is create a controller to allow for this functionality to occur. the processformrequest procedure is the best one to achieve this functionality. Once you have written the custom validation, personalize the page you need the control on and add in the controller.

Similar Messages

  • Custom validation is disabling submit button

    Hi there,
    I am using the update/insert feature within ADDT, but wanted to use my own validation using JavaScript. Everything works fine, the validation pop-up works etc, but the submit button is disabled. I'm guess that the transaction has started with the ADDT, but the javascript has stopped it. How can I get around this? any suggestions welcome...
    Thanks in advance...

    Hi,
    Have you tried different browsers to double check. I remember a couple months ago I was helping someone with a similar problem, it worked in one browser fine but not the other so we had to rewrite the code. Initially the code looked fine but just didnt work in IE.

  • Custom validation Messages printed more than once :-(

    Hi,
    I have added a Custom Validator to a drop down list box (h:selectOneMenu) and for a text field. and i bound these form elements to the corresponding UIComponent Object in the becking bean. The backing bean is in session scope I have a link which will forward to a different page and i disabled the validation on this link by setting immediate as true.
    But when the user clicks the command link goes second page and then comes back to the first page and click the submit button, the validation error occurs. But to my surprise i am getting the same Validation error message printed twice or thrice (as when we are going to the second page and then comes back and submits).
    If I am correct the Validator corresponding to the component keeps the old error state and then add the new error state.
    I tried to remove one FacesMessage object which i got from Iterator of FacesContext.getMessages() and then tried. but hence also i was getting the same result.
    When i looked at the log, i foud my validator class being invoked twoce (or thrice depending upon the no. of times i went to the secoond page).
    Can you please help me out from this problem?
    Thanking you,
    Sudheesh

    If it is indeed 1.1, I'd recommend trying 1.1_02 [1] and trying again.
    [1] https://javaserverfaces.dev.java.net/servlets/ProjectDocumentList?folderID=5225&expandFolder=5225&folderID=5220

  • How to skip custom validator  if other validators fail

    I have a custom validator that checks data from db, the validator is at the end of the page so it gets called last. If there already are fields in the form that don't validate i don't want to run my custom validator since will not submit anyways and no need to put extra strain on the db. How can i accomplish that?

    Sorry for the confusion. the triggerEvent="click.add" should be triggerEvent.add="click"
    I am using Flex 4. The validation is fail if the user don't input anything. Does clickHandler still process the code even though the validation is fail?

  • How to open a new OAF page in new window while clicking submit button

    Dear All
    I am facing one problem.I have to pass some parameter in new page only after validation.I can't do validation in processRequest bacause I perform validation after clicking the submit button.
    So I have to write redirect code in processForm Request. I can not use simple "Button" bean since I have to set destination uri which could be set only in processRequest.But I can not pass parameter with it in process request.
    Thats why I have decided to use submit button but there is not target frame option in property inspector,So I am not able to open it in new window.
    Kindly give me some suggestion .
    Thanks in Advance

    hi,
    u can use submit button. U need to handle submit button press in processFormRequest method.
    if(pageContext.getParameter("Submit"!=null))
    // validate your parameter
    if parameter u capturing are valid then...
    pageContext.setForwardURL(func, params ...............) // check devguide for details
    if u want to access these parameter in second page . you can write this logic to processRequest of target page.
    U can refer toolbox tutorial drilldown and createpage examples for implementation details.
    Regards,
    Ram

  • How do you create custom validation rule in WS 9.2?!?!?!

    Hello,
    I am using Workshop 9.2. I created a page flow, and want to do some form validations.
    I saw the simple 9.2 example, but it is only good for very basic validation, what if you have to validate the form field against a database, must you write a custom validation rule? HOW would you do this in 9.2 so that will still stay with the workshop/netui paradigm?
    http://beehive.apache.org/docs/1.0.1/netui/validation.html
    Keith

    Hi Keith,
    Staying within the declarative validation framework the answer is probably that you do need to write a custom validation rule and refer to it using the @Jpf.ValidateCustomRule annotation.
    The NetUI Annotation Reference shows how the Struts validations are supported via the framework.
    http://beehive.apache.org/docs/1.0.1/netui/annotations/pageflow_annotations.html
    Specifically, if you look through the @Jpf.Validate* annotations, while most of these are "canned" common validations, there are a few that are more open-ended, such as @Jpf.ValidateMask and @Jpf.ValidateValidWhen.
    Those two let you write the validation logic in the annotation while @Jpf.ValidateCustomeRule only refers to a custom rule in the struts validator file.
    In any case, there is a validation rule editor which should help in authoring and managing the annotations. In the Page Flow Explorer or Page Flow Editor just right click on the action or form bean bean of interest and choose Validation Rules and the appropriate scope.
    I hope that's of some use,
    Troy

  • Please Help! Error message: Incorrect serial number, The serial number you entered is not valid. Click OK to retry serial number.???

    My old PC crashed and died, and I am unable to deactivate the licence of Photoshop Elements 7.
    I re-installed Photoshop Elements 7 via a trial download from Adobe website onto my new PC, Windows 8.1 single language.
    My serial number is not accepted.
    Error message: 'Incorrect serial number, The serial number you entered is not valid. Click OK to retry serial number'.
    Customer help care is not helpful and keep ending my chat before I get a solution.
    Can someone please help me and let me know how I can rectify this problem!!!

    Thank you Benjamin MItchley.  I reviewed the chat log and I can confirm that they are correct we do not provide installation support for Photoshop Elements 7 due to the age of the software title.  Photoshop Elements 7 also does not support activation so there is no risk that you were unable to deactivate the software on your previous computer.
    I am showing the serial number under your account was provided from an equipment manufacturer.  It is possible there may have been a customized installer for that version.  Have you contacted the computer manufacturer to obtain the installation files for the copy of Photoshop Elements 7 included with your computer?
    Since you did not migrate/transfer over any files it is unlikely there is a software issue preventing the installation.  You can try running the CC Cleaner Tool to ensure that no corrupt licensing files may be preventing the installation process.  You can find details of the use of the CC Cleaner Tool at Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6 - http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html.

  • Custom validation & IsNumber javascript

    Hi
    How can we add custom validation in the "Edit an element" on Portal9as
    By example to validate that the new image file name is unique
    How can we use the IsNumber javascript from the shared objects
    Can we add custom validation when we create new attribut and/or new element ?
    Thanks
    Jacques
    Message was edited by:
    user510720

    Hi Doug
    No offense taken.
    You can choose to agree or not. It really doesn't matter. And I'm not trying to be rude either. Only trying to state the facts as I know them to be.
    One way to easily have you see what I mean is by trying the following:
    Generate Captivate as a SWF with an HTML page and enable the Full Screen option.
    When the Full Screen option has been used, you get a second HTML page. When you run that second HTML page, you simply see a link that allows you to open the Captivate output in a larger windows devoid of toolbars and such.
    Now, close the browser and locate the Captivate output files on your hard drive. Open the HTML page that presents Captivate. You should see that the Exit button either fails with no message (Chrome or Firefox) OR presents a message that the page is trying to close (IE). The net result is that the page simply doesn't close.
    Now launch the page containing the link to open in full screen. You get just a link. You click the link and a new window appears. In that new window, you should be able to easily close the Captivate using the Exit button. This is because the Captivate output was opened in a child window. And from this, you should see that it's browser behavior that controls the ability to close. Captivate's doing all it can do by simply issuing a command to close the window. It's then up to the browser to allow that to happen. And it's all in the way the browser window was opened to begin with that controls it.
    I cannot speak to other applications and their ability or perceived ability to close windows. There are lots of variables and it's quite possible they were dealing with the windows in different ways.
    Keep in mind that if you are testing locally off your C drive, the exit button may also fail due to Flash Player Security Settings and you may need to add the testing folder to the list of trusted locations for the Flash Player.
    Cheers... Rick

  • Textfield custom validation called on all events

    Hi,
    I'm trying to use the Textfield custom validation function to
    match passwords in a "confirm password" setup. The confirm password
    field is set up with a validator like this:
    var vConfirmPassword = new
    Spry.Widget.ValidationTextField("vConfirmPassword", "none",
    {isRequired:true, validateOn:["submit"], validation:
    matchPasswords})
    Even though I've said validateOn:submit, matchPasswords is
    being called onBlur, onChange and onSubmit.
    What am I missing?
    Thanks,
    Jason

    Do you realize Spry has a custom password validation widget?
    If you prefer using your custom one, you could do an
    onSubmit="matchPasswords();" on your button rather than in the spry
    code.

  • Custom validation rules

    Using adf/bc with jdev 10.1.3.3. I've created a custom validation rule class according to the instructions in the adf guide. In that class, I've defined just one property, along with its getters/setters. I've registered my rule in the business component project and associated the rule to an entity attribute via the entity object editor. My problem is that I don't see any way for me to set the property/value of the property that's defined in the validation rule class. For example, in the SRDemo app, in the entity editor for ServiceRequest, if you highlight Validation in the left pane then select the AttributeMustExistInViewRowRule for the Status attribute and click the Edit button, you can set various property values that have been defined in the validation rule class. These values appear to then be updated to that entity's xml file. When I'm in my entity object editor and i've assigned a validation rule to an attribute, I can type in the error message text in the Edit Validation Rule dialog, but it says there are no properties to edit! I guess I haven't wired something together quite right? Note, I have not created the customizer and bean info classes for the design time aspect of this stuff. I assume that you do not absolutely need these classes to create and work with a customr validation rule? Anyone know what I'm doing wrong?

    ok, i figured out the problem. The property/value fields in the Edit Validation Rule dialog will not appear until you've actually compiled the custom validation rule class. I had tried to create the validation rule class, register it with the bc project, and assign it to an entity attribute all without first compiling the class. I stumbled upon this 'fix' in jdev's help, which leads me to another question. For the help topic entitled Creating Custom Declarative Validation Rules for Oracle ADF Business Components, the instructions have you create a class that implements JbiValidator and provide implementation for the method vetoableChange, from which you typically call validateValue. The adf guide's example has the custom validation rule class that extends AbstractValidator and implements JboValidatorInterface. In this example, you provide implementation for the validate method. What's the difference between these two approaches and when should I use one over the other? Thanks.

  • Usage of ADF's validation and custom validation together ??

    Hello all..
    My apologize if this query already in place...
    Well, I've a situation where which I need a way to combine/club my application specific validation error messages with the ADF component's messages.
    For example:
    1) ADF's component validator:
    <af:selectInputDate label="#{msg.dob}" value="#{bean.DOB}" showRequired="true" >
    <f:convertDateTime type="date" pattern="yyyy-MM-dd"/>
    <af:validateDateTimeRange minimum="#{action.minDate}" maximum="#{action.todayDate}" notInRangeMessageDetail="#{msg.dateRange}" />
    </af:selectInputDate>
    2) Also, I've my business specific custom validations perfomed on click of action button on my form. Where I use ..
    public void addFacesMessage(Severity msgSeverityType, String message)
    FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(msgSeverityType, message, message));
    for adding the error messages to context -
    As part of the life cycle, the validators in the form level is fired first and I don't have scope for the request processing/action in order to run thru my buisness method. So always my component's error messages are fired alone - This way my custom validations are not invoked. Is there a way that we can combine both set of error messages together and render them as a common error msg list using <af:messages> tag ?
    If so, please provide me the link to the article!!!
    Your help on this context will be very helpful....Thanks in advance!!!

    Hello all..
    My apologize if this query already in place...
    Well, I've a situation where which I need a way to combine/club my application specific validation error messages with the ADF component's messages.
    For example:
    1) ADF's component validator:
    <af:selectInputDate label="#{msg.dob}" value="#{bean.DOB}" showRequired="true" >
    <f:convertDateTime type="date" pattern="yyyy-MM-dd"/>
    <af:validateDateTimeRange minimum="#{action.minDate}" maximum="#{action.todayDate}" notInRangeMessageDetail="#{msg.dateRange}" />
    </af:selectInputDate>
    2) Also, I've my business specific custom validations perfomed on click of action button on my form. Where I use ..
    public void addFacesMessage(Severity msgSeverityType, String message)
    FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(msgSeverityType, message, message));
    for adding the error messages to context -
    As part of the life cycle, the validators in the form level is fired first and I don't have scope for the request processing/action in order to run thru my buisness method. So always my component's error messages are fired alone - This way my custom validations are not invoked. Is there a way that we can combine both set of error messages together and render them as a common error msg list using <af:messages> tag ?
    If so, please provide me the link to the article!!!
    Your help on this context will be very helpful....Thanks in advance!!!

  • How to do data validation before the submit by email

    I am developing an offline interactive form. There is submit button inside, which should check all data and submit the form by email if checking passes.
    My problem is that I can not cancel the submit event when the checking failed.
    I use Adobe LiveCycle Designer 7.1.3284.
    If I use Email Submit Button, I can do validation in presubmit event. But I can not cancel the event. Even there is error in validation, form is submitted anyway.
    If I use normal button, I can do validation in Click event. But I can not submit form with code.
    Is there anyone who has experience on this issue?
    Best Regards,
    Jun

    in that case, you can code just one line in the change event of all fields of the form
    xfa.form.form1.....button_validation.presence = "visible"
    xfa.form.form1.....button_submit_by_email.presence = "hidden"
    After click of validate button,
    if validation is successful,
    xfa.form.form1.....button_validation.presence = "hidden"
    xfa.form.form1.....button_submit_by_email.presence = "visible"

  • Custom validation against an array

    I need write a custom validator to validate an Input field against an Array to make sure that the entered value is NOT in that array. How do I
    pass the Array into the Validator as a variable so that I can compare the Input with the Array when a button is click? Thx.

    If your custom validator has a public variable validationArray then you can pass the dynamic array as follows:
    myCustVal.validationArray = myArr;
    And then you should be able to do as we suggested in the functions of the validator.
    If this post answers your question or helps, please mark it as such. Thanks!
    http://www.stardustsystems.com
    Adobe Flex Development and Support Services

  • How do I add URI web link with custom tooltip like "CLICK HERE TO UPDATE" instead of URI web link in tooltip.

    How do I add URI web link with custom tooltip like "CLICK HERE TO UPDATE" instead of URI web link in tooltip.

    You've probably found an answer to this by now, but I think this has been addressed in another forum -- The link below suggested using a button and adding the tooltip to the button. 
    https://forums.adobe.com/thread/304974?start=0&tstart=0
    Sounds like it would work but I haven't actually tried it. 
    Good luck~!

  • Perform custom validation on invoices created via iSupplier portal in R12

    Hello,
    It seems that since R12, invoices created on iSupplier portal are no longer loaded via Payables open interface tables (while ASBN's still are). It is nice that they are loaded immediately but now we do not have any way to perform custom validation that we normally do via AP_INTERFACE_WORKFLOW_PKG.do_custom_validation procedure.
    Is there any way to modify how iSupplier portal inserts Invoice data into AP tables? In particular we would like to choose specific document category for certain suppliers.
    Many thanks in advance,
    Kamil

    Hi Friends,
    Apologies to have put this in SCM-Costing Category. I just posted the same thing in Financials Category.
    Please ignore this, if found irrelevant under this category.
    Thanks,
    AAR

Maybe you are looking for

  • Problem in reading an Image file from a Output Stream.

    I am having problem reading a JPEG file. Actually i am sending JPEG file using UDP from the client. I am using this code to convert to a byte array to transmit the file: DataInputStream inStream = new DataInputStream(new FileInputStream("src/Bgamex.j

  • Can't find adobe flash on my galaxy 3 samsung. did adobe air take over the flash pplayer?

    Hello, I know this has nothing too do with adobe air bit I need help. I can not find adobe flash player for my samsung galaxy 3 through at&t. Ive looked for hours and can not find it. Will you please help me. My name is Juli Silverman @ snow29dove@ y

  • How to find query/program/rdf behind EBS default XML reports

    There is a report in Purchsing Module "Standard Purchase Order " its data group name is "Standard Purchase Order Data Source" and Code is "PO_STANDARD_PO". i couldn't find its concurrent program. I am looking for query behind this report. how can i f

  • After restart, Macbook Pro is on, but screen is not.

    When ever I do a restart on my MBP, it starts up, the greeting sound chimes, but the screen does not come on. If i start it from when it is completely shut down, it does not have the problem. I end up having to hold down the power button to hard boot

  • Highlight Current Row

    Apex 4.2 Theme 21 I am able to highlight current form fields using get focus and lose focus dynamic actions. How do I highlight the current row of a tabular form or updateable report. I have tried using DA with JQuery Selector tr[headers="FEE"] (colu