Is record changed in ADF BC.

How can we find a database record is changed or not in ADF BC application developed at JDev 11g R1 ?
Thanks.

This depends on where you want to call the code.
From a backing bean you best get access to the AM via this code:
     * Get FacesContext.
     * @return FacesContext
    public static FacesContext getFacesContext()
        return FacesContext.getCurrentInstance();
     * Method for taking a reference to a JSF binding expression and returning
     * the matching object (or creating it).
     * @param expression EL expression
     * @return Managed object
    public static Object resolveExpression(String expression)
        try
            FacesContext facesContext = getFacesContext();
            Application app = facesContext.getApplication();
            ExpressionFactory elFactory = app.getExpressionFactory();
            ELContext elContext = facesContext.getELContext();
            ValueExpression valueExp =
                elFactory.createValueExpression(elContext, expression, Object.class);
            return valueExp.getValue(elContext);
        catch (Exception e)
           ;// log you message here
        return null;
     * Get application module for an application module data control by name.
     * @param name application module data control name
     * @return ApplicationModule
    public static ApplicationModule getApplicationModuleForDataControl(String name)
        return (ApplicationModule) resolveExpression("#{data." + name + ".dataProvider}");
    }If you are in an application module ue the code from above:
this.getDBTransaction().isDirty()May be you should implement a method in you application module like
public boolean isDirtyTransaction()
return this.getDBTransaction().isDirty();
}which you then can call declarative in an EL.
Timo

