How to know the record status

dear all
i am new in adf. i have an entity object named Employee and an updatable view object named Employeevo.
i created a simple .jspx page to display the employee in af:form.
the page bindings contains CreateInsert operation. user can insert new record or update a record or delete it. mh question is:
how can i detect the record status? in other eords how can i know whether the record is in insert mode or update mode. in oracle forms ,there is a system variable ":SYSTEM.RECORD_STATUS"that can return NEW-CHANGED-QUERY.what is the equilivant for this in ADF.
thanks in advance

Hi.
you can override the dodml in the EntityImpl to test what DML operation is being performed.
@Override
protected void doDML(int operation, TransactionEvent transactionEvent) {
        if (operation == DML_INSERT) {
            //an Insert
        } else if (operation == DML_UPDATE) {
            //an Update
        } else if (operation == DML_DELETE) {
            //a Delete
}http://docs.oracle.com/cd/E15051_01/web.1111/b31974/appendix_mostcommon.htm
http://www.orastudy.com/oradoc/selfstu/fusion/web.1111/b31974/appendix_formstriggers.htm

Similar Messages

  • How to know the record status changing from NEW to INSERT while keying-in a field

    Thanks to Kevin Clarke & Steven Declercq for helping me out with my previous queries.
    Can any one out there tell me how to intercept when the reocrd status is changing from NEW to INSERT (while a field is being keyed-in in a blank(new) record).
    Thanks
    Brijesh

    Hi Kevin,
    Thanks.
    Unfortunately, I could'nt find a trigger named 'ON-DATABASE-RECORD'.
    Are you sure it exists?
    Cheers
    Brijesh

  • How to know the status of concurrent program from back-end in oracle apps

    Hi,
    Can you please explain me step by step how to know the status of the concurrent program from back end in oracle apps.
    Thanks,
    Raj

    When a record is being updated by a form, if you create a Pre-Update trigger on the block, the trigger will run for each record being updated.
    Same thing happens with a Pre-Insert and Pre-Delete trigger.

  • How to know the count of record in CR XI?

    Post Author: Liu ming
    CA Forum: Deployment
    Hi All,
    I create a report by CR XI release 2. The report is viewed in ASP.Net. So, I would like show a message when the report have no record. My question is how to know the count of record?
    Thanks.

    I was able to do this by using
    ora:countNodes('Receive_1_Read_InputVariable','BILL','/ns2:BILL/ns2:CMS1500')

  • How can I know the uploading status of a Photobook?

    I have some problems uploading an order. I' d like to know the uploading status and the remaining time. How can i do that?
    Thanks

    Cesare,
    if you are concerned about your network connection, perhaps you may want to run the Network Utility (in Applications -> Utilities) for a while.
    The first tab (Info) will give you an overview on the transfer statistics (send errors, collision etc.) and the second tab (Netstat) will give you a comprehensive network statistic, when you press the "Netstat" button.
    Regards
    Léonie

  • How to know the progress of the Sync when I call PullAsync()

    Hi,
    I am developing a Windows 8.1 app, In that I am using offline data concept using Azure mobile services with JavaScript Backend.
    My questions is how can I show the status or progress of the Sync When I call PullAsync() method.... I want to show the number of records sync or how much percentage synced like that...
    private async void ButtonPull_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e)
    await todoTable.PullAsync();
    //How to know the progress of sync
    await RefreshTodoItems();

    Hi Narendra,
    I suggest you to check this information for more details.
    PullAsync() call can either pull all items from the remote table, or just pull a subset of the items. Only pulling some items from the table is often advisable, as stuffing everything from the (potentially large) remote database table into the (restricted by
    the device memory) local table may have some bad performance implications. You can pass an OData-formatted query to select which items to pull from the server, or you can also use the (more friendly) Linq expressions to determine the query of items to be pulled.
    var localTable = client.GetSyncTable<TodoItem>();
    var query = localTable.Where(t => !t.Complete);
    await localTable.PullAsync(query);
    var localItems =
    await localTable
        .Select(i => i.Text)
        .ToListAsync();
    AddToDebug("Items from the server (in the local table): {0}",
    string.Join(", ",
    localItems));
    One important thing to notice regarding pull operations – if there are items in the pending synchronization queue, those items are first pushed over to the server, then the pull operation takes place. That prevents a scenario where an update is done to a
    local item, but a pull operation would overwrite the changes locally and potentially leave the data in an inconsistent state. That’s one the first synchronization rule: a pull triggers a push. In the example below, the insert operation for the “Buy milk” item
    will first be pushed to the server, then the items will be pulled into the local table.
    await client.SyncContext.InitializeAsync(store);
    AddToDebug("Initialized the sync context");
    var localTable = client.GetSyncTable<TodoItem>();
    var item =
    newTodoItem { Text =
    "Buy milk", Complete =
    false };
    await localTable.InsertAsync(item);
    var query = localTable.Where(t => !t.Complete);
    await localTable.PullAsync(query);
    var localItems =
    await localTable
        .Select(i => i.Text)
        .ToListAsync();
    AddToDebug("Items from the server (in the local table): {0}",
    string.Join(", ",
    localItems));
    for us to better understand both Push() and pullasync() feature is used while querying from the Database.
    http://blogs.msdn.com/b/azuremobile/archive/2014/04/07/deep-dive-on-the-offline-support-in-the-managed-client-sdk.aspx
    Girish Prajwal

  • How to know the dynamic values for this :AND category_id_query IN (1, :3, )

    Hi Team,
    R12 Instance :
    Oracle Installed Base Agent User Responsibility --> Item Instances -->
    Item Instance: Item Instances > View : Item Instance : xxxxx> Contracts : Item Instance : xxxxx> Service Contract: xxxxx>
    In the above page there are two table regions.
    Notes.
    -------------------------------------Table Region---------------------------
    Attachments
    -------------------------------------Table Region---------------------------
    --the attachments are shown using the query from the fnd_lobs and fnd_docs etc...
    I want to know what are the document types are displayed in this page ?
    --We developed a custom program to attach the attachments to the  services contracts and the above seeded OAF page displays those ..as needed.
    But after recent changes..the Attachments--> table region is not showing the attachments.
    I have verified the query..and could not find any clue in that..
    but i need some help if you guys can provide..
    SELECT *
    FROM
    *(SELECT d.DOCUMENT_ID,*
    d.DATATYPE_ID,
    d.DATATYPE_NAME,
    d.DESCRIPTION,
    DECODE(d.FILE_NAME, NULL,
    *(SELECT message_text*
    FROM fnd_new_messages
    WHERE message_name = 'FND_UNDEFINED'
    AND application_id = 0
    AND language_code  = userenv('LANG')
    *), d.FILE_NAME)FileName,*
    d.MEDIA_ID,
    d.CATEGORY_ID,
    d.DM_NODE,
    d.DM_FOLDER_PATH,
    d.DM_TYPE,
    d.DM_DOCUMENT_ID,
    d.DM_VERSION_NUMBER,
    ad.ATTACHED_DOCUMENT_ID,
    ad.ENTITY_NAME,
    ad.PK1_VALUE,
    ad.PK2_VALUE,
    ad.PK3_VALUE,
    ad.PK4_VALUE,
    ad.PK5_VALUE,
    d.usage_type,
    d.security_type,
    d.security_id,
    ad.category_id attachment_catgeory_id,
    ad.status,
    d.storage_type,
    d.image_type,
    d.START_DATE_ACTIVE,
    d.END_DATE_ACTIVE,
    d.REQUEST_ID,
    d.PROGRAM_APPLICATION_ID,
    d.PROGRAM_ID,
    d.category_description,
    d.publish_flag,
    DECODE(ad.category_id, NULL, d.category_id, ad.category_id) category_id_query,
    d.URL,
    d.TITLE
    FROM FND_DOCUMENTS_VL d,
    FND_ATTACHED_DOCUMENTS ad
    WHERE d.DOCUMENT_ID = ad.DOCUMENT_ID
    *) QRSLT*
    WHERE ((entity_name    ='OKC_K_HEADERS_V'-- :1
    AND pk1_value          IN ( 600144,599046) --:2
    AND category_id_query IN (1, :3, :4, :5, :6, :7) )
    AND datatype_id       IN (6,2,1,5)
    AND (SECURITY_TYPE     =4
    OR PUBLISH_FLAG        ='Y')))
    --='000180931' -- 'ADP118'
    The above seeded query is the one which is used for table region to retrieve the data..
    how to know the dynamic values for this : AND category_id_query IN (1, :3, :4, :5, :6, :7) )
    --Sridhar                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi Patricia,
    is it working for restricted key figure and calculated key figure ??
    Note Number Fisc Period Opening Days
    1 1 2
    2 1 3
    3 1 0
    because I have other restriction, so I create two restricted key figure..
    RK1  with restriction :  Total Number of Note,
    RK2  with restriction :  Total Opening Days ,
    then I Created a calculated key figure, average opening days in a period
    CK1 = RK2 / RK1..
    in this case, I am not sure if it will work or not..
    for example, during RK2 calclation, it might be this   2+3 = 5, the line with 0 will be ignored..
    during RK1 calcualtion, it might be 1 + 1 + 1 = 3. ---> Not sure in this case, the line with opening days 0 will be calculated or not..
    could you please confirm..

  • With a contract number, how to know the total PO release value against it?

    Usually one contract corresponds to multiple PO records, now we know the contract number, then how to know the total PO release value against this contract.  In other word, we would like to know the total release value of all the POs with the same contract number.  To just input the contract number in EKPO table? but then look for which field in this table to add these PO release values up?
    We will give you reward points!
    Thanks!

    hi Mohammad,
    By following your instruction, input the contract number 4800000112 into Document number field, then hit Enter, get the following (only copy two records here for example), but kind of a mess.  Could you let us know which one is the PO release value for this contract?
    Contract   Type Vendor     Name                                 PGp Agmt. date
      Item  Material           Short text                               Mat. group
      D I A Plnt SLoc                 Targ.qty. Un       Net price  Curr.   per Un
    4800000112 WK   2000012012 GULF INTERSTATE FIELD SERVICES       QBH 06/20/2006
    Agreement start06/20/2006 Agreement end 12/31/2007
    Tgt. val.        1,000,000.00  USD   Open          1,000,000.00 USD   100.00 %
      00001                    Inspection Svcs, Construction            R3VNI
      L   U                                  0  UL            0.00  USD       1 EA
      00002                    Chief Inspector                          R3VNI
      L   U                                  0  DAY         390.00  USD       1 DAY

  • Error: Setting the record status to 'NEW' after assigning a  value

    Hi everyone,
    The user name is assigned programatically( like an Initial value) to a field in When New Form Instance and the record status is set back to NEW STATUS using set_record_property.
    The value is seen in the field and the moment you enter into any of the fields in the form the value disapears. when you key in something and do a 'clear_form' you get a message 'You cannot create records here'.
    Almost a similar problem with QUERY_STATUS for the records queried.
    Can anyone help me out to overcome this problem?
    Thanks.
    Brijesh

    Hi,
    I think I went through similar problems some time ago.
    Be careful with FORM STATUS (Query or Normal Mode) and RECORD STATUS (there are 4, as you know).
    You cannot create new records in the Query mode. Find some descriptions about Form Status
    in your online help.
    I too had to think about it some time to understand it =)
    Hope this helps.
    Jan

  • How to know the list of reports that are in usage

    Hello,
    How to know the list of reports that are in use from the last 3 months by the users on Bw server.How basis team will help me in this regard?
    Regards,
    Anand.

    Hi,
    Pl look at following tables if you need any further detailed information
    Table Name  Use of the table 
    RSZELTDIR
    Directory of the reporting component elements
    RSZELTTXT  Texts of reporting component elements 
    RSZELTXREF  Directory of query element references .
    To get a list of query elements built on that cube.filter by: OBJVERS = 'A', INFOCUBE= [stage:cubename] 
    RSRREPDIR
    Directory of all reports (Query GENUNIID) .
    To get all queries of a cube.filter by: OBJVERS = 'A', INFOCUBE= [stage:cubename] 
    RSZCOMPDIR  Directory of reporting components.
    To get query change status (version, last changed by, owner) of a cube. 
    RSZRANGE  Selection specification for an element 
    RSZSELECT
    Selection properties of an element
    RSZCOMPIC
    Assignment reuseable component <-> InfoCube 
    RSZELTPRIO  Priorities with element collisions
    RSZELTPROP  Element properties (settings)
    RSZELTATTR  Attribute selection per dimension element 
    RSZCALC  Definition of a formula element 
    RSZCEL   Query Designer: Directory of Cells 
    RSZGLOBV
    Global Variables in Reporting 
    RSZCHANGES  Change history of reporting components
    Thanks and regards

  • How to change the field status of "plant" of standard activity ?

    hi,dear all:
    I want to know how to specify the field status of "plant" of standard activity from  "ready for input" to "required entry".
    Can the field of the stand network be changed?
    Thanks.

    Hi,
    Try in T-code OPN6
    Regards,

  • How to get the records of the particluar day when delta laod failed (Urgent

    Hello  BW Gurus,
    We are  facing one serious issue. Here is the scenario.
    1st time the Delta was init and for next consective two  loads delta ran sucessfully... then next time delta got failed and the status is in red..... even though system started next delta loading and it has fetched the records and status is in green but not activated ,,,,,its happening  still past one month so almost there are 20 requests which are to be get activatetd.
    How to resolve this issue.
    <b>And how to get the records of the partilcular day when the delta got failed.
    </b>
    Anyone have come across with this strange issue then help me out and i will rewarrd the points.
    Urs,
    Raki.

    Hi
    Can you provide more details about your extractor and data targets.
    Are you loading delta to an ODS ??
    If you are loading to an ODS, The only solution i can see is to get the missing delta records via FULL UPDATE. Because if you delete the error request from ODS it will also delete the 20 successful requests above it.
    Cheers
    Praveen
    null

  • How to know the existing BDC in the system

    how to know the existing BDC in the system
    cheers
    AJ

    Hi,
    You can check for existing recordings in your system in t-code SHDB. This transaction is also used for recording  a transaction and generating a function module or a program from the recording which you can then use in your program. There are no standard existing BDC's as far as I know. Because most of the times the BDC table is filled programitically and then passed to the Call Transaction.
    regards,
    Advait Gode.

  • How to find the records using contains with the word like this 'some text-some text'?

    Hi,
    How to find the records using the full text contains keyword and that column contains ‘some text-some text’
    In the above some text can be anything.
    Does anybody know please let me know.
    Thanks,

    Hello,
    You can try to create a Full Text Index on the table and use CONTAINS() to get the record which contains the specify words.
    For example:
    SELECT * FROM TABLE WHERE CONTAINS(column_name, 'some text')
    Reference:
    Full-Text Search (SQL Server)
    Creating Full Text Catalog and Full Text Search
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • How to find the NodeManager Status using WLST

    Hi All,
    can anyone please let me know how to find the nodemanager status using wlst, the nodemanager status whether it is 'Reachable' or not.
    Thank you.

    Hi Bob,
    As James pointed, we faced the same. We could not find any mbean to find the Node Manager Stat that we can monitor from Weblogic console.
    The best I can suggest, use the below WLST command after connecting to 'Node Manager:
    nm()
    Currently connected to Node Manager to monitor the domain xxxdomain.Grep for 'connected to Node Manager to monitor the domain <Your WLS domain name>' and if successfull, your node manager is UP & Connected other wise not 'Reachable'.
    Regards,
    qumar

Maybe you are looking for