Validation message

Hi
I have a code segment like this -
<messageTextInput name="WlCensusNonTreatPrimary" promptAndAccessKey="& " shortDesc="Enter the number of applicants" data:readOnly="isViewing@jheadstart:ServiceDelivery" onBlur="check()">
<onBlurValidater>
<decimal/>
</onBlurValidater> </messageTextInput>
If I am having the label removed (that is I don't have any name specified after "& " in promptAndAccessKey attribute (or) nothing at all in the Prompt attribute, I am getting the following validation message when I enter a alphabet(say 'a') in a numeric field -
"Value 'a' in " " is not a number". But, if I put a label there (say &EmpNo) I get the appropriate message.
But my problem is I don't want a label on my screen as I am arranging it in a different order (like a cross tab).
Any help?
Patrick

Patrick,
Hmm, may be if you set the anchor or id attribute to "Empno", the javascript validations message will pick it up?
If not, you better address this question to the JDeveloper forum since it is really a UIX issue. The UIX experts are monitoring the JDeveloper forum.
Steven.

Similar Messages

  • How to get UI page validation messages?

    Hi,
    I have problem regarding Front End validation messages..how to get this
    in my project i have a form with some fields
    i need to generate small pop up message "already exist" for entering same values for perticular
    columns (when click the tab for next column then i need message)
    can any body help me..

    Community Feedback and Suggestions (Do Not Post Product-Related Questions Here)
    Mod: locking.

  • ADAPTER.JAVA_EXCEPTION  - java.lang.Exception: no valid message format obje

    Hi experts,
    we have a problem when we call a web service PI (release 7.01 , SP 10), from legacy system : the PI system return this message : ADAPTER.JAVA_EXCEPTION ; - java.lang.Exception: no valid message format object found
    For to test this scenario we use soapUI tool.
    I tried the URL (... /XISOAPAdapter/HelperServlet?action=FindChannel ...) in IE and got the following response :
      <?xml version="1.0"; ?>
    - <s:ChannelInfo xmlns:s="http://sap.com/xi/WebService/xi30">
      <channelID>11ccbb96a7f3349c895a005c9bc09cb7</channelID>
      <name>CC_Soap_Sender_TestWS</name>
      <type xmlns:st="http://sap.com/xi/XI/System">st:SOAP</type>
      <direction>INBOUND</direction>
      <party />
      <service>BS_..........IDB_DEV</service>
      </s:ChannelInfo>
    so I think that this service is OK .
    Thanks in advance for your help,
    Alberto

    Hi,
        1)  Check the URL once again- check for the extra spaces at the end of the link.
    2) please refer below blog i hope it will help you
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40611dd6-e66e-2910-f383-e80fb44f9cd4?QuickLink=index&overridelayout=true
    Did you check the page no 14 of the document  which has the same problem - in problem analysis it has mentioned that check the URL as well as proxy setting of internet browser.
    3) Try to create the ID objects manually (Sender Channel and Sender Agreement).....when we use the wizard a * gets introduced in the unfilled (unused) fields (party etc) ....however when manually created the unused fields are left blank.
    4) Check if all the ID objects are available in SXI_CACHE.
    regards,
    ganesh.

  • How to set a dynamic validation message in javascript

    Hi,
    I am using the "validate" event on a field, along with the "script message" field, to make a validation and send a message to the user if the test fails.
    - Is it possible to define parameters in this message, for example "field &1 is invalid" where we replace &1 by the name of a field?
    - Is it possible to send 2 different messages (I guess it's like using a message &1)?
    - What is the best practice according to your experience?
    Notes:
    - I am aware of the xfa.host.messageBox, but I'd like to keep Adobe logic for validations (am I wrong? why?)
    - I also saw the possibility of binding a field from the context, to the message field, but I found that it was not very clean to do this way (if even possible)
    Thx !

    According to the tests I did since yesterday, it is very difficult to use the "validation script message" (in the "value" tab of a "text input" field, within a dynamic table), for sending a dynamic message.
    I abandon, and prefer to use use
    xfa.host.messageBox( "dynamic message text" )
    For information, I could change the message during "validate" event, with a rather complex algorithm.
    Unfortunately, when a table row is just added (dynamically, with a button), though the message has been changed, it displays the original value. When I change the field again, the changed validation message is taken into account. I don't know why.
    Edited by: Sandra Rossi on Jul 24, 2009 9:01 AM : it's only to say that since then, this was the only solution! Question closed

  • Variable in the validation message

    Dear all,
    I have defined a new validation method with the following settings in the SEM-BCS:
    Type of the data stream: totals records
    Validation type: data rows and totaled
    Then I have defined a new validation rule and a new message. For example:
    Validation rule:
    VAL_YTD u201E&1u201D ( u201CAu201D items ) = 0
    Message:
    u201CAu201D items (&1) donu2019t equal 0.
    I use the group function with item.
    My question:
    How can I set up that in the message text that the system writes out the number of item in the message?
    For example
    u201C112u201D item (56 EURO) donu2019t equal 0.
    Regards
    Zsolt

    Hi Zsolt,
    I have struggled with this in the past and found the help document useful but I think it is not possible to list the incorrect Item (as suggested above by Collet).
    NB If you have BCS 6.02 or greater, then you already have the new "jump to" functionality that can take users directly to the List of Totals records to display the incorrect data record - this provides some help for users and infact may be better because they would probably go to the Totals List after a validation message anyway.
    NB It doesn't need any configuration, only installation of 6.02 (that is BCS 6, EHP2) or greater, plus (if you haven't already) activation of the EHP2 group close function in T-Code SFW5. Then the functionality will exist in your validation log screen after running the validation task.

  • Losing Data Validation Messages when writing back to context

    ( The base for this question is the ALV grid in section 2 of this [TimeSheetMockUp|http://www.duke.edu/~michaelm/TimeCard/AnnotatedTimeSheet.jpg] )
    Users enter values in the white cells which represent the hours recorded on a given day for a certain type of time.  
    Lets say we have a z-object that supplies us with the overall grid structure, including the headers and (the shaded) summarization cells. The web dynpro ALV had been set to allow input only on the raw data cells. They are set to 4 places with one decimal.
    As the app was being developed, when we entered invalid data in a cell, such as 123456, or 1.2345 or u2018qu2019, a nice message was displayed that told the us about the issue.  This was free u2013 I guess the phase model does that for us, and we liked it.
    Well, down the road a pieceu2026 we needed to add a method to recalc all the summary values from the raw inputs. 
    METHOD wddoafteraction .
    * wizard: navigate to and get the rows data                         *
      DATA lo_nd_nd_rows TYPE REF TO if_wd_context_node.
      DATA lt_nd_rows TYPE wd_this->elements_nd_rows.
    * navigate from <CONTEXT> to <ND_ROWS> via lead selection
      lo_nd_nd_rows = wd_context->get_child_node( name = wd_this->wdctx_nd_rows ).
      lo_nd_nd_rows->get_static_attributes_table( IMPORTING table = lt_nd_rows ).
    * do the math                                                       *
      DATA lt_updated_rows TYPE wd_this->elements_nd_rows.
      CALL METHOD wd_assist->o_wc->recalc_update_and_return_wrows
        EXPORTING
          im_rows = lt_nd_rows
        IMPORTING
          ex_rows = lt_updated_rows.
    * repopulate the rows                                      *
      lo_nd_nd_rows->bind_table( new_items = lt_updated_rows set_initial_elements = abap_true ).
    Now, weu2019re losing all the nice data validation messages u2013 they do not display (the offending entries are just cleared) !!!
    After some investigation, it seems that the bind_table call is where they get lost (without that call, they appear) .
    Iu2019ve tried placing this code in a number of hook methods, but the same thing occurs.  It is currently in the viewu2019s afteraction hook.
    So, u2026 I have two questions.
    u2022     How do I get my nice messages back. ?
    u2022      Where is the right place to update my context from 
    ( Btw, downstream, our recalc outines will also want to throw messages that we will want processed after we get through the initial validation  )
    Thanksu2026
    u2026Mike

    Fixed with SAP Note 1410122 - WD ABAP ALV: Messages are not displayed

  • Validation messages in JSF (when not using ADF faces)

    I've spent some time with JDeveloper 11 and would like to use it on an upcoming project. I have to target IE 6, so I won't be able to take advantage of ADF Faces. Instead I'd like to use the ADF Business Components with a standard JSF interface so it can be used by people still running IE 6.
    I've created a Business Component from a database table and can bind a JSF HTML Creation Form by dragging the appropriate view from the AppModule in the Data Controls pane. However, when I attempt to submit the page without all the fields being valid I get the following validation error message:
    j_id__ctru2:j_id__ctru6: Validation Error: Value is required. j_id__ctru2:j_id__ctru6: Validation Error: Value is required.
    I've tried making this more descriptive, but editing the error message in the Validation Rules section of the Business Component has no effect. What's the best way to convey a meaningful validation message to the user when not using ADF Faces?
    Also - I'm still very new to JDeveloper. Since I won't be able to rely on my users having Internet Explorer 7, would you recommend I stay with JDeveloper 10? The examples and documentation I've seen so far for JDeveloper 11 appear heavily biased towards using ADF Faces so I'm starting to wonder how much support is there for using plain old JSF.
    Thanks for your time!

    Hi,
    if you are completely new to this then I suggest to use JDeveloper 10.1.3 and ADF Faces in there. Its good to use with IE6 as well. Currently we do have more tutorials available for this release than for 11, which for this reason is a better choice for someone new to this
    Frank

  • How to display Entity level validation messages in a table

    I'm using ADF 11g 11.1.1.2.0. I have a page with an updateable table based on an EO. In the EO I have defined some entity level and attribute level declarative business rules. When the user enters a value in the table that violates an attribute level validation, the related message is displayed inline and the attribute is surrounded by a red box. Furthermore the user is not able to place his cursor in a different row. In this way it is clear which row and attribute caused the error. However if the user enters some data that violates an entity level validation, the validation message is displayed as global messages in the message-popup when the business rule is based on a script or a method. This means that the user gets a global message popup, and does not know which row caused the error. Ofcourse we can include the identifying attributes of the row in the error message, but I would like to know if there is another more visual way to communicate to the user which row caused the error.
    Edited by: Jonas de Graaff (PSB) on 10-feb-2010 2:51

    Hi Chittibabu,
    what about using a TreeTable control?
    SAPUI5 SDK - Demo Kit
    Regards
    Tobias

  • How can i change validator Messages

    i am newbie in JSFl i just start now
    i am making a very simple login application
    here i do a validator on text field.
    validation message show me as form1:txtid: Validation Error: Value is required.i want to change these message like ID is required.how can i do this??

    thanks shakeel bahi.
    it is only work for required property. am i right?
    how i change message on length validator?
    for example minimum length is 2 and maximum is 10
    error message show as
    for minimum
    form1:txtID validation error minmum length 2for maximum
    form1:txtID validation error maximum length 10here i want to replace my messages like
    User Id length Should be between 2 to 10thanks again for your efforts

  • Web Form Validation Message Language Setting at Runtime when work in multi lingual environment

    Business Catalyst use the default culture language to display web form validation message.
    When we are in multi lingual environment and not using subdoamin to handle multilingual sites, we found that the validation message did appear in the default culture setting. To make this work, we need to add the below script in our template.
    <script type="text/javascript">
    $(document).ready(function(){               
    var head= document.getElementsByTagName('head')[0];
    var script= document.createElement('script');
    script.src= '/BcJsLang/ValidationFunctions.aspx?lang=FR';
    script.charset = 'utf-8';
    script.type= 'text/javascript';
    head.appendChild(script);
    </script>
    Assuming the template is in french. You can change the lang parameter in the script according to your language.

    After user 1 submits the page, it might not even be committed, so there is no way to have the pending data from user1 seen by user2.
    However, we do have a new feature in ADF 11g TP4 that I plan to blog more about called Auto-Refresh view objects. This feature allows a view object instance in a shared application module to refresh its data when it receives the Oracle 11g database change notification that a row that would affect the results of the query has been changed.
    The minimum requirements in 11g TP4 to experiment with this feature which I just tested are the following:
    1. Must use Database 11g
    2. Database must have its COMPATIBLE parameter set to '11.0.0.0.0' at least
    3. Set the "AutoRefresh" property of the VO to true (on the Tuning panel)
    4. Add an instance of that VO to an application module (e.g. LOVModule)
    5. Configure that LOVModule as an application-level shared AM in the project properties
    6. Define an LOV based on a view accessor that references the shared AM's VO instance
    7. DBA must have performed a 'GRANT CHANGE NOTIFICATION TO YOURUSER'
    8. Build an ADF Form for the VO that defined the LOV above and run the web page
    9. In SQLPlus, go modify a row of the table on which the shared AM VO is based and commit
    When the Database delivers the change notification, the shared AM VO instance will requery itself.
    However that notification does not arrive all the way out to the web page, so you won't see the change until the next time you repaint the list.
    Perhaps there is some way to take it even farther with the active data feature PaKo mentions, but I'm not familiar enough with that myself to say whether it would work for you hear.

  • Want to change length validator message and change field format.

    I want to override Length Validator Message as I want to tell the user that phone number
    must contain 10 numbers
    I've added this validator on the phone field
    af:validateLength minimum="10" maximum="10"
                                   hintMinimum="11" hintMaximum="22"
                                   hintNotInRange="33" messageDetailMinimum="44"
                                   messageDetailMaximum="55"
                                   messageDetailNotInRange="66" id="lengthval"/>and this when I enter less than 10 numbers the error message tell that you must enter 10 characters
    I want to override this message to be "you must enter 10 numbers"
    And I want to make this number format like
    XXXX,XXX,XX
    How can I make this.

    Strictly speaking a number in this format is no number. It's a phone number and you should use a regular expression validator for this.
    Check http://docs.oracle.com/cd/E15051_01/apirefs.1111/e12419/tagdoc/af_validateRegExp.html for more info.
    Timo

  • Label on custom validation message

    Hi,
    I�m trying to display a the label of a input on a custom validation message using h:messages, for example:
    "The field Email is required"
    I don�t want to use the requiredMessage attribute of the outputText because I wish to apply it for all fileds on my application.
    I�ve tried something like that:
    On the jsp:
    <h:outputLabel for="email" value="Email" />
    <h:inputText value={bean.email} required=true />On the bundle:
    javax.faces.component.UIInput.REQUIRED=The field {0} {1} is requiredBut, the {0} parameter is the component ID, and the {1} parameter resolves to null.
    Please help, this is very important to me.
    THanks

    The {1} should resolve to the label of the inputText component. Note that here (and in the documentation) 'label' refers to the value of the label attribute on the inputText component itself. It does not refer to the value of an outputLabel component that is 'for' the input component.
    So you want the following:
    <h:outputLabel for="email" value="Email" />
    <h:inputText id="email" value="#{bean.email}" required="true" label="Email" />Note I also added an id to pair with the for attribute.

  • Regarding Focus and Validation message on the JDialog

    Hi All,
    Can any body provide the Solution for the below scenario.
    I have a dialog ,on this i have some components like combobx , TextField and check box etc..... and also one OKButton and Cancel button.
    The problem is when i enter some invalid data or with out entering the values in any fields , if i click on ok button a validation message will be displayed stating that perticuler field is mandatory and if i click on that validation message the focus should go to the corresponding field.
    it is not happening some times(i.e the focus is not going to the corresponding field)
    but some times it is happening.
    can u provide a solution or suggest me on this regard.
    Thanks in Advance.
    Regards,
    jeevan.

    Put the request focus code inside this:
    SwingUtilities.invokeLater(new Runnable()
         public void run()
                 //Put the code here to set the focus
    });

  • Disable the validation message

    Hi,
    How to disable the validation message "<fieldname> cannot be blank"? But when Submit button is clicked, it should still display the standard validation message "At least one required field was empty". Many thanks in advance.

    Hi,
    Try unticking the Validation messages in the Object > Value palette and clearing any Validation Patterns:
    Niall

  • Oracle Devs -  "Customizing a Standard Validator Message" tutorial moved?

    Guys and Gals,
    Page 366 of the Oracle JDeveloper 11g Handbook: A Guide to Oracle Fusion Web Development references a "Customizing a Standard Validator Message" tutorial on java.sun.com.
    It is nowhere to be found. Java.sun.com redirects to another oracle webpage, and the JDev tutorials do not seem to cover this material.
    I'm not looking to add my own custom validator, but rather modify the default JSF error message. i.e. Change standard validator text from "Too many objects match the primary key oracle.jbo.key[<mypart>]" to "Part <mypart> already exists.".
    Can anyone reference another tutorial for this topic?
    Thanks in advance.

    HaHa! Finally found something similar. Sweet sauce.
    http://netbeans.org/kb/docs/web/convert-validate.html#08

Maybe you are looking for