Customizing error message when no value is entered

Hello,
I would like to have my own error message when a user does not fill in a field and the required attribute is specified. How do I do that? Instead of "Validation Error: Value is required." I'd like "please specify a value." How do I do that?
Thanks in advance,
Julien Martin.

hi,
in section 2.5.2.4 of the spec, there you will find some details on it.
and how you overwrite error-messages
cheers,
matthias

Similar Messages

  • How to raise an error message when duplicate value is entered in a tabular field column? Basically not allow duplicate value at the form level.

    Hi all,
    I have created a form with one data block MATURED_FD_DTL which looks like below:
    ACCT_FD_NO
    CUST_CODE
    FD_AMT
    FD_INT_BAL
    TDS
    CHQ_NO
    ADD_FD_AMT
    P_SAP_CODE
    P_TYPE
    CREATE TABLE MATURED_FD_DTL
      ACCT_FD_NO    VARCHAR2(17 BYTE)               NOT NULL,
      CUST_CODE     NUMBER(9),
      FD_AMT        NUMBER(15),
      FD_INT_BAL    NUMBER(15),
      TDS           NUMBER(15),
      CHQ_NO        NUMBER(10),
      ADD_FD_AMT    NUMBER(15),
      P_SAP_CODE    NUMBER(10),
      P_TYPE        VARCHAR2(1 BYTE)
    For MATURED_FD_DT.ACCT_FD_NO, Trigger: KEY_NEXT_ITEM, I have written the following code:
    DECLARE
    V1 NUMBER;
    V2 NUMBER;
    BEGIN
    V1:=:MATURED_FD_DTL.ACCT_FD_NO;
    MESSAGE('V1:'||V1);
    MESSAGE(' ');
    END;
         GO_ITEM('MATURED_FD_DTL.CUST_CODE');
    This is just a dummy code.
    When ever i enter the value in the field of ACCT_FD_NO, it pops up a message saying "V1:Value of ACCT_FD_NO",
    So i want to store that value .
    Compare them & if it is egual, it should pop up a message saying duplicate value is entered and must not allow to enter, at form_level.
    So how can I compare the ACCT_FD_NO value between FIRST_RECORD and NEXT_RECORD ??
    Help Me .
    Thank You.
    Oracle Forms 6i.
    Oracle 9i.

    Thank You HamidHelal.
    Actually before posting the code, I went through the first link you have mentioned. I tried also, it is quite tedious procedure, however i dint get the proper result, may be i have done some mistake. Anyways , can you tell me how do i check in database table, if a value exists OR IF VALUE FOUND & then message and raise form trigger failure; something like below.
    IF :MATURED_FD_DTL.ACCT_FD_NO EXISTS
    THEN MESSAGE('YOU HAVE ENTERED AN EXISTING OR DUPLICATE VALUE');
              MESSAGE(' ');
    RAISE FORM_TRIGGER_FAILURE;
    END;
    OR
    IF :MATURED_FD_DTL.ACCT_FD_NO FOUND
    THEN MESSAGE('YOU HAVE ENTERED AN EXISTING OR DUPLICATE VALUE');
              MESSAGE(' ');
    RAISE FORM_TRIGGER_FAILURE;
    END;
    Is there any equivalent in the form in oracle forms 6i?? Please let me know how do i do this??

  • Can we get error message when a component is entered twice in BOM??

    Hi,
    I have a BOM with around 150 components.
    Can we get an error or warning message when ever a component is entered twice in the component list????
    Thanks for your views.
    Naveen.

    In addition to the above points about enhancement PCSD0005, here is some more information that you may find useful.
    - The enhancement is called when you press enter after inserting a component.
    - The component name is stored in field rc29p-idnrk
    - Your programmer should know if it is possible to transfer this name to a table where it can be retained. Then when you add the next component, the exit can check against the previously inserted components. With a lot of components, you may get performance problems doing this though....
    Exit is called here:
    SAPLCSDI     FORM     MATERIAL_PRUEFEN
    CALL FUNCTION 'EXIT_SAPLCSDI_006'
       call customer-function '006'
            exporting                                          "note 611155
                 i_rc29p  = rc29p                              "note 611155
            importing
                 msg_data = msg_tmp
                 t_msg_data = lt_msg                           "note 942798
            tables
                 mat_bom_allocation = mastb_tmp
            changing

  • Custom error messages when booking traing in SAP LSO

    In SAP LSO i implemented the BADI IF_EX_LSO_CHECK_BOOKING~CHECK_BOOKING in the code i throw error message in the object ct_message_tab  of type DCMESSAGE.
    When the error is presented within the portal two things are not the way i want it.
    1. The error message can be up to 50 characters per message so i need to append more line to ct_message_tab, each line is presented with the read error symbol prior to the line. i want multiple lines with only one error symbol
    2.  I:001:000 Voor deze training hebben we aanvullende persoonsgegevens van je nodig.
    I:002:000 Geef hiervoor je akkoord op de disclaimer bij "Informatie" in dit leerportaal.
    I:003:000 Heb je vragen hierover? De cursusaanbieder beantwoordt ze graag.
    the message are presented with the message number and message id, I only want to display the the msgv1 to msgv3.
    Hope anyone got a clue.
    Finaly the next problem, when pre-booking a course only a SAP pre defined error is shown, so the custom ct_message_tab is not visible on this screen.
    I use following code three times because of maximum length of 50 characters per message line
          IF sy-subrc EQ 0 AND lv_disclaimer IS INITIAL.
            lw_message_tab-msgid = '001'.
            lw_message_tab-msgty = 'E'.
         lw_message_tab-msgno = '1'.
            lw_message_tab-msgv1 = 'Voor deze training hebben we aanvullende'.
            lw_message_tab-msgv2 = 'persoonsgegevens  van je nodig.'.
            lw_message_tab-msgv3 = ''.
            lw_message_tab-msgv4 = ''.
            APPEND lw_message_tab  TO ct_message_tab.
            lw_message_tab-msgid = '002'.
            lw_message_tab-msgty = 'E'.
         lw_message_tab-msgno = '1'.
            lw_message_tab-msgv1 = 'Geef hiervoor je akkoord op de disclaimer'.
            lw_message_tab-msgv2 = 'bij "Informatie" in dit leerportaal.'.
            lw_message_tab-msgv3 = ''.
            lw_message_tab-msgv4 = ''.
            APPEND lw_message_tab  TO ct_message_tab.
    Edited by: Richard van Veen on Apr 21, 2010 9:13 AM

    Hi,
    it is urgent can any one help on this.
    Thanks,
    Sridhar Reddy.G

  • Error message before all values are entered in Step and Repeat box

    The Step and Repeat function seems to have a problem that it didn't have before.
    (1st field REPEAT COUNT, 2nd field HORIZONTAL OFFSET, 3rd field VERTICAL OFFSET). It is not permitted to duplicate beyond the limits of the document or pasteboard, I understand that. But, if a large value is already entered, let's say 3' in the 3rd field and you enter 12 in the first, you will get an error message BEFORE YOU EVEN HAVE TIME TO COMPLETE ALL THE FIELDS AND THEN SAY OK. The reason I bring this up is that it was not this way before Leopard (or before CS3) and I suspect that it is either the Mac OS or CS3 that is causing problems. I should be able to enter all the values in the 3 fields (whatever was previously entered the last time), say OK then get a message if the values go overboard. Not before I even finish entering them!
    Is this a known issue, or is it just me?
    Thanks

    It's a known issue with CS3 - I believe it existed in Tiger too.

  • Error message when adding values to another table

    hi i have a situation where am adding values from a view to a bean,my use case is i have a list of user in my view where am adding them to my bean by clicking the button,but now i what to validate when adding a user in such a way that if i added a use in my bean and i try to add that user again in current selection i must have validating error saying the user have been added already my code is
    Edited by: adf0994 on 2012/12/13 2:19 PM

    looks like you should have asked this in the ADF-forum...
    JDeveloper and ADF
    Why don't you simply configure the user name beeing unique in your entity?
    ADF would raise an exeption for you.
    public String onRowCreate( Row currentRow ) {
    return null;
    }Don't do that.
    returning a literal null is almost ever a mistake! In this certain case you should declare you methods return type as void and ommit the return statement.
    bye
    TPD

  • Catch datetime exception and custom error message in SSRS

    I currently working on create report by using SSRS. I have 2 parameters: [Start date] and [End date] to filter data from database and show it on report. I want to validate 2 datetime parameter as describe above. Please tell me a solution to do this.
    For example:
    When user type the text like: 4/15/2014mmm => System validation thrown a message: [The From Date not correct type]
    But in my case, I want to receive a custom error message by myself.(Look like: [Date Invalid!])

    Hi Brain,
    According to your description, you have a report with two parameters for user to input. Now you want to validate these two parameters and display custom error message when the date is invalid. Right?
    In Reporting Service, it doesn’t provide any interference for us to modify the system error message (the text in grey color). That means we can’t modify the system message when error occurs. However we can create a textbox in this report, use custom code
    and expression to display the custom error message. But this all based on the report is successfully running. So if error occurs during report processing, all the custom code and expression will not work. In this scenario, we find a workaround for you. We
    use custom code to judge if the date is valid, if the users type an invalid date, we return a default value to make sure this report can successfully run. Then we use expression to control the visibility of tablix in this report and create a textbox to show
    the custom error message. Your case has been tested in our local environment. Here are steps and screenshots for your reference:
    Go to Report Properties. Put the code below into custom code:
    Public Shared a As Integer=0
    Public Shared Function IsDate(d1 As String,d2 As String) as Integer
            Try
               FormatDateTime(d1)
               FormatDateTime(d2)
            Catch ex As Exception
                       a=1
            End Try
    return a
    End Function
    Create two parameters. One is StartDate, the other is EndDate. Set the data type of these two parameters Text.
    Create a filter for StartDate, put the expression below into Value:
    =IIF(Code.IsDate(Parameters!StartDate.Value,Parameters!EndDate.Value)=0,CDate(IIF(Code.IsDate(Parameters!StartDate.Value,Parameters!EndDate.Value)=0,Parameters!StartDate.Value,"1/1/2012")),CDate("1/1/2012"))
    Create a filter for EndDate, put the expression below into Value:
    =IIF(Code.IsDate(Parameters!StartDate.Value,Parameters!EndDate.Value)=0,CDate(IIF(Code.IsDate(Parameters!StartDate.Value,Parameters!EndDate.Value)=0,Parameters!EndDate.Value,"1/1/2013")),CDate("1/1/2013"))
    Ps: In step3 and step4, the date(“1/1/2012”, “1/1/2013”) in the expression are the default we set to make sure the report can successfully process. You can set any date existing in your dataset.
    Use the expression below to set the visibility of the tablix:
    =IIF(Code.IsDate(Parameters!StartDate.Value,Parameters!EndDate.Value)=0,false,true)
    Create a textbox, put the expression below into it:
    =IIF(Code.IsDate(Parameters!StartDate.Value,Parameters!EndDate.Value)=0,"","Date invalid")
    Save and preview. It looks like below:
    Reference:
    SSRS Calendar and Date Restriction
    Errors and Events Reference (Reporting Services)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou
      

  • Can we show custom error message if the user fail to log in MII system.

    Hi,
    Is it possible to show a custom error message when a log in is failed because of access restrictions?
    I am using xMII version 11.5
    Thanks
    Regards,
    Neha Maheshwari

    Since you are on 11.5, it is possible to make edits to some of the system jsp pages, etc. but it would NOT be my recommendation to do so.  Since the NetWeaver versions for MII 12.0 and beyond use UME for the login instead of the LHSecurity engine, this would be a very short term change.
    What specific changes would you like to make, the login page messages, query result messages, applet messages?

  • How to display custom error message if the Required field is not entered?

    Hi,
    I have made one input field as required field in a view.
    I want to display one custom error message ,if the required input field is not entered.
    Please help me regarding this.
    Thanks,
    Deepika

    hi deepika....
    First go to message pool under webdynpro components.
    Create a new message there..of type error.
    Enter your text.
    Now to avoid null pointer exception , in wdDoInit(), initialise the value
    wdContext.currentDateTimeElement().setDate("");
    now create an action for submission of data. If field is empty, then within the button write:
      msg = wdComponentAPI.getComponent().getMessageManager();
        if(wdContext.currentDateTimeElement().getDate().equals(""))
        msg.raiseMessage(IMessageCompTodatDateTime.ERROR,new Object[]{""},true)     ;
    between begin others put:
    regards,
    pinki
      IWDMessageManager msg = null;

  • I got this error message when I want to activate the CS6. The error message is "We are unable to validate this serial number for CS6 Design and web Premium. Please contact "Customer Support ""

    I got this error message when I want to activate the CS6. The error message is "We are unable to validate this serial number for CS6 Design and web Premium. Please contact "Customer Support ""

    Hi islandschool,
    Please try the suggestion given in the link:- http://helpx.adobe.com/creative-suite/kb/unable-validate-serial-number-ccm.html
    Regards,
    Sarika

  • I am unable to restore my subscription. I receive the following error message when I enter the password: " Apple ID doesn't exists or the password is wrong".

    I am unable to restore my subscription. I receive the following error message when I enter the password: " Apple ID doesn't exists or the password is wrong".

    Please refer to Can't authorize with a previously used Adobe ID

  • HT2623 I keep getting an error message when I enter my password for iCloud IMAP server

    I keep getting an error message when I enter my password for iCloud IMAP server

    A number of users who have chosen to set up iCloud mail manually in the Mail application seem to encounter problems with continually being asked to sign in. This may well be a result of incorrect settings such as not setting 'Apple Token' for authentication under the accounts advanced settings.
    A more general approach to remedying such problems would be to turn off Mail in System Preferences/Settings > iCloud, checking the account has been removed from Mail (and deleting it if it hasn't), restarting and then enabling iCloud Mail again from System Preferences/Settings > iCloud. This will ensure the correct settings are used.

  • I get this error message when I try to use or set up publish services... An internal error has occurred: ?:0: attempt to index field 'exportSettings' (a nil value)

    Can anyone help with this error message when trying to use publish services?  An internal error has occurred: ?:0: attempt to index field 'exportSettings' (a nil value)

    Can anyone help with this error message when trying to use publish services?  An internal error has occurred: ?:0: attempt to index field 'exportSettings' (a nil value)

  • Getting an error message when one of the values in a formula is null

    Hi,
    I am using a query to generate report... my query looks like this:
    select     
    CUSTOMER_NAME,
    (sum(MILLAGE)*MILEAGE_RATE) as TOTAL_INVOICE,
    from     
         T_TIME_REPORTING
    where
    CUSTOMER_NAME = :P22_CUST_NAME
    group by
    CUSTOMER_NAME
    it's working fine when there is a valid value for MILLAGE and MILEAGE_RATE but giving an error message when anyone of them is null... please advice how to fix this issue
    Thanks in advance

    my query looks like this:
    select
    CUSTOMER_NAME,
    (sum(MILLAGE)*MILEAGE_RATE) as TOTAL_INVOICE,
    from
    T_TIME_REPORTING
    where
    CUSTOMER_NAME = :P22_CUST_NAME
    group by
    CUSTOMER_NAMEThat would not work even when all values are not null:
    select ename, sum (sal) * comm
        from emp
       where ename = 'ALLEN'
    group by ename
    Error at line 1
    ORA-00979: not a GROUP BY expression

  • HT2731 why do i get an error message when entering my credit card information?

    why do i get an error message when entering accurate credit card information?

    If you would like help from these forums then saying what the error message is would be useful.
    The card is registered to exactly the same name and address as you have on your iTunes account ? And it was issued by a bank in the country where you and your iTunes account are ?

Maybe you are looking for

  • G4 MDD wont boot past logo, or to cd. Please help!

    The power was cut as I was deleting my shared folder which had about 13gb worth of data on it. The process had just started. I tried to boot back up I hear the chime and then it goes to the apple logo then the whole thing just shuts down after a few

  • Where to Begin in Xcode?

    Hello- I am completely new to programming. I have an idea for an iphone ap that I would eventually like to use on other platforms. This is for musical training purposes. It consists of several illustrator diagrams that will move in time to metronome

  • Working with clips, channels, and tracks

    This question was posted in response to the following article: http://help.adobe.com/en_US/premierepro/cs/using/WS1c9bc5c2e465a58a91cf0b1038518aef7-7f49a .html

  • Macbook Pro 2012 10.8.2 battery life *****!

    Good Afternoon Everyone. This week I notice my macbook pro battery life run out of juice very quickly. Yesterday start it using it at evelenish at 50% at 12:30 was down to 7%. Today, well right now It was at 99% I'm 15 minutes into using battery down

  • Airport With 2 x 1TB Drives Dropping all the time

    Hi Any info much appreciated folks.... The Setup is as follows. Wall>Linksys router>LAN to Airport Extreme>Belkin Mac Mini USB Hub> 2 x 1TB Lacie Disks Problem : My airport disks keep on disconnecting themselves and the airport keeps on dropping out