Show Warning Message near the field

Hi all,
I want to show my warning message near the field which is required instead of right at the bottom.
I use the following onSubmit() Method when the user hits the submit button to check for required fields:-
if (this.testfield == null) {
this.setBackgroundColor(componentId : "testfield", color : "Red");
this.focus(componentId : "testfield");
this.setVisible(componentId : "testfield", visible : true, collapsed : false);
this.showWarning(warning : "Testfield is Required");
else {
this.submit(text : "submit");
This gives me the error message right at the bottom of the presentation as opposed below the field.
How can I get this message to appear right below the field which is required?
Any idea?
I tried this.setText()
But it does not work.

The "showWarning" and "showError" methods used to be more useful when we had the option in earlier releases (5.7) to place them at either the top or the bottom of the presentation.
I now never use either one of them.
This is not what you want to hear and know you've thought of this, but what I do is add text attributes (errorMessage1, errorMessage2,...) to the BPM object and then place the text fields on the presentation as read-only, bold red foreground color text fields directly above the field causing the error. In my presentation's initialization method, I always use the setVisible method to false and collapse them. In your submit logic, you'd set the value of the error message attribute and set the error message field to be visible and not collapsed. You need to add an on change event for the field causing the error that will make the error field not visible and collapsed. Similarly, if you have a Save button, you need to make all the error fields not visible and collapsed.
Dan

Similar Messages

  • How to handle warning message for the fields in tab merging , PERSONAS 2.0

    Hi all,
    Please advice me on the below issue.
    In a transaction VA32 , I have merged the fields from one tab to another tab using tab caching.
    when i try to change the value of  a merged fields , it throws the warnings message. So it is continuously looping from one tab to another tab.
    So i tried to use the additional editor concepts in tab caching as below.
    Looping is stopped and throws warning message in the same tab.
    All the changes are saved successfully only when the enter button is clicked once in the main screen, else the changes are not saved and my previous value remains.
    Anybody have an idea on how we can use Additional actions in Tab caching concepts.
    Thank you,
    Arun

    Hi Kranthi,
    When i try to save the fields which i merged from different tab is not saving.
    Please find the below details.
    Green highlighted fields are custom fields which is merged from different screen like header or item overview screen. This is handled in script button.
    Red highlighted fields are merged from different tab like shipping or sales using tab caching concept.
    While changing the value of the fields which is merged from different tab , and press ENTER then it throws the Warning message if occurs.
    After warning message, if i try to save using the script button for copying all the custom fields which is merged from different screen , pasted it to their respective screens and also saved.
    Its working fine.
    When i try to save it before pressing ENTER button then the respective changes had made in the merged fields from different tab are not reflected.
    How we can handle this issue?
    Thank you,
    Arun

  • After Showing ERROR message make the field editable in subscreen.

    Hello Experts,
    I have a requirment where i have added a subscreen to the standard screen of ME31K for creating the contract. In my Subcreen i have my custom screen fields that i'm updating in EKKO table through include structure.
    Now if user forget to fill the details in my custom fields in the subscreen then i'm giving the error message prompting the user to fill the value in fields.
    But the problem is the screen is locked there itself i want to make the field editable so that user can enter some value in the fields. I can not use the stuatus or information message here because doing this i will get the item overview screen which should not come as i want to restrict the user to header details only and fill all the custom fields.
    Please provide me with your helpful responses.
    Thnaks,
    Naveen

    Hi Naveen,
    Sorry for the delay.
    The code which I gave for popup, i hope its being shown in an IF . . . ENDIF.
    So in that condition u can add the following :
    IF < ur condition >
       < Call message FMs >
        SET SCREEN SY-DYNNR.   "this would set screen to current screen which is 0201
        EXIT.
    ENDIF.
    Other than this if you like you can set some parameters in the PAI of this screen which redirect to current screen based on some conditions.
    So u can manually set OK-CODE and CALFCODE as SPACE, but i dont know how much this can impact the process.
    So please follow the above code.
    This is available in
    Main Program     SAPMM06E
    Source code of   MM06EF0F_FCODE_CALL
    IF OK-CODE EQ SPACE AND
       CALFCODE EQ SPACE.
      SET SCREEN SY-DYNNR.
      EXIT.
    ENDIF.
    Hope this helps.
    Regards,
    Ateet

  • How to show warning message in am

    How to show warning message in am but not Stop , it still can go ahead.
    Thank you very much.

    jamras ,
    If i got you correct you wanna show user a list fo warnings after that have occured in some method in AM, and show them to user collectively, and the processing of the page should not stop in the above. What you need to do for it, is instead of throwing warning message in AM, collect all warnings in a arraylist or vector. when you navigate back to CO, iterate through this arraylist/vector and for each use pagecontext.putDialogmessage(oaexception).In this way you will be able to show all warning messages on page and your processing will not stop!
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Create warning message at the time of order creation

    I am looking for a  solution :- "Create warning message at the time of order creation/save if a cc is assigned in the settlement rule that crosses the company code of the order or where the company code of the plant for the order is different from the company code assigned to the cc"

    The txn code : IW32 (maintenance order) , this warning message for settlement rule creation using Cost center as a settlement receiver.  If the used cost center is belongs to some other company code, said warning message should occure.
    I tried user exit, field exit, also used std message control (KO-458).  Nothing is working.

  • How to load a warning message in the sub_VI in a true 'case' statement.

    I wrote a sub virtual instrument (sub_VI) containg a case structure in which a warning message is supposed to be shown only when a case is true, and this works fine by itself alone. However, when I put this sub_VI in the main VI program, the warning message doesn't come up even when the case under sub_VI is true. Is there any way to show this warning message even with the sub_VI under the main VI ?

    By default, sub VI's do not open their front panel when run. If you are putting your warning message on the front panel, then the message will appear when the VI is run on its own (as the main VI) but not when it is run as a sub VI.
    If you use one of the dialog functions such as the "One Button Dialog" fromt the "Time and Dialog" menu, then the message will appear even if used in a sub VI.
    The other option is to right click on your sub VI and set it's properties to open when run and close again afterwards.
    Rob

  • Warning message on the portal

    Hi,
    We are able to get error message on the cProjects portal using the method MESSAGE_ADD of class CL_RPM_MESSAGE_SERVICES by passing type E. But when i try to pass type W or I for warning or information message it does not show up on the portal. How do we display a warning message on the cProjects portal.
    Regards,
    Simmi

    the warning message worked in another method

  • FB70 why does system show warning message "enter true account assignment" ?

    FB70 why does system show warning message "enter a true account assignment object with revenues" ?
    i enter profit center but i still get warning message "enter a true account assignment object with revenues" 
    what should i do ?
    my  system have CO-PA .

    Dear,
    Please see that the profit center which you are entering in FB70 must have segment.
    still it gives warning message do worry enter it will post the transaction.
    bsrao

  • How do I enable the low ink warning message on the HP 7520 e all in one printer

    How do I enable the low ink warning message on the HP 7520 e all in one printer? Or is it even available on this model?
    This question was solved.
    View Solution.

    ccardwell,
    Welcome to the HP Forum.
    The following Assumes a Recent Windows Operating System is installed on your computer...
    The Photosmart 7520 allows you select when you would like to receive Ink Alerts:
    Right Away -- as soon as there is a need for attention
    Only when you initiate a print job
    The Full Feature Software installation procedure places the Printer Assistant shortcut on the Desktop.
    Install Full Feature Software – Photosmart 7520
    Open the Printer Assistant  shortcut > tap on the Estimated Ink Levels icon (along the top ribbon) >
    Toolbox opens > Select tab Advanced Settings >
    Under Show Alerts > CHECK desired setting
    Click Close
    Click the Kudos Thumbs-Up to show you appreciate the help and time from our Experts.
    Although I strive to reflect HP's best practices, I do not work for HP. 
    Click Accept as Solution when the Answer is a good Fix or Workaround!
    Kind Regards,
    Dragon-Fur

  • HT1848 i  Authorize my apple 4s in to my computer,but my phone non syncing to my computer, the warning message is , the phon colld not synced because this computer is no longer autherise for purchased item that are on this iPhone., wat i do??

    I  Authorize my apple 4s in to my computer,but my phone non syncing to my computer, the warning message is , the phon colld not synced because this computer is no longer autherise for purchased item that are on this iPhone., wat i do??

    Well Authorize the Computer...........

  • Warning Messages to the log

    Hi Experts,
    I want to send a warning message to the order log , for this I used
    CALL FUNCTION 'CRM_MESSAGE_COLLECT'
            EXPORTING
              iv_caller_name = 'ORDER'
              iv_ref_object  = iv_guid
              iv_msgno       = 002
              iv_msgid       = 'ZMSG'
              iv_msgty       = 'W'
              iv_cumulate    = 'X'
            EXCEPTIONS
              not_found      = 1
              appl_log_error = 2
              OTHERS         = 3.
    MESSAGE ID 'ZMSG' TYPE 'W' NUMBER '002' .
    But the problem is order is not saving at all, I want order to be saved and the warning message to be in the log.
    Please help me out in this.
    Thanks in Advance,
    Praveen

    I am using it in the BADI_ORDER_SAVE, when I do not add this message to the log the pop up message is coming out fine.
    In this FM if I send E to iv_msgty ,its working fine too.The problem is coming only for warning messages.
    Your time in replying to this thread will be appreciated.
    Thanks in Advnace,
    Praveen

  • I tunes won't open. No warning message, just the first terms agreement opens and when i agree itunes stopes running. I just wiped and reinstalled everything including windows. I updated everything fully. Deleted spybot unintalled and reintalled new

    I tunes won't open. No warning message, just the first terms agreement opens and when i agree itunes stopes running. I just wiped and reinstalled everything including windows. I updated everything fully. Deleted spybot unintalled and reintalled the newest and one older version of itunes. still nothing. I tried to delete some files that is hidden as directed by apple. I have been trading emails with customer support but it has been no help at all. I am running Windows XP. Before i wiped my computer I ran itunes with no problem, on this computer, this week.

    WOOOOOOOOOOOO!!!! JUST WANTED TO UPDATE Y'ALL THAT BY SOME STROKE OF HEAVENLY GLORY, ITUNES DECIDED TO WORK AGAIN!!!
    WOOOOOOOOOOOOOO!!!
    How did I do it you ask??
    after all the stuff I updated you about, I tried one last time to install....still didn't work...so once again I wiped my system of everything itunes and apple related
    well today I was trying to watch a video that required me to get the quicktime plug in, and it too me to a page that was a quicktime install + itunes 7.blah blah blah instead of the other way around
    well, don't ask me why, but low and behold
    IT WORKS!!!!
    I HAVE MY ITUNES BACK!!! (JUMPS FOR JOY)
    Just wanted to share my shear elation

  • Can we save the warning message in the message log of Lead.

    Hi,
    I have an requirement where i have to raise an warning message while "creation of lead from campaign" on campaign UI, I can raise that warning message using below code.
    DATA lr_message_service TYPE REF TO cl_bsp_wd_message_service.
    lr_message_service = cl_bsp_wd_message_service=>get_instance( ).
    lr_message_service->add_message( iv_msg_type = if_genil_message_container=>mt_warning
    iv_msg_id = 'ztest'
    iv_msg_number = 006
    iv_msg_level = '1' ).
    but how can i retain this warning message in the lead message log ? "when ever i will open that lead again that warning message should be there"
    thanks & regards
    raman khurana.

    Hi,
    Below are the steps to write to the log and then read it,
    1. Create a Log useing FM BAL_LOG_CREATE. This will return the log handle.
    2. Add messages to log using FM BAL_LOG_MSG_ADD. Importing parameters are log handle and the message.
    3. You can read the log by passing the log handle to FM BAL_GLD_SEARCH_MSG. This will return the message handle.
    4. Now pass the message handle to FM BAL_LOG_MSG_READ. This inturn return the message id and class. Pass the msg. details to FM BAL_DSP_TXT_MSG_READ to read the message text.
    Regards,
    Arun Kumar

  • Warning messages with the option to continue or cancel

    I am fairly new to the world of JSF and I need to have the ability to present a warning to the user, and allow them the option to continue or to cancel. I need to do this via a message on the page with a link rather than a javascript alert box. The basic usability would be this, the user uses the webapp to create an object, they can then go in and edit the object, while editing they have the option to delete the object, the "delete" control is a button. If they click on this button, I need a way to warn the user but allow them to continue anyway. Currently we have a facility to add a warning to the page, but what I would like to do is add a link or even a button to that page that will allow the delete to take place. Does anyone have any ideas? I've spent quite a few hours on google and haven't found anything similar to what I'm trying to do. The inability to use javascript has been dictated to me, so that is not an option.

    Try this...
    Create two similar "submit" buttons. The only difference is that one will reload the current page, with your warning message displayed. The second will actually execute the delete action.
    When the page is first viewed, the first button will be rendered and the second button will not be rendered. You can facilitate this using the rendered attribute on the commandLink or commandButton, and then tying that to a boolean variable in the backing bean.
    When the first delete button is clicked, you perform the necessary action to display the warning message, flip the rendered boolean, and return the same page again. The page will be reloaded, this time with the second button rendered and the first button not rendered.
    When the second delete button is clicked, you perform the delete, flip the boolean again (especially if your backing bean is in session scope!) and return the user to the appropriate page. If the user chooses cancel, then remember to flip the boolean again.
    Hope this helps!
    CowKing

  • HT4623 when i doing my update my ipad 3 why the itunes show this message ? (the ipad could not be restored this device isn't eligible for the requested guid ) what can i do now please reply urgent thanks

    when i doing my update my ipad 3 why the itunes show this message ? (the ipad could not be restored this device isn't eligible for the requested guid ) what can i do now please reply urgent thanks

    Make sure you have the latest software on your computer (tap to enlarge image)

Maybe you are looking for

  • Comapring Records in ResultSet  ,Issue of Performance

    Hi, i got a Table on which I am calling select ,and getting the resultset as in which some of the rows will Have first column value as same ,but subsequent columns may have data or null Values.I want to club all the values for same First Column Value

  • Had to try and reinstall printer... Error message... HELP!

    Hi, Im having trouble with my HP Officejet Pro 8600. I had to reboot my internet, therefore my printer has stopped working. I connected it to the new wifi i created but it still wouldn't work. I decided to uninstall. I put the CD back in to reinstall

  • Win 7 upgrade

    On my ideapad s10-3t I am using windows 7 starter at the moment but I would like to upgrade because of the better tablet support. I am in posession of a windows 7 32 bit retail version. What exactly do I have to do during the upgrade if I 1. don't wa

  • User Exit for Updating Plant

    Hi, I've got a requirement in user exit MV45AFZZ where i need to update field VBKD-KDGRP when a plant is changed in VA01 or in VA02.I wrote a logic for creating the VBKD-KDGRP getting this from Z table based on the plant entered......and automating t

  • Customer service? Be a person of your word

    I have been a customer for over 13 years with AT&T I have been going through the hassles of trying to get customer service to tell me the truth. It's that simple. Promise of return call by "manager or supervisor" are nonexistent. What does it take to