Row Status Question

Hi,
I'm creating a custom page in OAF, and I have a question about row status. I am curious to know if there is a way to determine if a row has been committed to the database yet or if it is just sitting in the cache.
Basically, we have a 1-1 relationship between two tables. When a user tries to a new record in table B, it must be associated with an existing record in table A. When the user goes to the create page for table B, a new record is immediately created (per the examples in the toolbox tutorial) and the user can enter data and select a record from table A to associate with, via an LOV.
If a user tries to create a new record in table B using a record in table A that already has an existing association, our client would like us to move them to the already existing record in table B. If we do this, we'd need to discard the new record we originally created so that it does not get entered in the database.
I'd like to know if there's a way to tell if a row has just been created or if it is a row that was already present on the database. My concern is that a user could sequentially select any number of records from table A that may or may not have an association, so I'd like to be able to tell which rows should be discarded as they go.
I'm imagining a user goes to the create record page for table B does something like the following while deciding which record from A to associate with:
1) Select record from A with no association -> use new record for B.
2) Select another record from A that has association -> move to existing B record, check if record from step 1 is new: if so - discard it, if not - ignore it
3) Select another record from A that has association -> move to other existing B record, check if record from step 2 is new, if so - discard it, if not - ignore it
So, I just want to know if it's possible to tell whether a record is new or one that comes from the database.
Any suggestions will be greatly appreciated!
Thanks!
John

You can use getEntityState() on EO object to get the status of the row. It returns one of the following:
STATUS_NEW - the entity object is new in the current transaction
STATUS_DELETED - the entity object originated in the database, and has been deleted in the current transaction
STATUS_MODIFIED - the entity object originated in the database, and has been changed
STATUS_UNMODIFIED - the entity object originated in the database, and has not been changed, or it has been changed and those changes have been committed
STATUS_DEAD - the entity object is new in the current transaction and it has been deleted
STATUS_INITIALIZED - the entity object is in a "temporary" state and will not be posted or validated

