How to do that - Validation with message

Hi
I have a litle app that validates one Portuguese Number (NIF).
The purpose is create a textbox where the user put the number and then when press tue button, it validate then.
I've tried do that with the validation, with a plsql function returnig boolean... it works fine when the number is wrong...
the error message was fine... how can i implement a sucess message...
Sugestions are welcome.
Another question.... How can i costumize the standard error message?
Sorry for the bad english
Thanks

José,
Yes that would work. Because you're catching all of the incorrect entries with a validation, the PL/SQL process will never run unless you have the validation is TRUE. This means the process code can always complete successfully because the validation already did the work. So the process need be only one line:
NULL;
Then create the success message as you like and test it. Keep in mind that a process success message may look different from a validation failure message. You might have to modify the look a bit to get them consistent if that's necessary.
Dan

Similar Messages

  • How can I use Reply with Message?

    I cannot figure out how to use the Reply with Message feature.  Can anyone lead me in the right direction?

    Hello,
    When you receive a phone call from another phone that is able to send and receive text messages, you can see the phone icon on the bottom right side.  Tap it and slide up.  Then tap reply with message and choose the message you want to reply with. 
    Cheers,
    Allen

  • IN bapi- how to provide spool report with messages

    in BAPI, how to provide spool report with messages?

    >
    sujan T wrote:
    > Thanks for your reply.
    >
    >    What is the logic to call the standard report from zprogram?Inside the zpogram how to call standard report?
    >
    > Regards,
    > Sujan
    no special logic is required
    If u want to use
    RPUAUDOO IN THE ZREPORT.
    Put the submit button where ever required
    ex: In zreport after certain process reacedu want to call then use
    submit rpuaudoo and return.
    Regards
    Sas

  • How to do file validation with ODI 10.1.3.5

    Hi Team,
    Please help me, how to handle file validation with ODI?
    My source is files.
    Requirement:
    With ODI i have to do the file validation and file data loading successfully. Once it is successfully done then i have to move the particular file and move to different directory.
    Any internal tool is there in ODI package to watch the file.
    Regards,
    Suresh

    Hi Suresh,
    You can do your file loading and validation in an ODI interface.
    Once you are done with the interface, add it to a package, you can set up subsequent steps in the package to move the file to another location using the built in ODI file utilities in the package.
    Terrence.

  • How can i get started with messaging in java

    how can i get started with messaging in java

    If you're talking about writing mail clients in java, you might want to start with a better forum. We're focused on Messaging Servers, here. Unlikely you'll get any Java programming from us.
    If you're talking about Messaging Server, start by downloading the software from sun.com/downloads.

  • How to customize the validation error message

    Hi,
    In my infopath 2010 form, when a required field is skipped, we get a very cryptic error message which is not user friendly. Can anyone please let me know how can i customize this cryptic message with a more user friendly one.
    many thanks.

    Hello,
    There is no straight solution of this problem. You may use data validation rule instead of field validation for validation so you can at least avoid that pop up error message.
    Another way is, make field mandatory via code. you can just remove all field validation then check all fields data via code and cancel the submit event.
    Another way is, add custom button form for submit, then hide this button until form validation is succeed.
    http://blog.parkercomp.com/2009/05/how-to-customize-infopath-error-dialogs.html
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How to use Spry validation with link styled submit buttons..??

    I'm working with a theme package that comes with a bunch of button styles that work with basic links.  For example:
    <a href='page.html' class='small-button smallblue'><span>Button Label</span></a>
    I've got a basic form setup with Spry validation, but the submit button needs some styling to make it look nice with the site.  Since there are already styles ready for me to turn links into buttons I figured I'd use the same thing for my submit buttons.
    To accomplish that, I'm using the following javascript...
    <script type="text/javascript">
    function submitForm() {
        document.getElementById("form_name").submit();   
    </script>
    And then I'm updating my submit button to something like this...
    <a href='javascript: submitForm()' class='small-button smallblue'><span>Button Label</span></a>
    When I do this, the form submits as expected, but the Spry validation doesn't work.  Is there a way I can make the Spry stuff work with these types of buttons?  I know I could create separate styles for the submit buttons themselves, or I could use an image type button, but I'd really like to figure out how to get these existing styles to work for me since the theme already has so many of them done for me.
    Any information on this would be greatly appreciated.  Thanks!

    Save yourself a lot of trouble and style the normal submit button as per
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css">
    <style>
    .Standout {
        font-family: Geneva, Arial, Helvetica, sans-serif;
        text-transform: uppercase;
        color: #FFFFFF;
        font-size: 16px;
        background-color: #CC0000;
        font-weight: bold;
        border-style: none;
        padding-top: 6px;
        padding-bottom: 5px;
        padding-right: 64px;
        padding-left: 64px;
        letter-spacing: 1px;
    .Standout:hover {
        background-color: #000000;
    </style>
    </head>
    <body>
    <form action="" method="get" name="myform">
      <span id="sprytextfield1">
      <label for="text1"></label>
      <input type="text" name="text1" id="text1">
      <span class="textfieldRequiredMsg">A value is required.</span></span>
      <input name="input" type="submit" class="Standout">
    </form>
    <script>
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "none", {validateOn:["blur"]});
    </script>
    </body>
    </html>
    Gramps

  • A few days i can't open my e-mails or edit , delete or sendfrom hotmail that problem happens only with FF and also i have already update it to version 11. Any idea how to fix that issue with hotmail problem?

    am having that problem with the version 10 and still continues with the new one version 11

    Hotmail works fine both on FF 10 and 11. Probably an add-on or plugin recently installed is responsible for your problem. Please check if the issue occurs using Firefox on a new, empty profile: (Don't install any addons into it) http://support.mozilla.org/en-US/kb/Managing-profiles#w_starting-the-profile-manager

  • How to do schema validation with XSD_90200B Beta?

    Hi, I just downloaded xdk_java_9_0_2_0_0B.zip. And found that the size of xmlparserv2.jar and xschema.jar are significantly reduced. And if I replace them with the June version I had before, it does not do schema validation anymore.
    What other jar files do I need to do Schema Validation?
    Thank you very much!
    Yufei
    null

    The schema validation is in the xschema.jar.

  • COPA validation with message control

    Dear All,
    I would like to setup the system to prompt the error message if users not input PLANT in Profitability Segment when doing FB50.
    The main problem is where to control the message. I tried "Define Validation" - OKC7, but I couldn't found a Application Area that contains
    the Profit. Segment. Otherwise, this Validation function is good for message prompt.
    I don't want to set "Maintain Characteristic Groups" for field Plant to be REQUIRED. As only one Company Code wants to have this control.
    Where I can do it ?

    You can try to use FI validations via user exit. there you can judge whether the field plant is entered or not for  specific company code and issue customer message correspondingly. Remember to use table CE4XXXX_ACCT for fields selection.

  • How to make xml validation with automatic error fixed

    Hi', i have some string which i want to validate it:
    String word = "<style>body {background-color:transparent}";     
    byte[] bytes = word.getBytes();
    InputStream inputStream = new ByteArrayInputStream(bytes);
    DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
    docBuilderFactory.setValidating(true);                    
    DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
    DOcument doc = docBuilder.parse(inputStream);This code will produce some exception like this:
    Warning: validation was turned on but an org.xml.sax.ErrorHandler was not set, which is probably not what is desired.  Parser will use a default ErrorHandler to print the first 10  errors.  Please call the setErrorHandler method to fix this.
    Error: URI = "null", Line = "1", : Document root element "style", must match DOCTYPE root "null".
    Error: URI = "null", Line = "1", : Document is invalid: no grammar found.
    org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.Is there anyway to make this validation not only show the errors but automatic fix it?
    Thanks a lot...

    I mean there is no general method which is capable of correcting all possible errors found by schema validation.
    For example if the validation says it expected to find an <organization> element or a <company> element but it found a <banana> element, there is no way to determine what repair is necessary.
    Anyway the requirement is fighting against the way things work in the real world. The purpose of validation is just to find out whether a document matches a schema. If it doesn't, then too bad. Send it back to be fixed or replaced. If you are having a problem because you repeatedly get documents which don't quite match your schema, then you need to train the users to produce valid documents or to give them tools which help them do that.

  • How to use standard validator with custom component?

    Hi folks!
    I've implemented a custom component extending UIInput. My component worked well but now I want to use a standard validator.
    How can I use it??
    regards,
    Steven

    Validation is done by UIInput.validate() which is invoked by processValidators().
    So, if you don't redefine these inherited methods they will invoke the
    corresponding validators.

  • How can I get help with message "server does not support RFC 5746, see CVE-2009-3555" from error console. Have recently update Firefox and my Virgin Mobile internet connection doesn't work.

    CVE-2009-3555

    The message about CVE-2009-3555 is meant for webmasters to make them aware that they need to fix their servers and visitors like you can ignore that warning.
    Firefox 3.6 versions can detect such a misconfiguration and displays a warning in the "Tools > Error Console".
    * http://wiki.mozilla.org/Security:Renegotiation
    * http://kb.mozillazine.org/Error_loading_websites

  • How to catch multiple validations with DataAnnotations MVVM?

    I have a property I'm validating that has two dataAnnotations. I want to catch all the validation exceptions at once.
    private string streetAddress1;
    [Required(ErrorMessage = "test error")]
    [StringLength(50, MinimumLength = 5)]
    public string StreetAddress1
    get { return streetAddress1; }
    set
    ValidationInterceptor(value);
    streetAddress1 = value;
    RaisePropertyChanged("StreetAddress1");
    I can currently catch one at a time like so
    public void ValidationInterceptor(object value, [CallerMemberName] string propertyName = "")
    try
    Validator.ValidateProperty(value, new ValidationContext(this, null, null) { MemberName = propertyName });
    catch (ValidationException e)
    ValidationResult result = e.ValidationResult;
    Thanks

    Check out my sample
    https://gallery.technet.microsoft.com/WPF-Entity-Framework-MVVM-78cdc204
    That extracts all errors to a collection the view can use...
    This bit does one property
    public void ValidateProperty(string propertyName)
    // If validating a property then there can be no conversion error
    errors.Remove(propertyName);
    var vContext = new ValidationContext(this, null, null);
    vContext.MemberName = propertyName;
    List<ValidationResult> vResults = new List<ValidationResult>();
    Validator.TryValidateProperty(this.GetType().GetProperty(propertyName).GetValue(this, null), vContext, vResults);
    TransformErrors(vResults);
    FlattenErrorList();
    NotifyErrorsChanged(propertyName);
    private void TransformErrors(List<ValidationResult> results)
    foreach (ValidationResult r in results)
    foreach (string ppty in r.MemberNames)
    AddError(ppty, r.ErrorMessage, ErrorSource.Validation);
    Hope that helps.
    Technet articles: Uneventful MVVM;
    All my Technet Articles

  • How to do fronwend validations with out JAVA code

    Hi Frndz...
    In my application i did the fron end validatios as per requirment in java , as per requirement my application requires too much validations i did entirely in java .
    But itz takling much time , in java will go for javascript for validations is there any thing is aivla in webdyn pro for vaildations
    my code
    if(division1 !=null && division1 !="")
           blnValueDivision = true;                         }
    else
         msgMgr.reportContextAttributeMessage(wdContext.nodeInitTableV().getInitTableVElementAt(i),attrInfoDivision,IMessageNoBusinessSheetComp.ERROR__MESSAGE__MANDATORY,new Object[]{"Division"},true);
         blnValueDivision = false;
         if(location1 !=null && location1 !="")
         blnValueLocation = true;
         else
         blnValueLocation = false;

    Hi,
    webdynpro doesnt support java script handling . This is taken care by the framework. Only option is to reduce the roundtrip and try to validate every thing in a submit button.
    Regards
    Ayyapparaj

Maybe you are looking for

  • Ipad will not print from safari on connected air printer

    i can printed pages from email, but when I choose a coupon and it opens in safari, the bos with the up arrow does not open up to print or to send, egc.

  • EP 6.0 SP13: Logon Screen Development: UME accessing

    hi all   I am new to Portal Development.   I have been asked to do the follwoing Development: Bespoke copy of the standard logon screen with the addition of a new field called Client. The <b>Client field will be a pull down</b> and will get it’s valu

  • How to use the Smart Cover for FaceTime and Videos?

    Hi, I bought a new iPad recently with a Smart Cover. I find the Smart Cover very good for typing, at the low angle. The angle is very nice, it feels very comfortable and it allows fast typing. But then what is called the FaceTime/Video angle seems wa

  • LiveCache connection error

    Hi,   I am getting wrong user/Password error when I execute LC10 ---> Live Cache Monitoring transaction. Here are the installation details SAP SCM SID ---> DA0 Schema Owner ---> sapda0 Live Cache SID ---> DA0 Owner ---> sapda0 when I am filling the L

  • Attached library & ora-06502

    Running forms 5.0.6.8.0 and Oracle 8.0.5.0.0 I am using an attached library . Package1 consists only of a package spec that defines a set of variables. Packages 2 thru 5 consist of various functions and procedures some of which reference the variable