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,

Similar Messages

  • How to track repair status.

    I sent in my newly purchased S230U for repair to a depot (flextronics?) located in Newmarket, Toronto, Canada.  I was given the "case number" of A0XXFVH.  Now, how do I track the status of the repair?  EasyServ website does not recognize the case number.  Can anyone help please!

    Hi, trhbme1
    I believe I can help you with this. Can you send me a private message containing your serial number and any other relevant information? With this, I can look up your machine and tell you the progress of the system thus far.
    Thanks in advance,
    Adam
    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.

  • 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

  • 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.

  • 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

  • Tracking workflow status

    Dear Experts,
    I am new to portal. I have created a workflow with 4 approvals. I want to track the status of the workflow in UWL i.e if first level user approves the workflow goes to 2nd level for approval. I want to show in UWL that 1st level is approved and workflow is in 2nd level. In this way I need to track workflow status. Is it possible to track each workflow approval status in UWL using tracking.
    KR,
    Bharath

    Hi,
    Are you using portal workflow using Guided procedures? Or is it R/3 workflow?
    If it is Guided Procedures, you can check the levels from http://<host>:<port>/nwa under the tab System Management-> Monitoring.
    If it is R/3 workflow, you cannot check it from portal.
    Thanks

  • [SOLVED] Tracking thread status

    Warning: This is a basic question. I may seem silly for asking this. :-P
    What is the best way to track the status of threads that I create? I see that you can "subscribe" to threads, but is there a page that lists all threads I have posted in, along with notifications for updates in those threads?
    I was thinking something along of the "Track" system Drupal provides, but I can't find something like that anywhere...
    Last edited by jalu (2010-08-14 21:38:41)

    Ahh, thank you everyone. Again, I'm sorry this was such a basic question, but I'm not terribly familiar with FluxBB (though it is very nice). For anyone who comes across this later, here's what I did...
    1. Navigate to Profile > Privacy. Check "Automatically subscribe to every topic you post in."
    2. Near the bottom of the forum, hover your mouse over the text "Show your subscribed topics". Copy the link location. Do not click the link and then copy the URL in the address bar, as the link redirects you to a temporary page that will not update to show new posts that you make.
    3. Thread updates are marked by a solid blue box to the left of the thread name.
    Thanks again, everyone!
    Last edited by jalu (2010-08-14 21:28:43)

  • Tracking completion status for long running DML operations

    Does anybody know:
    Is there any possibility to track a completion status for long running DML operations (for example how many rows is inserted)?
    For example if I execute an INSERT statement which is working for several hours it is very important to estimate the total time for this operation.
    Thanks forward

    I'm working with Oracle8 in present, and unfortunately this solution (V$SESSION_LONGOPS)cannot help me.
    On Oracle8 it works, but with some restrictions:
    - You must be using the cost-based optimizer
    - Set the TIMED_STATISTICS or SQL_TRACE parameter to TRUE
    - Gather statistics for your objects with the ANALYZE statement or the DBMS_STATS package.

  • How to track a status of release w.r.t PR and rel. group and rrel.code?

    Hi guys,
    We have configured release strategy( Over all release stragey) for a particular PR type..
    We have two issues..
    1. We want to track the dates of different release status..Like when first level release and when second release happened and so on..From which table we can get this information..
    2. We want to have release stragegy through work flow..The requirement is particular group PR should be go to one particular user for approval and once he approves later all PRs should go to one user for approval..
    i.e. 1.Specific users PR should go to specific user for first level approval..Here mulity user for first level approval.
          2. First level approval is over final approval should go to one specific user for final approval..Here only one user for approval.
    Can anyone suggest something on this..
    regards,
    Sundar..

    Hi,
    For both of your requirement you have configure the WORKFLOW for release strategy for P.O (or) P.R.
    Please consult your SAP ABAP team they will do the config for the W/F (Workflow)
    In that only you have first release date and second release date. In std release of P.O this cannot be achieved.
    G.Ganesh Kumar

  • Is there a way to track the status of a process?

    Hi all,
    after user completes a process, user later might want to know what stage this process is in, user want to keep track.
    is there a way to do so? 
    i tried the UWL's "Completed tasks" it only shows me some very basic infos. i want to know what stage the process is in right now. how?
    thanks in advance.

    Hi,
      There are NWA Applications to monitor the status of process and tasks.
    Please go to NWA HomePage -> Operation MAnagement -> Manage Process  (there is also a link Manage Tasks).
    Here, you could have the status of the process, with its details, context data, business logs etc.
    Hope this helps !
    Karthik

  • Tracking Idoc status in target system from XI

    Hi
    We have done File to IDOC Scenario succesfully i.e HR
    data  from file has been mapped to HR Idoc(HRMD_A06) .
    Now when Idoc is posted to R/3 , SXMB_MONI shows 
    successful status(Idoc posted successfully) .
    But when we check in R/3 in WE05 transaction ,though
    the idoc is present but it shows status 51/52
    with message "Idoc could not be posted" /"IDOC not
    fully posted" .
    In this case how can we track in XI  whether the Idoc
    is properly posted in the target system(i.e R/3) .
    Since XI only shows that Idoc was successfully sent
    irrespective of the status in R/3 .
    Please suggest as we are new to XI .
    Regards,
    Shikha

    Hi
    Thanks for the guide.
    we are  not sure of the steps to configure it in R/3
    system so that it sends the acknowledgement back to XI
    system. 
    When we tried to configure it as per the guide , for
    test purposes we executed the program RBDSTATE but it
    gave message "No parties are interested in the selected
    data" .
    Please guide us on this .
    Thanks
    Shikha
    Message was edited by: Shikha Jain

  • Badi to track user status update

    I have requirement to call smartform when the user status of the item for the service quotation changes to complete. Is there any BADI to track the item user status?
    Thanks

    I have tried CRM_ORDER_STATUS, however the BADI is not usefull as it is not getting called when I save the transaction. It is triggering as soon as I change the status. I think I need a BADI which is triggered on save and I should be able to access the new and old status in the BADI. Please help some one.

  • OWB Methodology for Tracking Rows processed by Mappings

    Hi
    Is there a recommended OWB methodology that I can implement in my project to keep track of records processed by OWB mappings?
    For example, my table, ABC, has the following rows :
    DATE, CLIENT, AMOUNT
    1/1/2008, 123, 5000
    2/1/2008, 345, 6000
    3/1/2008, 999, 1000
    The mapping processes these records and copies them into the target table, XYZ.
    How can I tell if these records in ABC have already been loaded into XYZ? Is there some kind of tag mechanism available that will indicate this so as to prevent duplication in future loads or reprocessing in event of mapping failure? Or do I need to build this in manually?
    Any ideas will be appreciated.
    Thanks
    Kind Regards
    Greg

    Hi,
    Check the following links for CDC and CDC in OWB:
    Re: How to implement CDC in OWB?
    http://www.rittmanmead.com/2006/04/14/asynchronous-hotlog-distributed-change-data-capture-and-owb-paris/
    http://www.oracle.com/technology/oramag/oracle/03-nov/o63tech_bi.html
    Regards,