Similar Messages

  • PO row status

    Hi all
    How is it possible to trace Purchase Order Item row status to know the SAP User who updated to manually Close Purchase Order Item Row?
    We would like to know such result at one listing to see all Purchase Orders and Item Rows affected by such Manual Closed Purchase Order.
    Kedalene

    Hi,
    Try this query:
    SELECT T2.DocNum,T2.[CardName],T2.[NumAtCard],T0.ItemCode,T0.Quantity
    , T2.UpdateDate, T2.[DocTime], T4.[U_Name] as 'UpdatedBy'
    FROM adoc T2
    JOIN ado1 T0 ON T2.docentry = T0.docentry AND T2.Objtype = '22'
    JOIN por1 T1 ON T1.docentry = T0.docentry AND T1.Linenum=T0.Linenum inner join OPOR t3 on t3.docentry = t1.docentry
    INNER JOIN OUSR T4 ON T2.UserSign2 = T4.INTERNAL_K
    WHERE T3.[DocManClsd]  ='y' and  T1.[TrgetEntry] is null and  T1.[LineStatus] = 'c' order by T2.DocNum
    Thanks & Regards,
    Nagarajan

  • Row Status from Client

    Is there a way to check a Rows status on the client side in an ADF Swing application in JDeveloper 10.1.2? I see that you can check it in the custom EntityImpl, but that doesn't help me on the client side. In our scenario, we have a JDatePicker component that we need to restrict the available dates after the users change the year value in a bound TextField. We only want to do this on a new row, however. So once the year field is changed on a new row, we want to call a client side method that restricts the available dates. Unfortunately, the date selection model of the date picker isn't bound, so we don't see a way to handle this scenario since we can't restrict it from the EntityImpl and we can't get the Row status from the client.
    Any suggestions would be appreciated.
    Thanks
    Erik

    Ok. So there doesn't appear to be a clean way of doing this in ADF. I can pecemeal something that seems to work using a PanelRowSetListener and some flags, but it isn't a very clean solution. This is something that an Oracle Forms developer would probably do in most projects. It's kind of hard for you guys to lure Oracle Forms developers to ADF if it's missing common functionality such as this. May we request an enhancement to the Row interface to allow it to actually return it's status in some future JDeveloper release?
    Thanks
    Erik

  • Row Status

    Hello all,
    I need to che the Row Status of a table to know if has been modified a "messageLovInput" item. No PPR event fires due to the fact I have disabled the "validation" property.
    Could anybody help me? Please it's very urgent and I'm getting crazy :-(
    Rosanna.

    Any idea?????
    I've tried to reset the "disable validation" to false (as default) so the LOV pops up, but when I tabbed out from the lov item, the processFormRequest of the page controller has not been called.
    Does anybody know how to trace the lovItem tabbed out? I mean before the lov region pops up.
    Thanks to anybody will answer me.
    Rosanna.

  • Tracking row status

    I have master detail setup real similar to a department employee setup. I'll use that as my example for simplicity. From the master page, user can select a button which will bring them to the associated detail row(s) page. There, the user can edit, create, delete rows. When finished, they have 2 options -- selecting OK button or selecting Cancel button. If they select the OK button, i want the changes/additions/deletions that were made to be stored temporarily until a commit is performed. However, if they choose the Cancel button, i want any changes made to these employee records undone, or reverted. I'm trying to use the framework to track the status of these rows, but it seems to come up short of the functionality i need. Here's a step by step example of the type of problem i'm having.
    1) User creates a new employee record on the details page. At this point, the status of the row is STATUS_NEW.
    2) User clicks OK, returning them back to the master page. The newly created row is still around.
    3) User goes back in to the detail page and creates another employee record. Now, I have two employee records, both with a status of NEW. If user clicks the cancel button after creating the second employee row, what i need is for the second row only to be deleted or removed, because the first row is temporarily saved because user selected the ok button after creating it. However, the code i have behind the cancel button iterates thru all the detail (employee) records and does a refresh(Row.REFRESH_REMOVE_NEW_ROWS | Row.REFRESH_UNDO_CHANGES) to remove those rows that were just created or to undo changes made to those rows since coming in to the page. The problem with this is that the first employee record still has a status of NEW because nothing has been committed, so it gets deleted/removed along with the second row that was created. Calling postchanges() behind the OK button isn't an option because these are detail rows in a one to many relationship, so obviously there can't be an insert of a child row without the parent row being saved first. Can i use the framework and this row status stuff to accomplish what i need, or am i going to have to write a bunch of my own code to keep track of row status? Thanks.

    Try this
    Change this in JS
    vAjaxRequest.add('AI_TEMPORARY_ITEM', pThis.value);To
    vAjaxRequest.add('x01', pThis.value);In the Application Process make following changes
    DECLARE
    NumRec number := 0;
    -- New line below. enquote_literal is to prevent SQL Injection
    vTemp   varchar2(4000) := dbms_assert.enquote_literal(apex_application.g_x01);
    BEGIN
    --NumRec:=issue_tracking_pkg.issue_status_exists(:AI_TEMPORARY_ITEM);
    NumRec:=issue_tracking_pkg.issue_status_exists(vTemp);
    htp.p(NumRec);
    -- htp.p(:AI_TEMPORARY_ITEM);
    END;Regards,

  • Matrix Row Status

    Hi
    I have a UDForm whith a Matrix in it.
    And i need to close the matrix row's as sales order
    are generated for the row data 1 sale order per row
    like for example a sales order when it is pratialy ivoiced
    Can i dataBind the row status to a UDF in a UDT
    some thing like the LineStatus in the RDR1 system table 'Sales Order lines'
    Thanks for any help you can provied
    Pedro Gomes

    If you mean that you want to gray out (disable) a line in a matrix, then I would say that it is not possible. But you can catch events on the matrix and prevent editing of your closed lines (if you forsee a 'state' field in your UDT).
    Maybe you can do something with the grid object, and use the collapselevel to visualize the difference between closed and open lines.
    regards,
    Jurgen

  • Front Row: two questions

    Hi,
    I have two questions to Front Row:
    1. Front Row have problems with playing video podcasts? Is this right so? I can't see video podcasts with Front Row
    2. Front row have problems with sleep mode of my iMac G5 20".
    When I use the Apple Remote to wake up my iMac from sleep mode, Front Row doesn't start here. I see only the Mac finder. Why?
    Sorry for my bad english.
    Greetings, Bernd

    Bernd, since your comp is still under warranty you may wish to give the online tech support a try -->HERE<--</a>. Click on the "Chat with a support agent" link.
    If you don't want to go that route, then I suggest that you call them over the phone. Hopefully, you have the AppleCare Protection Plan if your 90 day warranty ran out.
    Good Luck.
    G5 20' iMac w/iSight/Remote, 2.5GB RAM, 250GB HD Mac OS X (10.4) OS 10.4.3

  • Level 2 status question

    recently recieved an email welcoming me to level 2 and it begins with:
    Please include the line below in follow-up emails for this request.
    Follow-up: 11111111 (random numbers in place of actual ones in the email)
    I dont understand what this is..some type of id?  Thanks!

    shldr2thewheel wrote:
    Follow-up: 11111111 (random numbers in place of actual ones in the email)
    I dont understand what this is..some type of id?  Thanks!
    It's only for answering the email in case you have any questions or remarks about your status and so on.
    On that you should include that "follow up number" in the subject line of the eMail to identify the "follow up" mail and group all mails relating to you.
    It's like a ticket number on support mails.
    Lupunus

  • Play Status Question

    Hi I have what looks like a fast reverse symbol in my play status on my IPOD. I can't see whether it is playing or paused. does anyone know what this is and how to remove it?
    IBM   Windows XP  

    greetings everyone and a happy new year. am a new
    shuffle owner and after getting over the initial
    familiarization, ive come across a situation. in all
    of the documentation (online, print, forums)
    concerning battery light status, there ISN'T an
    implicit indication that both lights (top and bottom)
    will light up simultaneously when doing a battery
    check. so if anyone here could offer some
    thoughts/answers i would very much appreciate it. i
    understand that to check battery status you switch
    the shuffle on and off within 5 seconds, the shuffle
    will continue to play and the status light will
    indicate charge. my question is, are BOTH top and
    bottom lights supposed to indicate this or only the
    bottom (i.e. next to the on/off switch)? funny me but
    it struck me as odd that this morning only the bottom
    light showed battery status when i thought the top
    would. fyi, the lights on my shuffle work in every
    manner as its supposed to EXCEPT this battery status
    (either it doesn't or isnt supposed to). thanks very
    much beforehand.
    According to the manual:
    "...iPod shuffle has two status lights, one on the top and one on the bottom, that let you know when you’ve pressed a button, the state of the battery, that iPod shuffle is enabled as a disk, or if there’s something wrong... "
    HOWEVER, my experience is that same as yours: ONLY the LED next to the switch shows battery status. BOTH bottom and top LED light to show button pushes, etc...

  • Update VO row status to changed

    I have master - detail table.I select entry from master table and click modify to open rw detail table.
    I have status column in detail table (not rendered) and I would like to reset status of that column to changed
    when something is changed in that row.
    How can I do this?
    Tnx in advance.

    Hi,
    using ADF, you can add the status attribute to the tree binding (which is used as the table binding). Assuming the row you change is the current row inthe binding, you can access the current row of the iterator and set the attrubute on it calling setAttribute(String,Object)
    Frank

  • Duplicate row data question.

    Hello:
    I am working on displaying data from ms sql server onto a jsp. data contains metrics about number of views for each portal module/application.
    The back end SQL query gives me 5 columns -
    1.report_date
    2.unique users
    3.max_users
    4.module_name
    5.views
    I want to display (in the jsp) one set of row for each report date, but my resultset has multiple data for same date, each with different module_name and views. The other column data (2,3) is the same.
    I need to break "views" up under the appropriate module_name column and put there "views".
    Is there a way i can use hashmap or arraylist to load the resultset and then create one row per report date with various module_name and there views?
    Any useful input will be greatly appreciated.
    Jharsh

    Thanks Mchan, i think my question title is confusing.
    I don;t really have duplicate rows, my data has multiple rows but different data under column - module_name,views: for the same "report_date" , and i want to display these in one row for that report_date.
    jharsh
    This is what i am basically trying to achieve:
    report_date max_users max_concur_users module_name views
    06/02/2006 10 12 XYZ 6
    05/01/2006 13 9 ABC 7
    12/23/2005 11 7 EFG 9
    12/23/2005 11 7 HIJ 4
    I need to diplay this in the jsp in the below format:
    report_date max_users max_concur_users XYZ ABC EFG HIJ
    06/02/2006 10 12 6 0 0 0
    05/01/2006 13 9 0 7 0 0
    12/23/2005 11 7 0 0 9 4
    Message was edited by:
    jharsh

  • General 10.6.5 Status Question

    For the first time in perhaps 10 years, I held off installing an OS release with 10.6.4. The issues with 10.6.5 discussed in this forum caused me to delay installing it too.
    Can anyone give a current summary status of 10.6.5? Should I stay with 10.6.3 or upgrade?
    I know this is not a black-and-white question. I'm looking for some general comments. I have a pretty vanilla installation and use Time Machine.

    In my opinion, the issues discussed for the last two updates aren't materially different from the ones mentioned for any earlier updates. OS updates alway "break" some software & reveal faults in the design of a few hardware peripherals. Every update is at least slightly more demanding of the Mac's own hardware than the last (especially true of RAM) so an update sometimes will reveal a failing or out-of-spec part in the Mac itself. Users often do not know that they have some "special" software installed -- a lot of it is included in what appears to be normal or well-regarded software & that is infrequently documented in release notes or promotional literature.
    Of course, Apple does sometimes introduce an obscure bug in an update, & it must be considered serious if affects your Mac's usability, but that happens much less often than it seems from the reports claiming that here & elsewhere on the web. Many users jump to the conclusion that the update is the cause of their problems without considering anything other than that those problems became evident after applying it. (This is a logical flaw so common it has a nickname, +post hoc+, short for +post hoc; ergo propter hoc+, Latin for "after this; therefore because of this.")
    So part of it is that some users never check for any other cause. Another is that they diligently search for post-update reports of problems sounding like their own, which is relatively easy to do, but not for reports of no problems anything like their own, which is harder to do. (It can be done, for instance by wading through thousands of Discussions posts from users running the update asking about some minor issue or just for info about how to do something. Presumably, if they had serious issues, they would mention them.)
    This tends to feed on itself -- when one reads about a similar sounding post-update problem, it is only natural to post a "me, too" comment as well. Once enough of these posts appear, it is tempting to believe it is a widespread problem (& thus must be caused by the update) without considering that all those posts might represent only a very tiny fraction of update users or that there are many common causes that have nothing to do with the update itself that might be responsible for all the posts.

  • IdeaPad s400 battery status question

    Hi how do i know when the battery if fully charged when the laptop is turn off, the battery light indicator is always on the only way than i can know is touching the charger and if it is cold means that is fully charged.

    Hi Nick,
    Welcome to Lenovo Community Forums!
    I’m glad to inform you the status of the battery and its notifications have been explained in the image below for your S400 Laptop.
    Spoiler (Highlight to read)
    Do post us back for further queries.
    Best Regards
    Shiva Kumar
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • Work Order - TECO Status Question

    Dear All,
    Is there a way to indicate who performed the last accounting transaction with a Work order?
    For example, Who Teco'd the order and when it was Teco'd, etc..
    This allows me to create a report to show productivity of how many work orders being complete.
    Any suggestions will be greatly appreciated. Thank you!
    Mike

    Hello Michale
    From PP Stand point ,if you are looking at TECO of Production order with individual person did , U can use COOIS functionality seleting Sytem Status : TECO  and Give the Production Scheduler .There are lot of functionality u can use within date ranges, plant wise , material wise and u have the option to choose various lay out to generate report from COOIS.
    Hope this will solve your problem.
    Regards
    Jia

  • Front Row -- MBP, question?

    Hi,
    I have the following computer listed below...
    I also have a 22" LCD w/DVI connected to my computer... I have my computer setup so that my 22" extends the space of my MBP screen...
    But -- When I launch Front Row, it launches on my MBP screen, not the 22". So, each time I want to use Front Row, I have to goto Monitors, and change so that 22" is my primary display........ This is really annoying, is there more a simple fix, so that I don't have to change things like this every time I want to use Front Row? I want MBP to be set as my primary display, 22" extending my desktop, but launching Front Row on my 22" ...
    Help help appreciated..
    Thanks,
    J.

    Unfortunately, right now Front Row only displays in the "main" or "primary" screen. This is the one that is displaying the Dock and menubar. Since Font Row doesn't really have any preferences you can access to change the display screen, there's no way to change it now. If you want, in the Displays System Preferences, there's an option to "show displays in the menubar". This will give you a menubar option to "mirror" displays pretty quickly without opening the Displays System Preferences. Then you could open Front Row with the remote and it would display on both screens. But, there's no real simple way to change the primary display quickly or switch back.
    I might suggest you send Apple some Mac OS X feedback and suggest you'd like an option to select the display:
    http://www.apple.com/macosx/feedback/
    -Doug

Maybe you are looking for

  • Some HDV to DVD Screen Size Questions, Basic I know

    This is my first foray into HD of any kind, but I've been using FCP on and off since version 2. I'm importing from a Canon HV40 mini dv camera which uses HDV. The easy setup I'm using is HDV to ProRes - Canon-1080i60. Capturing works, but I was advis

  • WRITE AS RADIOBUTTON ?

    Hi, I want to display my table's one field as radio button. But not in parameters section. How can I write my table's field as radio button? Thanks.

  • UIX/JSP: bug of the tag uix:tabBar

    Please, can someone comment on the following behavior of the tag <uix:tabBar>: The UIX/JSP tag <uix:tabBar> is commonly used together with the <uix:link>. I cannot make the last one work in a more complex way but just using its attribute 'destination

  • Why does Dreamweaver CC (& 2014) keep crashing (not responding)

    Since I've gone with CC and now upgraded to 2014 it constantly crashes - like every 10 seconds. It says it's not responding.. but then you wait about 30 seconds and it then resumes - workflow is a nightmare. It tends to be in code view making simple

  • Phone speaker doesn't work, I'd not hear what another say

    Today, after using the iphone 5 as usual, I found out that my phone speaker didn't work as I'd not hear any voice from it but another who talk to me could hear my voice. Also, I'd not hear the shutter sound when taking the picture, Do anybody has the