To find out the last row that is updated in a View Object

Hi OAF Gurus,
I have requirement like,
I have to find out the last row that is updated on a particular View Object and I have send a mail to the users about the change.
JegSAMassMobVOImpl vo = getJegSAMassMobVO1();
JegSAMassMobVO is the View Object Name and it displays certain rows that has already been added to the VO in the Page.
Now the issue is when a user updates a particular row,I have to find which row gets updated and have to send a email to that particular employee about the change.
Just want to know,how to find out the last updated row in a particular VO.
Any Help would be appreciated as this a immediate requirement.
Regards,
Magesh.M.K.
Edited by: user1393742 on May 4, 2011 1:06 AM

Hi Magesh
It shoud be a Advanced table ,so when user will update the row ,the specific row will fire the PPR and on that event u can capture the row using row reference ,this is the sample code below
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean); OAApplicationModule am =
(OAApplicationModule)pageContext.getApplicationModule(webBean);
String event = pageContext.getParameter("event");
if ("<ItemPPREventName>").equals(event))
// Get the identifier of the PPR event source row
String rowReference =
pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
Serializable[] parameters = { rowReference };
// Pass the rowReference to a "handler" method in the application module.
262
am.invokeMethod("<handleSomeEvent>", parameters);
In your application module's "handler" method, add the following code to access the source row:
OARow row = (OARow)findRowByRef(rowReference);
if (row != null)
Thanks
Pratap

