How to find out if I navigate out of the page

Dear gurus,
I need to replicate ‘Warn about changes’ functionality in a certain case.
In my case page A displays view object VO1 in a tabular form, each record having a link in column ‘type’ that takes navigation to page B.
On page B the user changes the type to a new value using a pick list and submits a page B, then clicks Apply button that takes him back to page A with the new value for type brought from page B.
Now page A has a new value for type. Not committed yet. I need to show a warning popup message (similar to seeded ‘Warn about changes’ message) if a user navigates out of page A now.
I am thinking about using javascript to show the popup message. I will use the condition whether VO1 is dirty or not. But I don’t know how to track the fact that I navigated out of page A. Does anybody know how to find out is navigation out of the current page did occur?
Thank you
Anatoliy

Hi,
as there are links on the table from where you are navigating...set the fireaction property to fire an event say
"click". grab that event in contoller.
Controller code:
String name = (String)pageContext.getParameter("event");
if("click".equals(event))
this means you are navigating out of page A.
now invoke a method in AM to check if VO is dirty or not and if it dirty then throw an exception on page rather than pop_up.
String check = (String)am.invokeMethod("checkvodirty");
if("dirty".equals(check))
throw new OAException("The Transaction is dirty",OAException.ERROR);
else
navigate to page B using pageContext.setForwardurl().
In AM you can write :
public String checkvodirty()
sapeEAAddressesVOImpl addr = getsapeEAAddressesVO1();
String test = "";
if(addr.isDirty())//this checks that VO is dirty
test = "dirty";
else
test = "notdirty";
return test;
Thanks,
Gaurav

