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.

Similar Messages

  • 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

  • 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

  • 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

  • How to find status of rows (changed or not)

    Hi,
    Is there any way to find if a row status is changed (but not commited) and which user has made the change?
    we need to avoid lock so we want to check if there is a row in our select statement that may cause the lock.
    your answer is so appreciated

    esmid2 wrote:
    sybrand_b
    your comments is nonsensical Not really. What is, is your complete and utter nonsensical understanding of Oracle.
    You said:
    "<i>Is there any way to find if a row status is changed (but not commited) and which user has made the change?
    we need to avoid lock so we want to check if there is a row in our select statement that may cause the lock.</i>
    Avoid what locking? Writers of data in Oracle does not block readers of data in Oracle.
    So an +UPDATE+ or +INSERT+ or +DELETE+ does not block or lock a +SELECT+ from happening. That simple..
    If you use a +SELECT FOR UPDATE+, then yes - it needs to lock rows for updating. And a writer will only be blocking another writer when both want to write (change) the very same rows. In which case it is sensible and logic that these two need to be serialised and only one at a time can change the data. Easy enough to understand without having to have pointy ears and attended the Vulcan School of Logic.

  • Error on Sales Order - u201Cyou cannot open rows in the document"

    Hi everyone,
    Does anyone have any idea why this error would be occuring when a user tries to add a sales order?
    u201Cyou cannot open rows in the document [sales order u2013Rows u2013 Rows status] [line0] [Message131 -194]?
    If the user closes the sales order and then recaptures it, the sales order goes through. As you can imagine, the order clerks are getting a bit angry when their large orders have to be closed.
    Thanks.
    Kind regards,
    Simon Carolin

    Hi
    If it is affecting your business severly ,log a support to SAP .Meanwhile ,
    Lets start some troubleshooting your system
    1.Are you using formatted search in Sales Order
    2.Are  you using sp_transaction notification
    3.Did you do any changes in your system recently like upgrade ,
    4.Is it happen only to certain item or BP
    Hint :
    1.Disable all addon
    2.Disable your formatted search
    3.Disable sp_transaction notification
    4.Try to create a sales order and .,
    Does error occur again? Please also specify your SBO version and Patch level
    <Note> Try test your issue  test environment
    This will help to narrow down
    Thank you
    Bishal

  • Get information about the state of a row on a document

    Hi all,
    On our documents we have a button that does some calculation on quantity and price according to business logic.
    When you run this code when a line is closed, the code of course crashes since the value cannot be set in that row.
    Now I would like to build a check to see if the row is editable or if it's closed already. When I do
    bool rowIsEditable = oMatrix.CommonSetting.GetCellEditable(rowNumber,3); //3 = itemcode column
    {/code}
    I always get true, even if the row is closed and thus the cell is not editable. What am I doing wrong or how can I check to see if I'm able to change the content of the cell?
    Thanks!

    Hello
    Yes, because You checking the editable flag in the specific column, which is true (you can edit).
    You may check the row status instead of column settings.
    Regards
    János

  • Records added into the DB when deleting row in List

    I have a list with an add button at the bottom. Every entry has a delete button on the left.
    Whenever I create new entries and then delete some rows, the newly created entries are automatically saved.
    How can I solve this? Deleting calls getOADBTransaction.commit(), is there a way to isolate deleting form saving?

    Hi,
    When do some operations on Records from OAF page it maintains a list of state of entity, and on the basis of this state it performs the DML operations like insert/Update and Delete.
    Your case is no exception if you are inserting some records OAF will mark these for insertion, deleted records will marked for deletion and on commit data will be posted to DB accordingly.
    Still if you don't want to save the data, explictly change the VO Row status as Initialize(same as we do while inserting new record STSTUS_INITIALIZED) then OAF will not consider this row for insertion.
    Hope this will give you some clue.
    Regards,
    Reetesh Sharma

  • How to know which row is newly created in the table

    Hi all
    i have one classic table with a button to add new row.
    when page renders initially it displays some record .Here user can either update the previously existing record or may create new ones .
    after adding one more row when users submits it , in back-end i need to go thru all the rows in the view to do some validations .but i need to insert newly created row using API. how can i know which row haas been newly created,
    pls help

    you can know which row is new using different techniques at different places, depending where you want to do it.
    1. In AMImpl: if the PK column attribute of the row does not have a value, then you know this is a new row.
    2. In EOImpl: insertRow will be executed only if it is a new row.
    3. In Pl/SLQ package (if being called from EOImpl): You can check the creation_date or OVN for the row and determine if this is a new row.
    4. You can use the method mentioned in this thread
    Row Status Question
    Thanks
    Tapash

  • Show Hide transient attribute making row dirty

    Hi All
    I am using an advanced table where one of the columns(Description) is shown in detail region. To implement detail region, we need a transient attribute on the VO. I was able to get everything working. But I have the following problem.
    When the user clicks Add Rows, new rows are created for user to enter information. If the user does not make any changes and clicks Apply, no transactions are committed(which is working as expected). But when the user clicks on "Show" for one of these rows and does not enter information on any of the fields for that row, the system is throwing error on some of the mandatory fields. This is because the framework is identifying them to be dirty(Since clicking show changes the value of transient attribute on VO).
    I tried the following option to get around it, but it did not work.
    * When Show/Hide is clicked, capture that event and get the row that was clicked. Perform row.setNewRowState(row.STATUS_INITIALIZED) on that row to let system know that the row is not dirty. The problem here is that when control comes to this part of the code(be it in Controller or AM), the row status is STATUS_INITIALIZED. It becomes dirty after the Show action is processed in ProcessFormRequest(I think so..)
    To get around the issue, I had to remove the Mandatory flag on some of the fields, and implement the same manually. Also, just before committing all changes, I had to loop through all rows and see those that do not have any information entered but are still dirty. Perform row.setNewRowState(row.STATUS_INITIALIZED) on them before committing.
    Can any of you tell me a better way other than how I implemented it? I want to keep the mandatory flag on the field set(VO is based on a EO) and nto remove it. The error for no value entered should not be triggered by Show/Hide being clicked. I hope I was clear enough.
    Thanks
    Kumar
    Edited by: kvsankar on Feb 5, 2013 11:20 AM

    I did that. But I wanted the Server side validations to fire if the row was touched by the user before Submit as this is a middle page in set of pages implemented via train. I think I found the solution.
    I overrode the set method for DetailAttribute item on the VO and added the logic to set the row to STATUS_INITIALIZED if no other attribute was entered and it worked like a charm.
    Thanks
    Kumar

  • Advance Table - Add Row button and coloumn issue

    Hi all,
    I have created Advanced Table wth four coloumns.
    for two columns item style as messagtextinput and the rest are same as DATE.
    But when the page is rendering the table columns shows as messagestyletext , which means messagetextinput style item is not appearing.
    Kindly help me if am missed anything wrong.
    and also can u help me to create add row button featurs in advance table
    Thanks in advance.
    Senthur

    Senthur,
    I hv done this using row status initialised.I couldnt get the above lines.
    I have another doubt also. In Advanced table there is coloumn header, is there any Row header.There is nothing as such RowHeader. Let me know ur exact requirement.
    Name age salary
    empid1 xxx 21 100
    empid2 yyy 22 200Create a VO which return the above attributes and attach the same to the Adavanced Table Bean.
    Regards,
    Gyan

  • Row highlighting is gone on enabling inline style for columns

    We have a multi-select enabled table on which cusomter wanted to change the color based on row stauts (a column in the table).
    We did it on the column component of the table as background-color:#{row.Status == 'Inactive'? '#A5A5A5': row.Status == 'Draft'?'#D8D8D8':''};
    this works great though as soon as this is done the row highlight color is gone from the table and hence makes it impossible to know which rows are actually selected.
    we are using RUP3 (Rel 4) version of jdev 11.1.1.6.2 version from edelivery.

    To apply that css rules to only one table set property styleClass="MyCustomTable" of the <af:table> and change the above rules for these (note that each rule starts with af|table.MyCustomTable):
    af|table.MyCustomTable::status-message {background-color: #0090c1; color: white; border: 2px #a0b4ba inset;}
    af|table.MyCustomTable::column-resize-indicator {border: 1px solid #51bfff;}
    af|table.MyCustomTable::data-row:selected af|column::data-cell {border-top: 1px solid #00afea; border-bottom: 1px solid #00afea;}
    af|table.MyCustomTable::data-row:selected af|column::banded-data-cell {border-top: 1px solid orange; border-bottom: 1px solid orange;}
    af|table.MyCustomTable::data-row:selected:focused af|column::data-cell {border-top: 1px dashed #00afea; border-bottom: 1px dashed #00afea;}
    af|table.MyCustomTable::data-row:selected:focused af|column::banded-data-cell {border-top: 1px dashed orange; border-bottom: 1px dashed orange;}
    af|table.MyCustomTable::data-row:selected:inactive af|column::data-cell {border-top: 1px solid #84e0ff; border-bottom: 1px solid #84e0ff;}
    af|table.MyCustomTable::data-row:selected:inactive af|column::banded-data-cell {border-top: 1px solid green; border-bottom: 1px solid green;}
    af|table.MyCustomTable::data-row:hover af|column::data-cell,af|table.MyCustomTable::data-row:hover af|column::banded-data-cell {background-color: #bfd6b0 !important;}
    af|table.MyCustomTable af|column::data-cell:selected {background-color: #9CACC9 !important;}AP

Maybe you are looking for