Maybe you are looking for

  • Raw access to serial port /dev/ttya

    I need to control the characteristics of the serial port /dev/ttya on a Sun-Blade-100 running SOLARIS 8 from Java (JRE 6). The purpose is to set the baud rate, parity bits, etc. On my PC (development infrastructure, WinXP) I am using the javax.comm l

  • How to draw a border around a Textured Plane?

    Hi everyone, How does one go about drawing a square border around a textured square plane? I've tried using the setBoundaryColor() method, and have set the texture2D's boundaryModeS and boundaryModeT to CLAMP, but no boundary color appears. Can someo

  • Project is dropping audio and connections after burning

    A project was created on an Intel machine running Tiger, then modified with all new assets on a PowerPC G5 with Tiger (10.4.11). When burned to disc, some menu audio is missing, and some connections (button links, menu timeouts) are non-functional. T

  • Transferring dreamweaver preferences to new user profile in CS3

    I have been having Vista problems that may be caused by a corrupt user profile so have created a new one and transferred files etc. Dreamweaver treats this as a new user and file associations etc have all disappeared. I have spent some time setting u

  • Having problem with Sync iphoto library to iphone 4 in iTunes 10.4

    i did a clean install of Lion, i copied my itunes media and pasted in new destination to have same everything, today after 4 days i was trying to sync my iphone 4, i always keep my photos organized in iphoto, so i sync my iphoto via itunes to my ipho