Show popup message if data is modified while moving to other screen

Hi,
We are using Jdeveloper 11.1.1.4.0,
If any data is modified in the current page and without clicking save button, we have to show a message like ‘Do you want to save the modified data’,
while navigating to another page or closing the browser.
How do we get to know whether the data is modified or not?
Regards,
Vijay
Edited by: Vijayakumar Palanisamy on Dec 1, 2011 10:35 PM

Hi,
There is an out of the box behavior that understands the uncommitted data when leaving the page.
It is the uncommitted data behavior
http://www.oracle.com/technetwork/developer-tools/adf/unsaveddatawarning-100139.html
However, this is a warning that will not commit any values.
In order to do that, you have to do it manually, as far as I know ofcourse.
One way is to get the Application Module, get the Transaction and check if it isDirty.
If it is, show a custom popup with what ever you want.
You can apply this in all the cases of navigation you want.
Regards,
Dimitris.

Similar Messages

  • How to show popup message in jpanel when mouse is moved over some area

    i have made a bar graph for my database in jpanel. now i want to show the proper data in popup when user moves mouse over apprpriate bar in jpanel. i would like to know is there is any way to do this. i need help as i m new in the field of java. i am making birthday remainder service for user. i am using j2se.

    i want to show the proper data in popup when user moves mouse over apprpriate bar Sounds like you want to use a tooltip. Is your "bar"
    a) a real component ?
    If so, then just use setToolTipText(...) method
    b) a graphical drawing?
    Then you will need to convert the mouse coordinates and display a tool tip based on the coordinats. The SwingSet example that comes with the JDK has an example of this:
    change to directory: j2sdk1.4.2\demo\jfc\SwingSet2
    then execute >java -jar SwingSet2.jar

  • My email Box show blank messages with date 31/12/00.This bug passed my 3GS to 4S.How can i fix this?

    My email Box show blank messages with date 31/12/00.This bug passed my 3GS to 4S.How can i fix this?

    My email Box show blank messages with date 31/12/00.This bug passed my 3GS to 4S.How can i fix this?

  • Display popup message on SRM portal

    Hi,
    I need to display a popup message on the SRM portal while doing a PO confirmation. Can you please guide me how to do it?
    Do I need to modify the templates or can it be done using a BADI?
    Thanks in advance.

    Hi,
    Try using CHANGE badi.
    See these related threads also for more pointers:
    Error in pop up (dialog box)
    Customized Pop-up window in Shopping Cart
    POPUP window in shopping cart during Order
    BR,
    Disha.

  • Display popup messages

    hi,
    i am using adf11g,jdeveloper 11g.in form i drag and drop one vo.
    in that form,for one attribute which is used as LOV,i have written valuechangelistener method.
    in that method i wrote some code for validaiton.when validaiton occur i am able to show popup messages regarding particular error.
    when any validaiton occur,popup message is coming,but my data is partially submitting to form after showing that error message.
    it should not submitted to form in case of any error.
    please give me the solution.
    IN JSFF page
    <af:panelFormLayout id="pfl8" fieldWidth="100" labelWidth="150"
    binding="#{GLPolicyBean.bindFormEvent}">
    <af:inputListOfValues id="GlstpAcDesc"
    popupTitle="Search and Select: #{bindings.GlstpAcDesc.hints.label}"
    value="#{bindings.GlstpAcDesc.inputValue}"
    label="#{bindings.GlstpAcDesc.hints.label}"
    model="#{bindings.GlstpAcDesc.listOfValuesModel}"
    required="#{bindings.GlstpAcDesc.hints.mandatory}"
    columns="#{bindings.GlstpAcDesc.hints.displayWidth}"
    shortDesc="#{bindings.GlstpAcDesc.hints.tooltip}"
    autoSubmit="true"
    partialTriggers="GlstpGlCode"
    valueChangeListener="#{GLPolicyBean.glACDescChanged}">
    <f:validator binding="#{bindings.GlstpAcDesc.validator}"/>
    </af:inputListOfValues>
    </af:panelFormLayout>
    in glpolicybean.java
    public void glACDescChanged(ValueChangeEvent valueChangeEvent) throws TransactionException{
    // Add event code here...
    System.out.println("account desc new value----------->"+valueChangeEvent.getNewValue().toString());
    String accDesc=valueChangeEvent.getNewValue().toString();
    System.out.println("account description1----------->"+accDesc);
    System.out.println("account desc old value----------->"+valueChangeEvent.getOldValue());
    ADFUtils.setBoundAttributeValue("GlstpGlSubcd", "");
    XBSystemMastersServiceImpl systemImpl=(XBSystemMastersServiceImpl)ADFUtils.getDCBindingContainer().getDataControl().getDataProvider();
    ViewObjectImpl glPolicyAddVO=systemImpl.getGLPolicyAddVO1();
    try {
    for (Row row : glPolicyAddVO.getAllRowsInRange()) {
    String accDesc1 = (String)row.getAttribute("GlstpAcDesc");
    System.out.println("account description1----------->"+accDesc1);
    if (accDesc.equals(accDesc1)) {
    throw new TransactionException("A/C Desc already entered for this setup");
    }catch (TransactionException e) {
    JsfUtils.addContextMessage(JsfUtils.getStringFromBundle("A/C Desc already entered for this setup"),FacesMessage.SEVERITY_WARN); }
    thanks in advance,
    Edited by: sravanthi on Dec 14, 2011 6:12 AM

    Hi,
    Try using validator.
    See
    http://docs.oracle.com/cd/E17904_01/apirefs.1111/e12419/tagdoc/af_inputListOfValues.html

  • Closing the browser without popup message

    Hi Experts,
    I refered the following thread and done the below steps
    1.Create a Button called Exit.
    2.Create an action for this button.
    3. In the event handler for this button, write the following code:
    String Url;
    try {
    Url = WDURLGenerator.getWebResourceURL(wdComponentAPI.getComponent().getDeployableObjectPart(),"close.html");
    wdThis.wdGetAtpEmpDetailsWinInterfaceViewController().wdFirePlugExitPlug(Url);
    } catch (Exception e) {
    wdComponentAPI.getMessageManager().reportException("Technical Exception occured in the application : " + e.toString(), true);
    4.Create a html page called u201Cclose.htmlu201D with Javascript code for closing a browser window.
    5.Place this html page in SRC -> Mimes -> Components -> Project Structure(Create this folder and place the html page in this folder)
    I have used Ie 7.0
    My questin is when i clicking the button. It show popup message like
    "Do you want to close this window " I don't want this popup.
    without popup i need to close this window? How to do that?
    Regards,
    Manivannan P

    Hi Manivannan p,
    1.Create a Button called Close.
    2.Create an action for this button.
    3. In the event handler for this button, write the following code
    You can try this
    public void onActionClose(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin onActionClose(ServerEvent)
    WDPortalEventing.fire("urn:com.sapportals:navigation", "CloseWindow", "");
    //@@end
    This will help you closing the window with out Popup
    Here we are calling a "Portal Event" called " CloseWindow" to close the windoe
    Get back if you have any questions
    Thanks & Regards
    Swetha

  • How to display a popup message in query (through process chain)

    Hi Gurus,
    I need your help.
    I have an input query that triggers an event (through a button) and runs a process chain.
    I would like to show a popup message to inform the user when the process chain is over.
    Using function modules I've been able to show popup messages in the workbench, but I want to display this message directly in Bex Analyzer 7.0.
    Thanks
    Gabbo

    Hi,
    I'm also looking for a solution to display a custom message in the Bex Analyser at logon.
    Using function module in the logon user-exit works but only when loggin to the workbench.
    I don't want to use SM02 (which works in both cases) because I need to display a variable message depending on the user.
    If someone has an idea, I'll really appreciate.
    Best regards and happy New Year to all of you.

  • I want popup Message when i successfully update the data

    Hi Expert
                    My requirment is update the data in the database using Bapi.I successfully update the data in the database.when i successfully update the data it will show the popup message.whether is it possible please tell me how to do it..urgent.
    Regards
    Sundaresan

    Hi SUNDARESAN BALARAMAN,
    Given link explains the steps to develop the Pop up iView in Visual Composer.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9c/ffdb4269b2f340e10000000a1550b0/frameset.htm
    Please have a look.
    Regards,
    Prashant.
    Please do rewards points for useful answers.
    Edited by: Prashant Jagdale on Jan 23, 2008 5:48 AM
    Edited by: Prashant Jagdale on Jan 23, 2008 5:50 AM

  • I have the latest downloadable version of LR5.  It crashed while it was createing 1:1 previews during an import. After a Win7(64) restart, it shows a message that LR needs to quit because it can't read the preview files and it will try to fix it the next

    I have the latest downloadable version of LR5.  It crashed while it was createing 1:1 previews during an import. After a Win7(64) restart, it shows a message that LR needs to quit because it can't read the preview files and it will try to fix it the next time is launches.  I get the same message the next and every subsequent time it launches so I can't launch LR at all now.
    I get that the preview file got corrupted somehow.  Is there some way to fix this problem without building a new catalog?

    Use Windows Explorer to open the folder containing your catalog. You will see a folder with the extension .lrdata. You need to delete that folder and then start Lightroom again. Lightroom will generate a new previews folder.

  • When connected to my Ford Mondeo, my ipod nano can be controlled through interface.  But after while it comes up with message 'loading data' and then freezes.  Anyone else got the issue?

    When connected to my new Ford Mondeo, my ipod nano can be controlled through user interface in car.  This worksd most of the time, but after a while if I try to change the music or search, it comes up with message 'Loading Data'.  I then have to pull out USB and reinseert, at which point it works again.  Has anyone esle expereinced this/have a solution?

    Does not matter if anyone else has this issue.  You need to contact the Ford dealership.  It's their product you are having problems with. 
    If you really want to know if anyone else has this issue, post on Ford's Mondeo message boards.  It's where the Ford car owners hang out.

  • While trying to run it show error message : "The application or DLL C:\Program Files\Mozilla Firefox\sqlite3.dll is not a valid Windows image. Please check this against your installation diskette

    Just updated firefox. While trying to run it show error message : "The application or DLL C:\Program Files\Mozilla Firefox\sqlite3.dll is not a valid Windows image. Please check this against your installation diskette." Tried to download and install new firefox, but it alway show that the file is corrupt
    == Today ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)

    Do a clean reinstall and download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.
    Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    You can skip the step to create a new profile, that is not necessary for this issue.
    See http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • TS4585 When I am restoring backup data for my iPhone 4 in the end of back up restore it show error message " back up can't be restored" , please advice what I can do to restore my backup

    When I am restoring backup data for my iPhone 4 in the end of back up restore it show error message " back up can't be restored" , please advice what I can do to restore my backup

    That usually means that there is something wrong with the backup and it cannot be used.  You can try restoring the backup again, but if you continue to get the same message all you can do is restore to a different backup, if you have one.

  • Hello, I have creative cloud installed on my Mac Book Pro - OS X 10.9. 5 When trying to download trial version, a popup window shows the message " you have been disconnected"  Connect to continue. No way to access to the download programs after entering t

    Hello, I have creative cloud installed on my Mac Book Pro - OS X 10.9. 5 When trying to download trial programs, a popup window shows the message " you have been disconnected"  Connect to continue. The same message comes after repeated attempt to entering the login and password info. How can I solve this?

    Hi Jeff,
    Here is the screenshot of the window which comes after any attempt to download a trial version.  It is in French, it means you have been disconnected, connect to continue.

  • My iPhoto is not working, it quit unexpecly and it shows this message- The application "iPhoto" unexpectedly quit while trying to restore its windows.  Do you want to try to restore its windows again?

    i can't open my iPhoto, it was working very slow and now its not working at all, when i try to open it it shows this message: The application “iPhoto” unexpectedly quit while trying to restore its windows.  Do you want to try to restore its windows again?
    how can i fix this problem?

    There are 9 different versions of iPhoto and they run on 10 different versions of the Operating System. The tricks and tips for dealing with issues vary depending on the version of iPhoto and the version of the OS. So to get help you need to give as much information as you can. Include things like:
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. As full a description of the problem as you can. For example, if you have a problem with exporting, then explain by describing how you are trying to export, and so on.
    - History: Is this going on long? Has anything been installed or deleted? - Are there error messages?
    - What steps have you tried already to solve the issue.
    - Anything unusual about your set up? Or how you use iPhoto?
    Anything else you can think of that might help someone understand the problem you have.

  • How do I show and hide a popup message by the program

    Hi,
    I've the following problem. Sometime the program must wait to open a seriel port. On slow machines, this could take some seconds.
    During this time I'll display a popup message with the message "please, be patient....".
    After the port is open, the message should be hide by the program.
    JOptionPane could be good, but without a "OK" button. Everthing should be controlled by the program.
    I would implement the Runnable interface for the showing of the popup message.
    Any ideas? Thanks in advance.
    Hans

    You can use a JDialog... this will act like JOptionPane, but you can put on it whatever components you like... so no OK button!
    For example:
    JDialog dialog = new JDialog(parentFrame);
    dialog.add(new JLabel("Please be patient", BorderLayout.CENTER);
    dialog.pack();
    dialog.setLocation(100,100);
    dialog.setVisible(true);
    dialog.setVisible(false);

Maybe you are looking for