Required field error

Hi,
I have two very basic queries:
1) I created a simple non-mvc based bsp application wherein I marked few input fields mandatory by setting required property to true. On submitting the page it used to give me error incase I have left any required fields blank of its own, but after I created the entire application now the error has disappeared and it is allowing me to post the data from the page even if the mandatory fields are left blank. Kindly guide so as to what changes I could have done that the error has disappeared or how can I get it now.
2) When I am doing any server side validation based on the user input I want to show some values calculated at runtime as a javascript alert but unable to pass the value to javascript.
Please help.. any 1-2 liner code would help a lot..
Saurabh Tripathi

hi raja,
regarding issue 1:
layout-        <htmlb:inputField id        = "firstname"
                          value     = "<%= gs_transaction-firstname %>"
                          size      = "40"
                          maxlength = "40"
                          required  = "TRUE"
                          disabled  = "<%= lv_disabled %>" />
oninputprocessing()-
lr_event = cl_htmlb_manager=>get_event( runtime->server->request ).
CASE lr_event->server_event.
  WHEN 'onSubmit'.
    navigation->use_auto_submit_form( ).
....logic...
endcase.
now pls help as where to write a code where firstname is checked as required field and also help me with the purpose of use_auto_submit_form() here, i thought it should automatically tell the required field errors

