Displaying Messages to the user

Hi,
1. I have created one webDynpro application in which in default view I am using a tabStrip which contains 4 tabs.
2. 4 different view are associated with these 4tabs.
3. I am using messageArea UIElement in each view.
4. But if I try to display any message using wdComponentApi.getMessageManager().reportSuccess(), it displays the same message in each view.
5. So if I navigate through the tabs, it shows me same message in each & every view.
6. I don't want to display the same message in another views.
How to resolve this problem?
Thanks in Advance

To display an error message:
wdComponentAPI.getMessageManager().reportException("Your Error Message", false);
To display an warning message:
wdComponentAPI.getMessageManager().reportWarning("Your warning Message");
To display an success message:
wdComponentAPI.getMessageManager().reportSuccess("Your success Message");
This works in an iview other than do modify view.
if you are using another Java file, you need to pass
com.sap.tc.webdynpro.progmodel.api.IWDComponent wdComponentAPI
from your iview to use this messages in your application in that file.
Thanks & Regards,
Mohak

Similar Messages

  • Error in sql server with a trigger (I want to display a customize message, when the user left a blank field or null) How can I do?

    How I display a customize message(with a trigger)when a user left a blank field? I want to the stop the insert statament if the user left  the status field in blank. I create a trigger but now I can't enter a row, i used an instead trigger
    too but doesn't work. I want to display a customize message when the user left the
    status field in blank or null. 
     I have the following code:
    CREATE TRIGGER [dbo].[BLANKFIELD] 
    ON [dbo].[Status] 
    FOR INSERT 
    AS 
    BEGIN 
    IF (SELECT COUNT(*) FROM inserted WHERE Status IS NULL) =1
     PRINT 'Please Fill the Status  field is required'
    Rollback;
    END 

    I agree with other comments that you should do this with specifying that the column is NOT NULL to prevent it from being NULL and a constraint if you don't want it to be blank (spaces or the empty string - note that the empty string is not the same thing
    as NULL).
    But for completeness, the reason your trigger does not ever allow you to enter a row is the code
    IF (SELECT COUNT(*) FROM inserted WHERE Status IS NULL) =1
    PRINT 'Please Fill the Status field is required'
    Rollback;
    Since you don't have a begin/end block after IF, the only conditionally executed statement is the one immediately following the IF (that is the PRINT).  So the Rollback is always executed whether or not the IF is true and so all updates are rejected.
    So if you were to do this in a trigger you could do something like the following
    CREATE TRIGGER [dbo].[BLANKFIELD]
    ON [dbo].[Status]
    FOR INSERT
    AS
    BEGIN
    IF EXISTS(SELECT * FROM inserted WHERE Status IS NULL)
    BEGIN
    PRINT 'Please Fill the Status field is required';
    Rollback;
    END
    END
    (As José noted, there can be more than one row in the inserted pseudo table, so you don't want to test whether the COUNT = 1, instead just whether one or more rows exist where the Status  is null.  If you want to prevent Status is NULL, or all
    spaces, or the empty string, then your IF statement would be
    IF EXISTS(SELECT * FROM inserted WHERE ISNULL(Status, '') = '')
    Tom

  • Dipalying message to the user to update to the latest version of the flash player.

    Hi all,
    In my latest application I am using flex functionality which
    is supported only in the latest version of the flash player. So my
    task here would be to display a message to the user for upgrading
    to the latest version of the Flash Player. I have tried working on
    it but didn't find any solution.
    Anybody who has worked on the similar issue can please help
    me out.
    Thanks in advance.

    In Menu, Project, Properties, Flex Compiler, ensure "Use
    Express Install" is checked, and FB will generate this code for
    you.
    Tracy

  • Oops! An untagged string (assertion failed!) got thrown far enough that we display it to the user. T

    After installing the latest update to Lightroom 5, I started getting this message when I started Lightroom:
    Adobe Photoshop Lightroom 5[4407]: Oops! An untagged string (assertion failed!) got thrown far enough that we display it to the user. This shouldn't happen.
    From what I've found through searches, plugins may be related to the problem.
    The problem I'm having here is the lack of any information - no crash log, no reference to what caused this - in any log file.  I've taken the most recently installed or updated pugins and moved them elsewhere to test and am still getting this message.
    I assume that when I see "This shouldn't happen" as a message from the software, that it's a significant warning.  What can go wrong / is going wrong as a result of the related problem?  Is my data in danger?
    All help gratefully appreciated.

    Off.line wrote:
    Thanks for your thoughts, Rob.
    You're welcome .
    Off.line wrote:
    The few times I wrote something like this, I dumped as much data as I could somewhere to facilitate the debugging process and it's a bit dissappointing that there seems to be no such output.
    No such output enabled for users. I'm sure the developers have some way of debugging..
    Off.line wrote:
    I wonder what the output of the -tracebacks switch would be.
    It shows the error in context (I've done it before, but it was a long time ago) - what Lr was doing when error occurred. For example, if plugin was executing, it would show that.
    Off.line wrote:
    I'm not familiar with the .agprefs file
    It's where Lr stores preferences - see your presets folder (location is accessible via a button in Lr preferences dialog box: "Show Lightroom Presets Folder..."). Look in 'Preferences' subfolder. It's the source of some aberrant behavior sometimes..
    Off.line wrote:
    my catalog is backed up in two places, on two separate devices.  But if there's corruption within the catalog, then the backups are bad, too.
    If you've been using Lightroom's built-in catalog backup feature, then it creates a new backup each time, so old backups, if not yet deleted, may not have same problem as newer backups. But I think we're getting ahead of ourselves now.
    Rob

  • Message to the user

    Hi ,
    I need help on below requirement.
    We maintained batch managment and SLED for materials. System should send a message to the user when a particular material is not used morethatn 30 days ( Compare with posting date )
    How to acheive this.
    Pl reply
    Thanks
    A.Gururajan

    Hi,
    This requirement can only be met through ABAP Development.
    Better ask your user to run report MC46 and generate the list of Slow-Moving Items for last 30 days.

  • How do I display an informative message to the user on Oracle Forms?

    I have been asked to create a database trigger to fire when a user tries to update a column with existing data in it. If the column however has no data in it then the user can update the column with a value.
    I tried using the RAISE_APPLICATION_ERROR technique but somehow no message shows up on the frond end of the form when a user tries to update a column with existing data in it. The rest of the trigger works fine. It does not allow a user to update a column with existing values in it, yet it allows user to update column with no values in it.
    My problem is displaying a message that reads like this :''Column value must must be 100 "
    Here is parts of my code.
    CREATE OR REPLACE TRIGGER trigger_name
    IF :NEW.ATTRIBUTE2 IS NOT NULL AND :NEW.ATTRIBUTE2 <> NVL(:OLD.ATTRIBUTE2, :NEW.ATTRIBUTE2) THEN
    RAISE_APPLICATION_ERROR(-20002, 'Column value must must be : ' || :OLD.ATTRIBUTE2);
    END IF;
    Now i have tried this the syntax below. It does bring up a message on the front end of the form but it is not the message i have in mind.
    IF :NEW.ATTRIBUTE2 IS NOT NULL AND :NEW.ATTRIBUTE2 <> NVL(:OLD.ATTRIBUTE2, :NEW.ATTRIBUTE2) THEN
    FND_MESSAGE.set_name('FND', 'Column value must
    be '|| :OLD.ATTRIBUTE2);
    FND_MESSAGE.set_token('MSG', 'r21_AP_INVOICES_TRIGGER()
    exception: ' || SQLERRM);
    FND_MESSAGE.RAISE_ERROR;
    END IF;
    Does anyone has any idea?
    thx

    Unfortunately I do not have access to the Form properties. I was only asked to write a trigger to prevent a user from updating a field with data in it, and displaying a message saying that the user cannot update such a column when the user tries to update such a column.
    I know that changing the form properties might be an easier option, but unfortunately i have to everything with the help of a trigger
    Message was edited by:
    user644929

  • Display error message on the user profile modification page identity system

    HI All,
    I have created a workflow for chang attribute for email id. I have associated an external action to th workflow id which will check the emailid uniqueness in OID.
    When an end user login to OAM user manager and clicks on update my profile, use can see a button with modify request beside email id. when user modifies email id and save the changes, we are able to display email id already exist message in the next page of user profile. but we need to display the message on the same page.
    Can any one help us.
    Thanks in Advance.

    You can do this using java script throwing an alert popup or you can check if the fields are initial in oninputprocessing and fill a variable like gv_error = 'Enter values of mandatory fields.' and display the same in layout using
    <phtmlb:messageBar id = "messageBar"
    type = "<%= gv_severity_str %>"
    text = "error"/>
    See this thread for more..
    How to display error messages in bsp page
    search the forum before posting a new thread....

  • Error handling and the resulting messages to the user

    Hi all.
    I have a question about displaying error messages from custom callback classes.
    I've written my own PasswordValidation class, and when the user's password doesn't pass validation, I throw an AMException with the text of the specific reason the password was invalid.
    I see this in the stack trace in the identity log files, but in the GUI from Self Reg, all I get is a generic "An error occurred while storing the user profile."
    Is there a way to have my specific error message be the one displayed to the user? The generic one doesn't give the user much to go on as far as what needs to be fixed.
    I'm using Identity 6.1 on Solaris.
    Thank you for your time.
    chris

    As a followup, if the user account is created via the console, not through self reg, the appropriate error message does appear to the user. So it seems like just Self Reg isn't picking up the error messages from the callback classes.
    Thanks!
    chris

  • Problem in displaying messages in the status bar

    Hi all,
    I have a custom form and whenever user clicks on the save button after entering any data in it, i would like to display a message in the status bar(as like in standard oracle forms).
    I got the following solutions from some Guru's but it dint worked.
    Sol 1: Setting the CONSOLE WINDOW property of the form to the custom window name.
    I tried it and got the following error while compiling the form.
    FRM-40735: ON-ERROR trigger raised unhandled exception
    ORA-06508
    In my ON-ERROR trigger i have the standard code
    APP_STANDARD.EVENT('ON-ERROR');
    sol 2: writing the following code snippet in POST-INSERT or POST-UPDATE trigger
    clear_message;
    message('Data Saved', NO_ACKNOWLEDGE);
    synchronize;
    With both the solutions i dint get any positive output.
    Is there any other suggestions ?
    Thanks in Advance.
    Praveen

    A hack: at the end of init() put
    ActionListener hack = new ActionListener() {
    public void actionPerformed(ActionEvent evt) {          showStatus("My status message"); }
    new javax.swing.Timer(1000, hack).start();
    Then 1000 milliseconds after init() completes it'll display your message.
    There's got to be a cleaner way but if you're satisfied with this, great.
    Michael

  • How can I post a simple message in the User Forum's page, immediately after logging in ?

    I had earlier asked a question re: including Merriam-Webster online dictionary into the list of search engines in the text area to the right of the location bar. I received a very helpful answer from cor-el, using which, I was able to include both the Dictionary and Thesaurus into the said list.
    I WISH TO THANK core-el SINCERELY FOR THIS HELP.
    The question is as follows:
    How can I post such messages directly in the Users Forum's pge?
    - - S.Rajaram

    what is your requirement can you please confirm.
    Regards
    Shobhit S

  • Web Site Display Language - Allowing the user to chose the language

    I have created a web site that allows the user to display the page in the language of the users choice.
    Windows Internet Explorer and FireFox both allow the user to select a language option, and the web page will display the text in that language.
    Safari on the Mac does not allow the display to be changed.
    I have used the System Preferences - International option to select the language that I would like to use. The operating system menus and other options display as expected.
    Safari does not.

    I have created a web site that allows the user to display the page in the language of the users choice.
    What is the website?

  • I have selected 'Show on edit details page' for the property 'Status Message' for the User Profile Service, yet i do not see the property.

    I would like to have the ability for the user to edit the property 'Status Message'.  In the properties it says that it should be available in the details section however I am not seeing it there.  Does anyone know if I might have something set
    incorrectly or is this expected behavior.
    Steven Albrecht
    University of Colorado Denver
    Steven Albrecht

    Hi Steven, 
    For this issue, I'm trying to involve someone familiar with this topic to further
    look at it. 
    Thanks,
    Eric Tao
    TechNet Community Support

  • Your scummy Firefox hangs when it arbitrarily decides to update its version. Why not have it send a popup message warning the user so they can close gracefully and safe their work?

    1) This site sucks beyond belief. I tried to click on the "About" button to findthe current version of Firefox and couldn't find it.
    When I came back here, the text I had entered in this window had vanished.
    LEARN HOW TO F*CKING PROGRAM.
    2) The *original* problem was that I was surfing and suddenly the whole computer went very slow, with Firefox altogether unresponsive. I lost some work. WHY DON'T YOU WARN THE USER AND ALLOW THEM TO CHOOSE WHEN TO INSTALL UPDATES?

    Have you considered the Flash update which was released a few days before the Firefox 3.6.14 update may be a big part of this problem?
    Try re-installing the 10.1 r102 version of Flash and see how it Firefox is.

  • Help Pls, How to display feedback messages to the user on 10.1.3

    Hi, can anybody explain how to use the <html:messages> tag and the SaveMessages( request , ActionMessage ) on an 10.1.3 ADF application?
    There is not such a logic on the ToyStore sample and my requests for help on this thread "Internal Error" on saveMessages(...) has been ignored ....
    Omar

    Chris,
    The following thread should give you some insight on how to migrate your 10.1.2 Struts + ADF application to 10.1.3: reportErrors(PageLifecycleContext ctx) not called
    If you are not ready to migrate, you can also develop in JDeveloper 10.1.2 and deploy to 10.1.3. The documentation to do so should be available shortly.I will repost when it becomes available.

  • CRM :B2B: Want to display Message in the Order Basket: at Item Level

    Hi all
      I wanted to add some Message for every Product(item) being added into the Order Basket of the B2B (E-Commerce) application.
    Hopefully i found a Badi at the ABAP Layer (CRM_ISA_BASKET_ITEMS) and implemented the interface CHANGEITEMS_BEFORE_IL(code added to display a sample text).
    I am successful in adding TExt at the Top of the Basket. But my requirement is to add the Text for every Product present in the Basket !!!!!
    Any Help please !!!!! 
    Many Thanks
    KK
    Message was edited by: KK

    Hi
      Go to COMM_PCAT_ADM.Select Catalog type Both and choose details screen.Select S5 Text determination procedure for items.
      SPRO>CRM>BASIC FUNCTIONS>TEXT MANAGEMENT>DEFINE TEXT DETERMINATION PROCEDURE>SELECT THE ROW WITH A TEXT OBJECT>PCAT_CTY>DIALOG STRUCTURE CALL UP THE PROCEDURE AREA.Select the row with text determination procedure s5 ,In the dialog strurcture ,call up the definiton of procedure area.Select text type.
    I hope it helps

Maybe you are looking for

  • When installing new software, remember you MUST backup your data.

    This is from my own personal FAQ on my own website, but given the number of people who find themselves in a lurch with Snow Leopard, I had to post this again as a reminder for those not privy enough to find it by internet search engines, or look thro

  • ORA-12052 when create materialized view

    I following the sample in Oracle document to create materialized viewCREATE MATERIALIZED VIEW LOG ON sales    WITH ROWID, SEQUENCE(amount_sold, time_id, prod_id)   INCLUDING NEW VALUES; CREATE MATERIALIZED VIEW LOG ON times    WITH ROWID, SEQUENCE (t

  • Exporting photographs from iPhoto 6 without thumbnails

    I have a Blaupunkt Lucca Navigator which can read secure digital cards with tiff or jpeg photographs. If you export photographs from iphoto 6 to a secure digital card you export each photo twice: one normal photo readable by the Lucca navigator and a

  • Error in DHCP log

    anyone know what this means: "missing option dhcp slp service scope" or "missing option dhcp proxy auto discovery url Any ideas?

  • Oracle UDDI Registry -- Calendar

    Hey all, I'm currently looking into options for interfacing html db with ocs calendar via web services. However, it appears that the link that html db supplies for the Oracle uddi api is dead (http://otn.oracle.com/uddiapi/inquiry). Is this link out-