Similar Messages

  • Finding out the last event that occurred?

    Hello,
    Would anyone know how I can find out programmtically what was the
    last event that occurred? For example, I want to know if the
    delete-record event has been generated (via user clicking on
    delete record item). I tried the system variables but none seem
    to do the trick.
    Thank you,
    Sam Al-Droubi
    null

    So you do have a column to sort by (I didn't mean that it had to be an inserted date,just that there had to be some column to sort by).
    Using analytic functions (generally more efficient)
    SELECT *
      FROM (SELECT e.*, rank() over (order by empno asc) rnk
              FROM emp e)
    WHERE rnk = 1Using "old fashioned" SQL (generally less efficient)
    SELECT *
      FROM emp
    WHERE empno = (SELECT MIN(empno) FROM emp)Justin

  • From my own session how to find out the last SQL that I issued ?

    Why does the query bellow that would return the last sql issued only work on 10g version ?
    Notice the output:
    SQL> select * from v$version;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
    PL/SQL Release 9.2.0.5.0 - Production
    CORE 9.2.0.6.0 Production
    TNS for IBM/AIX RISC System/6000: Version 9.2.0.5.0 - Production
    NLSRTL Version 9.2.0.5.0 - Production
    SQL> select sql_text from v$sql where hash_value = ( select prev_hash_value from v$session where
    sid = (select sid from v$mystat where rownum = 1));
    SQL_TEXT
    select sql_text from v$sql where hash_value = ( select prev_hash_value from
    v$session where sid = (select sid from v$mystat where rownum = 1))
    SQL> conn system@prod
    Informe a senha: *******
    Conectado.
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bi
    PL/SQL Release 10.2.0.2.0 - Production
    CORE 10.2.0.2.0 Production
    TNS for IBM/AIX RISC System/6000: Version 10.2.0.2.0 - Productio
    NLSRTL Version 10.2.0.2.0 - Production
    SQL> select sql_text from v$sql where hash_value = ( select prev_hash_value from v$session where
    sid = (select sid from v$mystat where rownum = 1));
    SQL_TEXT
    select * from v$version
    SQL>

    Peter, what version are you using ?
    Everybody, our query seems to work only on 10g version. Notice the output bellow:
    SQL> select * from v$version;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
    PL/SQL Release 9.2.0.5.0 - Production
    CORE 9.2.0.6.0 Production
    TNS for IBM/AIX RISC System/6000: Version 9.2.0.5.0 - Production
    NLSRTL Version 9.2.0.5.0 - Production
    SQL> select sql_text from v$sql where hash_value = ( select prev_hash_value from v$session where
    sid = (select sid from v$mystat where rownum = 1));
    SQL_TEXT
    select sql_text from v$sql where hash_value = ( select prev_hash_value from
    v$session where sid = (select sid from v$mystat where rownum = 1))
    SQL> conn system@prod
    Informe a senha: *******
    Conectado.
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bi
    PL/SQL Release 10.2.0.2.0 - Production
    CORE 10.2.0.2.0 Production
    TNS for IBM/AIX RISC System/6000: Version 10.2.0.2.0 - Productio
    NLSRTL Version 10.2.0.2.0 - Production
    SQL> select sql_text from v$sql where hash_value = ( select prev_hash_value from v$session where
    sid = (select sid from v$mystat where rownum = 1));
    SQL_TEXT
    select * from v$version
    SQL>

  • SQl to find out the last  business day of a given week

    Can any one please let me know what will be the SQL to find out the last business day (monday-friday) of a week?
    Edited by: 863997 on Oct 6, 2011 10:40 AM

    Assuming for "this week" that you want "last week Friday," then here is the SQL:
    TIMESTAMPADD(SQL_TSI_DAY,-1,TIMESTAMPADD(SQL_TSI_DAY, DAYOFWEEK(CURRENT_DATE)*-1, CURRENT_DATE))
    If you want the "nth" business day of the month, click on this link here:
    Re: calculation of Business day in OBIEE

  • How to find out the user iD that previously deleted?

    Hi,
    My client has deleted some user ID in SBO v2004b. HOwever, when the client did that, he forgot to "deselect" the license that granted to the users going to be deleted. What's worse, he forgot the user ID that he deleted.
    It makes the license available decrease. So, how can i find out the user ID that i previously deleted? Or any method to retrieve the correct number of license originally. ?
    Thanks for your advice

    Hi,
    Have a look at the FAQ weblog, Missing licence topic:
    /people/ibai.pea/blog/2006/07/26/sbo-faq
    Regards,
    Ibai Peñ

  • How to find out the JVM thread that is consuming high CPU

    I am using WL 10.3, JRockit JVM on Linux. I have taken thread dumps. How to find out the JVM thread that is consuming high CPU?
    I know how to map it Sun JVM on Solaris. I haven't done in on JRockit so far. Please advise.

    Check out some of Marcus Hirt's blog entries for details about how to use JRockit Mission Control. It's a very nice tool that should provide a lot of insight:
    http://blogs.oracle.com/hirt/

  • How to find out the last date & time on which a program has been run

    Hi Experts,
    Can anybody tell how to find out the last date on which a purticular program has been run.
    Valuable answers will be rewarded.
    Thanks & Regards,
    Satish.

    Hi!
    Try STAD transaction. Unfortunately it contains a huge amount of data, so it is available only for a few days backwards... Maybe some weeks, but you can't make yearly reports from its data... So it's not useful to see, which program is in use or not...
    I planned once to download it weekly, but it was not so important...
    Regards
    Tamá

  • How can i find out the last 5 numbers dialed without having the phone

    how can i find out the last 5 numbers dialed without having the phone

    log into your myverizon account,go to detail useage

  • How can i find out the last time a back up to icloud was done

    How can i find out the last time a back up was done to icloud?

    Go to Settings>iCloud>Storage & Backup.  It will be shown just below the Back Up Now button at the bottom.

  • HT201303 How can I find out the ip address that logged into my account?

    How can I find out the ip address that logged into my account?

    Open Airport Utility. You should find it in there under the Internet tab.

  • How to find out the last time login for a locked login account?

    In ASE 15.4,there are many login account show as locked and unlocked. How to find out the last login time for those locked login account?

    Thank you.  The version of my ASE is 12.5.4.
    This is what I got from select * from syslogins: 
    suid status accdate totcpu totio spacelimit timelimit resultlimit dbname name password language pwdate audflags fullname srvname logincount procid
    1
    30 2 10/25/2012 11:41:10.430 AM 0 0 0 0 0 . . ... us_english 02/24/2.0.08 12:55:38.640 PM 0 [NULL] [NULL] [NULL] [NULL]
    this is what I got from exec sp_displaylogin 'mylogin':
    1 Suid: 46                               
    2 Loginame: mylogin   
    3 Fullname: FN LN
    4 Default Database: mydb
    5 Default Language: us_english   
    6 Auto Login Script:    
    7 Configured Authorization:   
    8 Locked: YES                              
    9 Date of Last Password Change: Apr 17 2010  2:36PM    
    10 Password expiration interval: 0            
    11 Password expired: NO                               
    12 Minimum password length: 6            
    13 Maximum failed logins: 0            
    14 Current failed login attempts:    
    15 Authenticate with: AUTH_DEFAULT                     
    which one is for last login time?

  • How to find out the user list that created by someone?

    Hi all:
    Now I want to develop a program that can find out the user list created by someone.
    such as :
    John create 3 user in SAP ,they are u1,u2,u3.
    Susan create 2 user in SAP , they are s1,s2.
    I input the the parameter such as John , the program can give me the list :u1,u2,u3.
    Could you tell me which table should I use in this program?
    Thanks .
    Elisa.

    Hi Ling,
    As per my understanding, you are looking for listing down the number of Users created by a particular users of the System. Like a System Administrator has created some 30 users. If this is correct, then you can use the table
    USR02 - Logon Data (Kernel-Side Use). This table has 2 fields which are of importance - BNAME - User Name in User Master Record & ANAME - Creator of the User Master Record. You can query the ANAME with the username of the system and you will get the resultant users.
    But I would reccomend to search the Table for a standard class, function module or RFC or BAPI so that you can reuse the same and need not to develop from the scratch.
    Hope this will help.
    Thanks,
    Samantak.

  • How can you find out if another VI running on the same computer and how can you find out the name of that VI?

    Suppose that several VIs running simultaneously on the same computer. How can I find out the names of the running VIs, from another VI?
    If the already running VIs are clones of the same basic VI, open and run with the option "Prepare to call and forget", how can I find out the names and index of each clone? 

    I had an application where I spawned (= ran with Start Asynchronous Call) multiple (reentrant) copies of VIs, and would occasionally "lose control" of them.  I needed a way to find all VIs that were running "Top Level" and stop them (so I didn't have to log off from Windows).
    I used the Application Property "All VIs in Memory" to get an array of (wait for it ...) All VIs in Memory.  I took each name, opened a VI reference to it (simply wire the name string in, as the VI is, by definition, "in memory"), looked at its VI Execution State, and if it was Run Top Level, Invoked the FP.Close and Abort VI Methods.  [To prevent the VI that did all this from "committing Suicide", I compared the name string with the current Call Chain, and did nothing if there was a match].
    I think you could adopt this idea to do what you need.
    BS

  • How to find out the Last line of a page in Smart forms

    Hi Experts,
    I need to find out the <b>last line of a page in smartforms</b>.
    I have <b>Heading in a text element</b> and its <b>text in another text element</b>.
    If the heading falls in the last line, its contents will be displayed in the next page. I want to print the heading  in the next page.
    Please advise on this issue.
    Thanks in advance,
    Viven

    You can put both the heading and contents in a Folder node and check the page protection checkbox of the Folder node.  This way both will be displayed on the same page always.

  • How can I find out the device name that has downloaded certain apps, someone else is using my iD to download stuff and I want to know who it is.

    let me know what i can do to find out.

    You can stop that someone by changing your password. You can not find someone, not really unless after you change password, that someone will come to you and ask for it.

Maybe you are looking for

  • How use flex sdk 3.5 Action Script-3 code in flash builder 4.5............???

    hiiiiiiiiiiiiiiiiii can i use my flax sdk 3.5 action script-3 code into flash builder 4.5 .....if yes so plz give me detail how??..with step....

  • Cover Flow has disappeared!

    hi everyone. ok, So i couldn't run Sharepod with my ipod, so i deleted the 'ArtworkDB' file from my ipod directory (big mistake not backing that file up like usually would) NOW ALL THE ARTWORK ON MY IPOD HAS VANISHED! over 400 hundred albums GONE!!!!

  • From stereo to computer

    Is there any way I can stream music from my stereo to my computer using Airport Express. I have connected AE to an existing network.

  • Very Urgent: TCODE IE02: attachment of equipment at a specified position

    hi all While maintaining equipment location using tcode IE02, I need to maintain a check to ensure that if an equipment gets attached to a superior  equipment at a particular position then the system should not allow for any other equipment at that p

  • Just trying to Sample

    Just trying to listen to a sample or listening to anything in my library has come to a complete halt. Anyone else having this problem after downloading the new version?