Similar Messages

  • Moving item Required field error message

    How do you move the required field error message?
    for example when a field is left blank and the page submits
    a error message would populate right under the label and push the item(text box) to the right. Making the form look very ugly.
    http://i.imgur.com/fCBZJ.png
    *i want to move the error message box to the right or below the textbox or somewhere that doesn't push the item...
    Edited by: PandaOracle on Jan 16, 2012 10:35 AM

    That only moves the DML error messages
    I kind of want to move the default error messages for the items. ( i dont see any message tab or anything in the edit page for items.)
    Edited by: PandaOracle on Jan 18, 2012 7:31 AM

  • TYPO in the required field error message???

    This is by far the weirdest thing I've ever seen.  I created a form for a client with required fields.  When I test it on my mac, I get the appropriate error message. When he tests it on Windows, there is a glaring TYPO in the message: "required fields" reads "required fileds"  WHAT THE HECK???? Is there a way to edit that message? I always thought it was an automatic thing, but maybe I inadvertently typed it? ANY CLUES??

    Did you create this form?
    If so check your script.
    If not contact the organization distributing the form about the error.
    This looks like a user written script and not one created by Adobe.
    You also have a misspelling on the content of the form.

  • Empty required field error message

    I keep receiving "At lest one required field was empty on export. Please fill in the required (highlighted) fields before continuing." message.
    I have changed all required fields to optional, but still get the above message. When I do get the message, there are no fields highlighted to correct and I have gone back thru each field and checked to make sure there are no required fields.
    I would like to have 7 fields in my form as required, but even when we tried to put something in the field and submit the form, we received the message. I thought that removing the "required" value would take care of the problem, but the message still comes up.
    Can anyone help.

    Here's something to try...<br />Under some circumstances (such as changing the type of a field), the underlying XML retains values that aren't displayed in the object't properties box.<br /><br />Try clicking on the XML tab, and doing a search for any text that looks anything like this:<br /><validate nullTest="warning"....<br />or <br /><validate nullTest="error"...<br /><br />If you do, that will indicate the cause of the problem.<br /><br />Good luck...<br /><br />Howard

  • How Avoid required Field Error message

    I am using JDevelepor 11.1.2.1.0 Version
    I create a form in ADF table format. In my table composite primary key,(compaycode,division code,branch code, and account code),
    And i set LOV for these attributes.
    The problem is that when i set value to company code fire required error message for other primary key fields....
    How am handle this?
    Regards
    Ansal

    Have you tried to set the immediate property on the fields?
    Timo

  • About the built-in "required" field error message

    Hi team,
    i noticed that when defining a translation for the built-in error messages APEX.PAGE_ITEM_IS_REQUIRED, this message doesn't accept any parameters (the %0...%n sort of).
    It would be nice if at least %0 could be mapped to the currently translated field label, such that if one opts for displaying the message in the notification area only, the relevant field name would be displayed alongside.
    Note that the default english message does display the field name, it's only the translated component that doesn't handle it.
    Flavio
    http://oraclequirks.blogspot.com

    Hi Flavio,
    just use the #LABEL# placeholder an you will be fine. Just have a look at the documented default messages at http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/global.htm#CHDEDHBJ for an example.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf
    Edited by: Patrick Wolf on Sep 13, 2010 7:38 PM

  • Enter required field error in ABAP web dynpro

    Hi Experts,
    I have enhanced the existing application.
    i have placed a dropdown.
    my problem was the status of the dropdown is normal item.
    when i enter the value for the first time it is accepting the value
    and when i enter the value for the second time it is becomming in red and asking me to enter the value is i change the value in the dropdown it is accepting the value.
    Please suggest me how to slove it.
    thanks in advance
    Naresh

    Hello,
    See Note: https://service.sap.com/sap/support/notes/1312542
    Flex SDK 3.4 and higher is not supported as documented.
    You should use Flex SDK 3.3 to build Web dynpro FlashIslands.
    Hope this helps!
    Thanks,
    Srilatha

  • Posting Error: Field Pers.No. is a required field for G/L account

    When I am trying to run the simulation posting run (PC00_M99_CIPE) then is getting an error that u201CField Pers.No. is a required field for G/L account 2275 504566872u201D
    Field Pers.No. is a required field for G/L account  2275  504566872
    Message no. F5808
    Diagnosis
    The value for field "Pers.No." in the interface to Financial Accounting is an initial value but you are required to make an entry in the field selection for G/L account "504566872" in company code "2275" linked to the field selection for posting key "50".
    Procedure
    It might be an error in the configuration of the G/L account field selection. The initial application, used to call up the interface must otherwise define a value for field "Pers.No.". If this is the case, contact the consultant responsible for the application used to call up the interface or get in contact with SAP directly.
    Please help.

    First of all did you required to post with personnel number or not....if it is not required then goto FS00 enter your GL account 504566872....find Field Staus Group under tab Create/Bank/Interest........then goto t code OBVV and select your field status group then click on field status and select Additional account assignments and check personnel number status and change as per your requirement optional or required.
    If personnel number required then create symbolic a/c with account type Q and assign gl account to this symbolic a/c.
    Mohan

  • 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;

  • Error in MB1A - Field Profit Ctr is a required field for G/L account 151100

    Hi,
    While we are doing MB1A with movement type 201, we are facing a error message - Field Profit Ctr is a required field for G/L account 1000 151100.
    I check following things.
    1.. Check Field status group of GL 151100 and make optional to Profit center.
    2.. In SE38, enter Report RM07CUFA and execute with 201 movt. type, 151100 Gl no. and 50200 cost center. According to this, no error exist now.
    What should be error..
    Regards..

    hi,
    I think your cost centre is not assigned the above given bussiness area...
    Take help of FI consultant and check whether its assigned at KS02 or not...
    You can also change it...
    or
    if you are just doing testing, then better use other cost centre which assigned to the above given business area..
    Regards
    Priyanka.P

  • Error: Field Pmnt terms is a required field for G/L account

    Hi Experts....
    When I am trying to release the billing document no in VF02
    It gives me an error
    Field Pmnt terms is a required field for G/L account
    This error comes only when payments are made through Credit Card....
    Message F5808.
    when I did a debug on this the field freigabe is made 'X'
    and I hve cleared the value..Now it saves but the accounting document is not created.
    We are in 4.7C version..
    Can any one help me out in this issue....
    Thanks for your help....
    Regards,
    Chaitanya

    Hi Friends,
    Please refer SAP OSS Note 119047.
    In the OSS Note they have mentioned..
    Pass the payment terms to the field
    xaccit-zterm = '0001'. in the User Exit.
    Program : LV60BF0C,
    Customer Function '002'.
    Include File ZXVVFU02.
    SE 37:- EXIT_SAPLV60B_002
    Still I don't understand why SAP doesn't support payment terms for Credit Card. But when a Sales Order is  created without credit card the field xaccit-zterm  has a value.
    Thanks,
    Chaitanya K

  • ERROR Field Cost Ctr is a required field for G/L account TN 401130

    I get this error when I try to bill a sales document, where do I maintain this setting. I assigned the Account Assigment Group to GL account via transaction VKOA. The AAG si then assigned to the masterial in the sales views. I still get the error of the cost centee field being missing. the setting is not in OKB9, I checked. Check error message from SAP below when I try to release document to Accounting.
    Field Cost Ctr is a required field for G/L account TN 401130
    Message no. F5808
    Diagnosis
    The value for field "Cost Ctr" in the interface to Financial Accounting is an initial value but you are required to make an entry in the field selection for G/L account "401130" in company code "TN" linked to the field selection for posting key "50".
    Procedure
    It might be an error in the configuration of the G/L account field selection. The initial application, used to call up the interface must otherwise define a value for field "Cost Ctr". If this is the case, contact the consultant responsible for the application used to call up the interface or get in contact with SAP directly.

    Hi,
    Change the field status group for the GL account in the bank/interest tab of Tcode FS00.(Example from G004 to G019)
    As the metioned GL will be a revenu account it does not require a cost center, only profit center is requierd.
    Hope it helps
    Regards
    Naveen

  • Error: "Field Material is a required field for G/L account 3862 21201000".

    We are trying to post and Rack purchase Invoice using "BAPI_INCOMINGINVOICE_CREATE" but the BAPI fails and the error message that we are getting is "Field Material is a required field for G/L account 3862 21201000". We checked the GLACCOUNT data that is getting passed into the BAPI but there is no material field available in the structure. Even posting online using MIRO returns the same error.
    Just to give you a quick background on the issue with MATNR. The automatic posting is generating an entry to account 21201000, which is set to require MATNR on the GLACCOUNT posting details. Online in core MIRO the MATNR field does not show up, but you can set the screen variant to allow it to show and therefore enter a value, however, even if you do this if you attempt to cancel the invoice with standard TCode MR8M it again fails because the MATNR is not carried through to posting. There are a couple of OSS notes that relate to this issue, but we are not sure if it will solve our problem. We need to be able to pass a value in MATNR for GLACCOUNTDATA (not MATERIALDATA) so the posting can be effected.
    Please let me know if anybody has come acroos this issue and a way to resolve. Any kind of help will be appreciated.

    Hi
    Run the program RM07CUFA
    in SE38 Tcode and check the inconsistencies.
    Also in FS00 go to details of the GL account and double click on field status group under create bank interest tab and then double click material management/additional assignments.
    You can see the required or suppressed fields

  • Field cost centre is a required field for GL account Error

    The error that I get during a sales transaction is: Field cost centre is a required field for GL account Error. Where or which transaction in FI do I use to maintain this setting.
    Thank you.

    Hi,
    Goto Tcode - OKB9. Search for that G/L account number under your co. code. There select the row, you can maintain the cost center directly. Else for Account assignment detail column, keep it as 1(Valuation area mandatory). Then under new entries maintain the valuation area, which is nothing but the plant, and against that maintain the cost center.
    Hope this resolves your query.
    Please let me know if you need any additional information.
    Thanks,
    Prithwiraj.

  • Error: The following required field is missing from the launch file: jnlp

    PLEASE help me.
    I was at Starbuck's today trying to install new software for my new wireless internet card and when I finished I could no longer access any of my applications that require java... I have a macbook pro dual platform computer. When I try to access www.bayphoto.com to download my application it says: (see below) (which I think is strange because it's all about Starbuck's and it should be my java code- I think...). Like I said - I have no idea what's going on or how to fix this. Please help me or at least tell me whom to call- I feel so stupid- I just need help- ATT? Starbuck's? Sun?
    Error: The following required field is missing from the launch file: <jnlp>
    Under the "exceptions" tab it says:
    MissingFieldException[ The following required field is missing from the launch file: <jnlp>]
         at com.sun.javaws.jnl.XMLFormat.parse(XMLFormat.java:88)
         at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(LaunchDescFactory.java:52)
         at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(LaunchDescFactory.java:64)
         at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(LaunchDescFactory.java:72)
         at com.sun.javaws.Launcher.updateFinalLaunchDesc(Launcher.java:214)
         at com.sun.javaws.Launcher.prepareToLaunch(Launcher.java:127)
         at com.sun.javaws.Launcher.launch(Launcher.java:95)
         at com.sun.javaws.Main.launchApp(Main.java:305)
         at com.sun.javaws.Main.continueInSecureThread(Main.java:213)
         at com.sun.javaws.Main$1.run(Main.java:108)
         at java.lang.Thread.run(Thread.java:613)
    Under the "launch file tab" it says:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
    <title>AT&T Wi-Fi Service @ Starbucks</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="description" content="Starbucks Entertainment presented by AT&T Hotspot" />
    <meta name="keywords" content="AT&T, Starbucks, Wi-fi, Wifi, Hotspot, coffee, music, books, games, fresh sheet, third place, online" />
    <meta name="author" content="Starbucks Entertainment" />
    <link rel="shortcut icon" type="image/ico" href="/favicon.ico" />
    <script type="text/javascript" language="javascript" src="/dhtml/master.js"></script>
    <script type="text/javascript" language="javascript" src="/dhtml/x_core.js"></script>
    <script type="text/javascript" language="javascript" src="/dhtml/x_event.js"></script>
    <script type="text/javascript" language="javascript" src="/dhtml/x_xhr.js"></script>
    <script type="text/javascript" src="/dhtml/att/dhtml.js"></script>
    <style type="text/css">
    copied from starbucks master.css
    body {
         background:#200D06 url("/graphics/att/themes/sbux/hotspot_bkgd.jpg") repeat-x scroll;
         color:#555555;
         font-family:Arial,Helvetica,sans-serif;
         font-size:small;
         line-height:1.5em;
         margin:0pt;
         padding:0pt;
         text-align:center;
    #wrap {
         font-size:95%;
         margin:0pt auto;
         text-align:left;
         width:980px;
    #starbucksframe {
         margin:15px 0pt 0pt;
         padding:0pt;
    /*our addendae*/
    div#header {
         height:95px;
         width:980px;
         background-image:url("/graphics/att/themes/sbux/header_bg.jpg");
         background-repeat:no-repeat;
         margin:0px;
         background-top:0px;
         background-left:0px;
         background-color:transparent;
    div#btn_ctti {
         position:absolute;
         top:10px;
         margin-left:388px;
    div#sbux_lfrm {
         display:inline;
         font-size:10px;
         color:#FFFFFF;
         margin-left:245px;
         top:49px;
         position:absolute;
         line-height:10px;
         font-family:verdana,arial,helvetica,sans-serif;
    div#sbux_lfrm form {
         margin:0px;
    div#sbux_lfrm a, div#sbux_lfrm a:link, div#sbux_lfrm a:hover, div#sbux_lfrm a:active, div#sbux_lfrm a:hover {
         color:#FFFFFF;
    div#sbux_lfrm form label {
         display:none;
         visibility:hidden;
    div#sbux_lfrm form input, div#sbux_lfrm form select {
         font-family:verdana,arial,helvetica,sans-serif;
         vertical-align:middle;
    div#sbux_lfrm input.example {
         color:#656565;
    #sbux_lfrm_row1, #sbux_lfrm_row2 {
         margin:0px;
    #sbux_lfrm input#username, #sbux_lfrm input#password, #sbux_lfrm input#password_pw {
         width:136px;
         margin-right:6px;
         font-size:10px;
    #sbux_lfrm select#roamRealm {
         width:130px;
         font-size:10px;
         color:#656565;
         margin-right:6px;
    #sbux_lfrm_row2 {
         position:absolute;
         top:21px;
         left:-4px;
    div#aupAgree_row {
         margin-top:4px;
         position:relative;
         left:-4px;
    div#aup_box {
         float:left;
         position:relative;
         top:-3px;
    div#aup_text {
         float:left;
         line-height:10px;
    div#tm_badge {
         width:115px;
         height:94px;
         float:right;
         margin-right:0px;
         margin-top:0px;
    div#password_value {
         display:inline;
    div#hidden_pw_field {
         display:none;
         visibility:hidden;
    div#sbux_lfrm.css_form {
         margin-top:0px;
    </style>
    <style>
    /* IE specs */
    body {
         font-size: x-small; /* IE5 Win */
         voice-family: "\"}\"";
         voice-family: inherit;
         font-size: small;
    html>body { /* be nice to Opera */
         font-size: small;
    /* self-clearing floats
    /* trigger hasLayout and target ie5+6/win only */
    *:first-child+html #header,
    *:first-child+html #login_wrapper {
         height:95px;
    #ny_legal {
         color:#CAC3BF;
         font-size:11px;
         font-weight:bold;
         padding:0;
    #ny_legal a:link {
         color:#CAC3BF;
         font-size:11px;
         font-weight:bold;
         padding:0;
    </style>
    </html>
    TOO LONG TO INCLUDE ALL CODE

    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp codebase="file:///C:\eclipse\workspace\studentconverter\webroot" href="studentconverter.jar" >two things wrong here -
    first codebase is not legal URL, File.separator (backslash on windows) needs to be converted to forward slash in URL's.
    second, the href is not to the jnlp file, it is to the jar !
    href="studentconverter.jar" - should this be href="studentconverter.jnlp" ?
    /Dietz

Maybe you are looking for

  • Need to 'launch' AIR app from SD card on Samsung Galaxy TABLET...

    April/28/11 at 3pm ET Hi to the group... Not 100% sure if this is proper forum to ask this, if anyone knows a better one please point me to it via ([email protected]) Ok. Trying to see if my working .AIR app will run on my pals Samsung Tablet (before

  • How to Move Music Library from one external HD to another

    I had about 60GB of music on an external hard drive, nicely organized and "linked to" from iTunes (just upgraded to version 5). I recently purchased a larger external hard drive and basically copied the contents of my older external drive to the new

  • X200 Video Card

    Is it possible to replace the video card in a X200? I want a better one if possible. Is it worth it? Thanks,

  • I want to request refund my payment

    I have purchased skype subscription by duplicated accidentally..want to request refund..chat page unable to open..any otherway to communicate.. Thanks

  • Changing MS Office (test drive) from default word processor

    Sorry for sucking up so much topic space, but I spent the better part of an hour trying to figure out how to change my legitimate MS word 2004 to the default word processor from the test drive version that comes on the MBP. Everytime I click on a MS