Similar Messages

  • BW error:  "invalid call sequence for interface when recording changes"

    I am getting the error "invalid call sequence for interface when recording changes" when I try to activate a datasource in BW.  Any ideas on how to resolve this error?
    Thanks.

    I already tried that.  This is what's happening..  When I get this error, if I try again it will activate and gets collected into a transport.  I moved this transport to our QA system.  As soon as I try to execute an infopackage under this datasource in QA, I get the error datasource   xxxxx must be activated.   Before the excecution of the infopackage, the datasource is in "Active version executable".   After I get the error message "datasource must be activated", the datasource in the QA system changes to "Active version not executable".   I am not sure all these issues are related back to the "invalid call sequence" error I am getting when I try to activate the data source.
    I also tried recollecting the transport from our Dev system to QA and it still gives the above errors.
    Any help?
    Thanks.

  • Excise duty 4% diff. while MIRO posting after FV12 condition record change

    Hi Gurus,
    Iam coming straight to the CRUX of the matter.
    Iam working for a client and facing a support problem.
    I got an issue that recently Government has reduced excise rate from 14% to 10%
    But PO already created with 14%.Later the condition record changed to 10% in FV12.
    then only  MIGO posted.
    while doing MIRO iam getting 4% difference value
    why is it so?
    Please help me in this regard.
    I also attached the screen shot in the link given below
    [http://rapidshare.com/files/184718013/MIRO__ED__14_.rtf.html]
    Regards,
    Anbu

    HI
    Check your PO creation date and condition record validity date (FV12) an MIRO posting date.
    Thank You

  • Purchase Info Record Change (ME12) using BDC

    Hi All,
    We are trying to change the Purchase Info Records using BDCs. We have about 20 condition records to change. Not all condition records change all the time. How can we use page control to identify the particular condition records that we want to change.
    Thanks
    Hari

    Hi Krishna,
    The BDC that we are trying to build will have the changes. For ex: When we created the info record (using a BDC) we had 15 condition records. This is coming from an external source.
    Now, there has been a change in the pricing (outside the system). This is communicated from the external system. We need to pinpoint which condition types to update in SAP, based on the values in the external system through the BDC.
    Regards
    Hari

  • Triggered mail on record changes in infotype 9(bank details)

    Hi All,
    We have a requirement for triggering a mail notification on any record changes in table pa0009  (Bank Details - infotype 9).
    Please suggest.
    Thanks & Regards,
    Sujatha sahu.

    Hi all.
    I am new to this.
    actually  when i modified the data in pa30 for infotype 9, when i click the save button then email get trigger.
    this is my require ment.
    Please help me out of this.
    Thanks & Regards,
    Sujatha sahu

  • Info Record Condition record changes

    Hello Experts,
    We have a requirement to change the % allotted to a particular condition type in Info record. there are no BAPI's available for info record change. I do not prefer BDCs. I am using 4.6c. Can you please provide me any other options for this requirement?
    Thanks for your help!
    Regards
    Seema

    I am using SAP-standard Batch Input RM06IBI0 (via LSMW). This should be available in 4.6c also.
    Whether you like Batch Input or no ... I do not think that you have many more options available in 4.6c (except if you are going to re-invent the wheel ...).

  • Editable ALV, capturing multiple record changes

    Hello
    I am writing the editable ALV prog. (because of some reaosn am using FM - REUSE*) and i need to capture the user changes on the list, but, when i searched, i found the below code, where in i  can get only one change/record (because am getting importing formal parameter is a structure), but, i need to get all records user changes, multiple.
    FORM user_command USING r_ucomm LIKE sy-ucomm
                      rs_selfield TYPE slis_selfield.
    Pls. let me know how to capture all records/changes? I saw BCALV, but, all they are on OOPS.
    Thank you

    Hi Raju,
    no chance without oo event data_changed.
    You can get the grid object from the function module, I think FM LVC_GET_GLOBALS or something like that. Then implement method
    METHODS: handle_data_chg FOR EVENT data_changed OF   cl_gui_alv_grid   IMPORTING er_data_changed.
    In SET_STaTUS event of the function module, you can extract the grid object and registr your own handler.
    But, honestly, I'm not convinced this will be easier for you than changing to OO grid.
    Regards,
    Clemens

  • Recording Changes to modified Entity Beans

    Hi,
    Our application uses a thick client that communicates with the J2EE middle tier (J2EE 1.4). For performance reasons our client has its own data model. We are using JMS Topics to implement the Observer pattern between the client and the middle tier.
    The two questions I have are:
    1. How can we record changes that occur to Entity beans (CMP) in an automated fashion (ie other than explicitly doing so from the Session bean updating them)?
    2. How can we minimise the number of JMS messages sent when multiple Entity beans are updated per business method. We had thought about hooking into the Transaction lifecycle events, and distributing all objects marked as changed (see Q1) following Transaction comitt.
    I know that we could do both of these manually, however it relies on developers remembering to record changes to objects and also to distribute them when the method completes. I am more interested in possible uses of Container services to alleviate the burden on the application developer.
    thanks in advance.

    Hi,
    One suggestion, I am not sure whether this is what you want to achieve.
    1. I hope by changes to EB you mean inserts, updates and deletes.
    2. I hope you either want to keep these changes in DB or create a log of these chages.
    3. If you want to use container services, then why not to use ejbCreate(), ejbStore(), ejbRemove () methods.
    4.You may create a database table to record changes to your beans. (Bean_Id,Bean_Name,Bean_Field,Bean_Field_Value,TimeStamp).
    5.During a TX you may record changes happening to your bean in an object that has a hashmap containing name of bean field and its latest value.
    6.After successful completion of a TX a JMS Publisher will send this object to a MDB which will create a state change log or update a DB.
    7. You may explore an option of using an entity bean for this as well.
    I am not sure of your exact requirements, bu hop this may help.
    Do revert back.
    VJ

  • Forms: avoiding "record changed by another user"

    I have a form with a DB block. There is also a DB trigger on the same table, so when an update is performed in the form, the BEFORE UPDATE trigger updates the same row. Of course, when I try to change the same record again, I get "record changed by another user". I know that there is a property somewhere in Forms that will re-synchronise the Form state with the DB state, but I can't find it in the online docs.
    Can anyone tell me where to find this property, or what buil-tin to call (if appropriate)?

    Hi Chris.
    There is no build-in or property do this. You have to select the current data from the database, because the data in your form is not up-to-date.
    So what do you have to do.
    If your form do not manipulate the fields that the DB-trigger manipulate, simply remove the fields from your form.
    Otherwise, if you need the field in your form you must get the newest value from the DB, because it has changed. It make sence.
    BR Claus T. Rasmussen
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Chris Webster:
    I have a form with a DB block. There is also a DB trigger on the same table, so when an update is performed in the form, the BEFORE UPDATE trigger updates the same row. Of course, when I try to change the same record again, I get "record changed by another user". I know that there is a property somewhere in Forms that will re-synchronise the Form state with the DB state, but I can't find it in the online docs.
    Can anyone tell me where to find this property, or what buil-tin to call (if appropriate)?<HR></BLOCKQUOTE>
    null

  • Recording changes to text

    Hi:
    I am wondering if Captivate is able to record changes in
    text. I am dealing with a Word document which we would like to show
    being updated in real time, e.g. hilighting a sentence and then
    typing in a new sentence. Is this possible in Captivate? And if so
    what settings would I need to make this work?
    Thanks!!

    Hi quiet canadian and welcome to our community
    Captivate should record that just fine. I would suggest
    recording using Demonstration mode with the "Record Keystrokes"
    opton enabled.
    To configure these, click Options > Recording Options...
    > Recording Options tab. Ensure the "Enable auto recording"
    check box is selected. Then ensure the Recording Mode is
    "Demonstration". From there, look down the dialog a bit and ensure
    the "Record keystrokes" check box is selected. Once you do this,
    click the "Full Motion Recording" tab. Ensure the "Automatically
    use full motion capture for drag-and-drop operations" check box is
    selected. (This should cause the highlight to be captured nicely).
    Once you do all that, click OK to dismiss the dialog, fire up
    Word and load your document, then record away!
    Cheers... Rick

  • Catching the Record Change Event

    Hello,
    We are currently using SAP 2004, and would like to catch an event when a sap record changes, for example in Item Master Data window when the user clicks on the << < > >> and the Item Number/ Information changes. From what I can tell there is no specific form event that can be caught like on item number text change…
    Any help with this problem would be greatly appreciated
    Thanks

    Hi Bill,
    Unfortunately, there is not a "record change".
    You'll have to catch all the menu event when the user click on the << < > >>
    Private Sub SBO_Application_MenuEvent(pVal As SAPbouiCOM.IMenuEvent, BubbleEvent As Boolean)
          If pVal.BeforeAction = False Then
              Select Case pVal.MenuUID
                Case "1288" 'Next Record
                    oRecordSet.MoveNext
                    '// If reached EOF show last
                    If oRecordSet.EOF = True Then
                        oRecordSet.MoveLast
                    End If
                Case "1289" 'Previous record
                Case "1290" 'First record
                Case "1291" 'Last record
                End Select
            End If
    End Sub

  • Error FRM-40657:Record Change or deleted by another user

    Hi dears
    Please HELP ME
    I have a form with multiple blocks and relationship between them
    I can insert in all of the blocks
    but I can not update the exiting rows in ANY block in application.
    I can update the rows from outside of the application
    it returns me this error:
    FRM-40657:Record Change or deleted by another user
    the properties about insert allowed,update allowed and so on are all YES in all blocks
    Would you please advise me about that?
    Need your help
    thanks
    Shahram

    This error occurs because the record as held in the Form is not the same as that held on the database. When Forms locks a record it checks the value of every database item on the Form with that currently stored in the database, and if the two are not the same it issues this error.
    This can happen for a number of reasons e.g.
    1. You may want to look at date fields and ensure the time component is being taken into account i.e. the LAST_MODIFIED column is stored as '01-JAN-2001 15:34:56' on the database but is stored as '01-JAN-2001 00:00:00' (a truncated date) on the Form.
    2. Check to see if there are any database triggers which alter the values of columns.
    You may need to go through every database item on the Form and compare it with the value on the database. Having found a discrepancy in values you need to determine why this occurs.

  • FRM-40657:  Record changed or deleted by another user.

    I have a forms module with a module component based on a view.
    This view is a simple view with 1 base table.
    This view has a 'client derived' primary key with a sequence.
    This view has a instead of trigger, which is calling the table API.
    There are no server derived columns etc.
    When I insert a record via the form and try to update the same record
    without requery, I get the message:
    FRM-40657: Record changed or deleted by another user.
    When I drop the trigger the error is not raised.
    Any idea ?
    Configuration:
    Forms 6.0.5
    Designer 6.0.5
    Headstart 5.1
    Oracle 8.1.7.4.0

    From Documment : 1236623.1
    Cause:
    1. Navigation from (Responsibility) System Administrator > Security > User > Define > Query out the responsibility, found responsibility key is <NEW_VALUE>. ..................... This is wrong Navigation
    2. Found value <OLD_VALUE> is included in column role_name of the responsibility under the user by sql statement:......................................................................................... Not sure whats the old Value
    select * from wf_local_user_roles
    where user_name = '<user_name>'
    and role_name like '%<OLD_VALUE>%';
    Solution :
    4. Identify the Role (responsiblity) to be changed, click 'Show' to expand the record, select a date to field 'Active To' to provide an end date to this role assignment. ..... Not sure how to get role for particular responsibility.
    From Document : 1273157.1
    We have created new responsibility , But now we are getting error while END_DATE old responsibility.
    New Responsiblity name : BPC-160 DC Staff-New
    Old : BPC-160 DC Staff

  • Tracking records change made by another user or session

    How does oracle forms track records change made by other user or session?

    I think the question is, how does Forms know to issue the error "FRM-40654: Record changed by another user. Re-query to see change".
    I don't know exactly how Forms knows this. But in the past I have found that if a column has changed on the record, which you are not querying in this forms block, then you don't get the error. So Forms is perhaps comparing all the database values for the queried record, against the values that Forms has queried?
    When you attempt to lock the record from Forms, you'll see that Forms issues a statement
    SELECT <all the db columns in the block>
    FROM <wherever>
    FOR UPDATE OF <all the db columns in the block which are not query only>
    Even so, in the database, that statement doesn't know what the values are that the Form has already queried. So Forms must be doing something else.
    Hope this helps, it's a bit of a black box area I guess.

  • ADF View Objects and Recording changes for Auditing Purposes

    Hello,
    I am a new to the JDeveloper paradigm and currently working on a J2EE web pilot project. I was wondering if I could get some some ideas on how I could implement auditing in an application. Basically when a user modifies some entries on the screen, I would like to make a note of what the record was like before commiting to the database. An administrator could then see, what changes the record has been through over a period of time.
    I was thinking of using XMLTypes with the database. Does Jdeveloper handle oracle XMLType fields, or would I be looking at something along the lines of a CLOB? At this point, I would rather not implement this functionality using database triggers. Any alternate suggestions would be appreciated.
    Regards
    Anora April…
    Jdeveloper 10.1.2 (1811)
    Oracle DB 10g 10.1.2

    Hi,
    I am also interested in a best-practice note from oracle.
    Currently we store history in seperate history tables for columns that changed. All this implemented in our BaseEoImpl overriding the EntityImpl.prepareForDML().
    Thanks

Maybe you are looking for

  • Can't Drag Windows

    Lately I've had a problem where I can't drag open windows or even just icons on my desktop. If I move them very slowly they'll usually slide just a little, then they won't slide at all. Could anyone suggest what I should look for to return to normal

  • Transfered photos, now I can't delete them.

    So I've uploaded some pictures on my old computer and then, I've transfered my iTunes library to my new computer. But when I synced, there was still a copy of the same photo library from  my old computer and a new one with the same pictures in it. No

  • Callback function in edge

    So i have a series of photos that once a button is clicked it will cycle through each photo to create a 360º image rotation. But when i use this line to change the images, it just goes to the last photo in the list sym.$("nolines").css("background" ,

  • Running mavericks is there a download to optimize my internet conncection

    Are there any downloads available to optimize my FIOS Internet Connection?

  • Maintaining video quality.

    The quality of the vids I'm processing with IMovie for YouTube seem to be degraded from the orginal. The vids are in mpeg-4 format to start off with.  I import them into IM  and add some introduction screens and crossfades then Share/YouTube.  Should