Similar Messages

  • How to find block free space  and PCTUSED FOR THE TABLE

    HI all,
    Due to performance issues for my database , my management ask me to reset the PCTUSED and PCTFREE values , and my doubt is
    1)How to find the current PCTUSED and PCTFREE values.
    2)How to find block free space and PCTUSED FOR THE TABLE.
    Please help me out regarding this.
    Regards,
    Vamsi.

    1)version is 10.2.0.4
    2)output of query
    tablespace extent_management allocation_type segment_space_management
    SYSTEM     LOCAL     SYSTEM     MANUAL
    UNDOTBS1     LOCAL     SYSTEM     MANUAL
    SYSAUX     LOCAL     SYSTEM     AUTO
    TEMP     LOCAL     UNIFORM     MANUAL
    USERS     LOCAL     SYSTEM     AUTO
    UNDOTBS2     LOCAL     SYSTEM     MANUAL
    INS     LOCAL     SYSTEM     AUTO
    CONFTBS     LOCAL     SYSTEM     AUTO
    REINS     LOCAL     SYSTEM     AUTO
    ANALYST     LOCAL     SYSTEM     AUTO
    BI     LOCAL     SYSTEM     AUTO
    INTRFC     LOCAL     SYSTEM     AUTO
    COGNOS     LOCAL     SYSTEM     AUTO
    TS_INDX     LOCAL     SYSTEM     AUTO
    TS_CHOLAWEB     LOCAL     SYSTEM     AUTO
    TS_DASBOARD     LOCAL     SYSTEM     AUTO

  • How to find  a concurrent request's responsibility of  the FND user

    How to find a concurrent request's responsibility of the OA user who submitted?
    For example, I have a concurrent request id: 123, I know user A submitted,
    I want to know user A's Responsibility when submitting the request id: 123.
    Thanks

    Hi,
    I'm not sure about this, but can you check whether FND_CONCURRENT_REQUESTS.RESPONSIBILITY_ID provides you with the RESPONSIBILITY_ID of the user from which the request is triggered ? If yes, joining this with FND_RESPONSIBILITY_VL.RESPONSIBILITY_NAME can give you the name of the executing responsibility.
    Regards,
    Rakesh.

  • HT1338 Can anyone tell me how to find what OS I'm using on the Mac? Tiger or Leopard? Also, how do I update from 10.6.8 to the latest version?

    Can anyone tell me how to find what OS I'm using on the Mac?
    Tiger or Leopard?
    Also, how do I update from 10.6.8 to the latest version?

    Go to the Apple menu and select "About This Mac". You will get a window similar to this one -
    You current OS X version number will be shown as I've marked.
    OS X 10.4.x is Tiger, 10.5.x is Leopard, 10.6.x is Snow Leopard, 10.7.x is Lion, and 10.8.x is Mountain Lion.
    Whether or not you can go to the latest OS X version depends upon your hardware -
    You will need to purchase the retail set for the OS X version you want; there is no pint in getting and installing any intermediate versions. Once the retail version has been installed, you can update it to the latest release for that version via download updater.

  • How to find bpel instance in 11g based on the index values

    We have 10g BPEL process where we define 4 index values for all the instances. Whenever support request comes, we ask index values and based on that we search the process instance.
    We have migrated this 10g bpel process to 11g now. How to find bpel instance in 11g based on the index values ???

    I have multiple bpel in my composite. I checked in ci_indexes table and it shows the instance number of the bpel process. But the em console is showing only the composite instance number. when I opened composite instance, I could see all the bpel process with instance number in the audit trail. How can I find the the actual composite instance number that I should search for in the em console ???

  • How Can I know about any change happened in the page??

    ........... I Use JDev 11g ........
    How Can I know if any change happened in the page???
    for example:
    I have a page and I press a creation button that create a new row in view object I want when I press any button that will call another page the page ask a user Are you want to save changes? before leaving a page.
    Or
    I edit the value in a view object but not committed ( I didn't commit the data in database ) . When I want to leave the page I want to display a message say : Are you want to save changes?
    How can I do that?
    Thank You...
    Sameh Nassar

    Check out http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html Example 60. Do not go by the 'on page load' name... This approach will allow you to plug in your custom code at any 'phase' of your adf life cycle. You can capture any request coming from your page, and check for pending transaction states and act accordingly.. I realize that the reply is a little abstruse, but this is not a drag-drop-smile requirement.. :-)
    http://download.oracle.com/docs/html/B25947_01/bcdcpal005.htm#sm0271
    Julian

  • How do I add scripts in order to make the page compatible with all the browsers.

    How do I add scripts in order to make the page compatible with all the browsers.

    As Jon says, please be more specific about "don't line up right"
    I notice you are inserting some arbitrary <BR> tags which will cause very unpredictable displays with varying user viewports and text preferences.
    <P>In 2008-2009, Families Forward benefited 278 homeless Philadelphia families, <BR>
      including 834 children. Families Forward assisted 1,413 stranded travelers, including <BR>
      235 children. In the first 6 months of 2009-2010, from July 1, 2009 to <BR>
      January 1, 2010, Families Forward assisted 185 homeless families and 220 <BR>
      stranded travelers.</P>

  • How to find stolen iPad . With out moble me

    Is there a way to lock an IPad that had not yet had moble me find my iPad installed.

    These links may be helpful.
    How to Track and Report Stolen iPad
    http://www.ipadastic.com/tutorials/how-to-track-and-report-stolen-ipad
    Reporting a lost or stolen Apple product
    http://support.apple.com/kb/ht2526
    Report Stolen iPad Tips and iPad Theft Prevention
    http://www.stolen-property.com/report-stolen-ipad.php
    How to recover a lost or stolen iPad
    http://ipadhelp.com/ipad-help/how-to-recover-a-lost-or-stolen-ipad/
    How to Find a Stolen iPad
    http://www.ehow.com/how_7586429_stolen-ipad.html
    Apple Product Lost or Stolen
    http://sites.google.com/site/appleclubfhs/support/advice-and-articles/lost-or-st olen
    Oops! iForgot My New iPad On the Plane; Now What?
    http://online.wsj.com/article/SB10001424052702303459004577362194012634000.html
    How to Find Your iPad Serial Number
    http://www.ipadastic.com/tutorials/how-to-find-your-ipad-serial-number
     Cheers, Tom

  • How to find whether user exits are  used in the query or not??

    Hi ,
    I have to make the list of queris in which user exits are used.
    Please any body help me how to find the queries in which user exits are used.
    Thanks
    Maruthi

    Hi Maruthi,
    Using table RSZGLOBV you can find out the queries that have customer exit variables.
    Set filter VRPROCTP (processing type) = 3 means customer exit.
    and the field COMPID will give you the Query name.
    Best Wishes,
    Mayank

  • The address book window will go out of focus then skew off the page?

    i'm on a mac G4 400 mhz running 10.3.9. when i scroll down the page of the address book window the anames will go out of focus and then skew off the page! wacky. can i reinstall a new addressbook from mac? i recently bought a 15.2 powerbook which has tiger 10.4 something but it will not install into the old G4. any ideas? or solutions?
    400 mhz powerPC G4   Mac OS X (10.3.9)  

    fiddledum,
    Welcome to Apple Discussions.
    I would recommend that you check out Font Management in Mac OS X Tiger and Panther, by Kurt Lang.
    Another possibility is to Quit Address Book, find the com.apple.AddressBook.plist in the ~Library/Preferences Folder. Drag it to the Desktop, and log out/in or restart.
    Attempting to install a newer version as you have discovered will not work.
    ;~)

  • How to find most cost-effective fwdg agent at the time of shipment creation

    Dear Friends,
    I have a requirement of realizing the best cost effective transporter(forwarding agent) in the shipment document. Then how to do using the Transportation functionality of the ERP?
    There is a scenerio like I want to transport my goods from L to M. In system say i have a route XX for that, which gets automatically determined in the shipment document.
    Now on route XX, if i have 5 operative transportors, say A, B, C, D, E.
    Transporter A - provides services km-wise, kg-wise, fixed price as well as truck wise
    (Say if you opt for km-wise, charges are 15 rs/km, 10 rs/kg, fixed price of 15000 for full truck from A to B)
    Transporter B - Similar to Transporter A with different charges
    (Say if you opt for km-wise, charges are 18 rs/km, 7 rs/kg, fixed price of 14500 for full truck from A to B)
    Similarly other tranporters also have their charges.
    and Now at the time of shipment creation, how can i have some standard method, so that the system suggest the most cost effective transportor for my delivery ie. shipment i want to make or probabaly if there is some standard way to get the list of all available transporters on a given route at the time of shipement creation.
    Please suggest.
    Regards,
    Dipti.

    Hi Sandeepan,
    Thanx for ur reply.
    As per my requirement, there might be say 100 routes existing into the system and each route might have say 10 different transportors available. Now they want to know 1) the list of transportors available on the given route - (run time at the time of shipment creation) to be put into the forwarding agent field 2) Of the available (say 10 transportors) who will be the best/cheapest.
    As per your suggestion, the functionality helps after we put in the fwdg agent and then estimate his associated cost. But as in this case, since there are so many routes (associated so many transportors) they will not know whom to put in the field.
    Hence want to know if there is some standard functionality of SAP which might help us i) identifying the list of transportors on a particular route or a given criteria - run-time ii) How to find the best among available OR i) SAP Directly suggesting the one and best transportor available on a given route.
    Please help.
    Regards,
    Dipti.

  • How to find from which table we r fetching the data

    Hi friends,
    i got a requirement to design a query,in my transfer rules i check the info object related to the fiels.but in my crm the field name is different.
    how to find from which table the field is fetched........
    please tell me........
    Regards
    sridath

    Dear Sridath,
    In ST05 switch on the SQL Trace.
    Goto RSA3.
    Give your DataSource name > Execute
    Goto ST05...Switch OFF the Trace
    Analyze the Trace file
    Gives you details about the fields and Tables from where you are fetching.
    OR
    Goto LBWE
    Find your DataSource > Maintenance > Display mode
    In right side window...expand ALL list box...
    Exclude MC and take other words...they are the Source Tables.
    Regards,
    Ramkumar.

  • How to find what are triggers are present in the database?

    Hi All
    Can any one tell me how to find what all triggers present in the database.
    Thanks in Advance

    Hi All
    Can any one tell me how to find what all triggers
    present in the database.
    Thanks in AdvanceYou should visit Pythia, the Oracle of Delphi, near Thermopile in Greece. She might be able to give you an answer. Pythia was an early leader in executive decision support systems and is not to be confused with the Oracle Corp. of Redmond, CA. Pythia also has a group of helpful colleagues in Toronto. Rumor is that they're also making predictions by inhaling laurel vapors. SQL, as you know, stands for "Said Quixotically on Laurel".

  • How to find indirect evaluation wage types exist in the system

    Hi Experts,
    How can we find indirect evaluation wage types exist in the system ( including customer wage type).
    Thanks in Advance.
    Regards,
    IFF

    Hi,
    All indirect SAP defined wage types starts with " / " (slash).
    Indirect Cm wage types will be the name defined as per by the cm but should not start with slash..
    Copy the SAP defined and use them.
    Regards
    Nima

  • How to find which junk characters are there in the string

    Hi Guys in my employee table ,I have a field name emp_name
    and the data inside one of the record is 'BUSH ';
    after trimming it ... length(trim(emp_name)) ... I expected the length to be 4,but it still returns 5.So I am wondering what that extra characters after H is.
    Can some one tell me how to find it.
    thanks in advance.

    Hmmm. What you describe is not the behaviour I would expect from a CHAR(10) column. I would expect this:
    SQL> CREATE TABLE bt (col1 CHAR(10));
    Table created.
    SQL> INSERT INTO bt VALUES ('BUSH ');
    1 row created.
    SQL> SELECT length(col1) FROM bt;
    LENGTH(COL1)
              10
    SQL> SELECT length(trim(col1)) FROM bt;
    LENGTH(TRIM(COL1))
                     4
    SQL> What version of the database are you using? Also, what does this query give you?
    SELECT ascii(substr(ename, 5,1))
    FROM emp
    WHERE  substr(ename,1,4) = 'BUSH';Cheers, APC

Maybe you are looking for

  • BAPI_PO_CHANGE not updating internal order no. in account assignment

    Hi, I am using 'BAPI_PO_CHANGE' to update the internal order no. I am first fetching the existing account assignment line items using 'BAPI_PO_GETDETAIL1' and then modifying the internal order no. as below.         lt_poaccount-orderid = '31002100000

  • Name and device

    Hi , I hope someone has an answer to the following question: I have a pseudo device that will create 24 minor node (in the attach () : for (i=0; i<25;i++) { ddi_create_minor_node(...) ) That will create: /dev/ddd0 /dev/ddd1 /dev/ddd24 My question is:

  • MDM Server on Linux, Console on Windows - status is "stopped"

    We installed MDM (SRM-MDM) on a Linux systems with MaxDB. The server itself seems to run fine: Starting:  - Thu Dec  4 12:47:52 CET 2008 Linux mdmtest 2.6.16.60-0.33-xen #1 SMP Fri Oct 31 14:24:07 UTC 2008 x86_64 x86_64 x86_64 GNU/Linux core file siz

  • How come no drives are shown on Lion/Mac OS X 10.7.x's desktops anymore?

    Hello! I have been using old Mac OS X 10.5.x and 10.2.x for many years, but noticed 10.7.x/Lion do not show connected/mounted drives anymore on desktop. I do see them in Finder, but that's annoying now. Why did Apple change this design? Thank you in

  • First Time Passes

    I have a query that returns a list of top performers based on the number of modules they have accessed and passed. It shows how many modules passed even if they have taken more than 1 attempt to pass. I want the report to be able to show the number o