ADF Edit page changes do not save to database

Hi. I'm using JDeveloper 10.1.3, working off the ADF Tutorial to create an edit page that updates a master-detail record. The user selects a record from a list of records in a table called ACTION, which opens an edit page for that record. The user makes changes to the record and clicks a Save button that uses mergeEntity(Object) to update the database:
<methodAction id="mergeEntity" InstanceName="SessionEJBLocal.dataProvider"
DataControl="SessionEJBLocal" MethodName="mergeEntity"
RequiresUpdateModel="true" Action="999"
ReturnName="SessionEJBLocal.methodResults.SessionEJBLocal_dataProvider_mergeEntity_result">
     <NamedData NDName="entity"
          NDValue="${bindings.findActionByActionIdIter.currentRow.dataProvider}"
NDType="java.lang.Object"/>
</methodAction>
After hitting the button, the user is taken back to the full list of records. The full list shows the changes that were just made, BUT the changes are not saved to the database. If I open SQL*Plus and run a query the changes are not there. If I re-start the ADF application, the changes are not there.
The following code in SessionEJBLocal.java successfully completes and does not throw exceptions. The entity in the unit of work has the proper updated values:
public Object mergeEntity(Object entity)
UnitOfWork uow = getSessionFactory().acquireUnitOfWork();
Object workingCopy = uow.readObject(entity);
if (workingCopy == null)
throw new RuntimeException("Could not find entity to update");
uow.deepMergeClone(entity);
uow.commit();
return workingCopy;
Any ideas? Do I need to create a separate commit button? I don't see anything like that in the tutorial...
Trevor

Roy-
Make sure the named data value (parameter) for the mergeEntity method matches what is returned by the readObject() query. You should not be sending the results of a readAll() query into the mergeEntity() method.
In my example, the mergeEntity methodAction looks like this...
<methodAction id="mergeEntity" InstanceName="SessionEJBLocal.dataProvider"
DataControl="SessionEJBLocal" MethodName="mergeEntity"
RequiresUpdateModel="true" Action="999"
ReturnName="SessionEJBLocal.methodResults.SessionEJBLocal_dataProvider_mergeEntity_result">
<NamedData NDName="entity"
NDValue="${bindings.findActionByActionIdIter.currentRow.dataProvider}"
NDType="java.lang.Object"/>
</methodAction>
I think the parameter is in that NamedData tag. The iterator findActionByActionIdIter is...
<methodIterator id="findActionByActionIdIter"
Binds="findActionByActionId.result"
DataControl="SessionEJBLocal" RangeSize="10"
BeanClass="<***package names***>.model.Action"/>
which binds to the result of this readObject() query...
<methodAction id="findActionByActionId"
InstanceName="SessionEJBLocal.dataProvider"
DataControl="SessionEJBLocal"
MethodName="findActionByActionId" RequiresUpdateModel="true"
Action="999"
ReturnName="SessionEJBLocal.methodResults.SessionEJBLocal_dataProvider_findActionByActionId_result">
<NamedData NDName="findActionId" NDType="java.lang.Integer"
NDValue="${userState.actionID}"/>
</methodAction>
...which runs based on what the main list (readAll() query) page sets in userState.actionID before the navigation goes to the Edit page.
All the above markup is defined in the page definition of the Edit page. If you're having problems with Master-Detail, maybe just try to get the non-foreign key fields working first. Hope this helps.

Similar Messages

  • Edits to photos do not save

    After I make edits (of any kind, be it cropping, enhancing, etc.) and hit "Done" the edits and changes do not save. The edited version disappears and the photo reverts to original. I've had this Mac for over a year and never experienced this with any photos downloaded from my camera (which is also the same camera I've had for over a year).

    I have version 6.0.6. Is it free to download version 7?
    No you have the latest free upgrade to your version of iPhoto - version 6 - version 7 is part of the iLife '08 package which can be purchased here - BUT it is better to upgrade a working system - your problem is probably not an iPhoto program problem
    Try rebuilding your library - quit iPhoto, backup your iPhoto library and launch iPhoto while depressing the option (alt) and command (apple) keys and rebuild your library
    LN
    Message was edited by: LarryHN

  • Edit Page link is not appearing in Portal???

    Hi All,
    I created a Web Page,  custom layout and published in WPC and created a role & folder for that web page in PCD.
    I am able to see the role and the web page in Portal but "Edit Page" link is not appearing in portal.
    I am the owner of the page.
    Where to give the permissions?
    Thanks
    Thruna Shanmuga
    Edited by: Thruna Shanmuga on Jul 9, 2009 2:56 PM

    Check this link :
    [https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/1083635f-e977-2a10-15ac-b0072abf941b?overridelayout=true|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/1083635f-e977-2a10-15ac-b0072abf941b?overridelayout=true]
    It should be like :
    <%@ taglib uri="prt:taglib:com.sap.portal.reserved.layout.WpcTagLibLayout" prefix="sdn"%>
    <%@ taglib uri="prt:taglib:com.sap.portal.reserved.layout.TagLibLayout" prefix="lyt" %>
    <lyt:template>
    <table id="SAPexample2" border="0" cellpadding="0" cellspacing="0" width="100%" frame="VOID">
    <tbody>
    <tr>
    <td colspan="3" width="100%">
    <sdn:container id="pageheaderlinks" />
    </td>
    </tr>
    <tr>
    <td colspan="3" width="100%">
    <sdn:container id="top" />
    </td>
    </tr>
    </tbody>
    </table>
    </lyt:template>

  • I have lost all of my bookmarks from the drop-down menu. It says it is empty, but never have I deleted them. And when I bookmark a page it does not save it. Please help

    Question
    I have lost all of my bookmarks from the drop-down menu. It says it is empty, but never have I deleted them. And when I bookmark a page it does not save it. Please help

    Ok this is bizzare!
    Thank you for your response, I went throught each and every step without any luck, even got the recovery programme, and painstakingly tried to sift through all that mumbojumbo to find what i needed. finally found the bookmark bit, but it had been fully overwritten :(, so on reading about previous ff versions, found the sqlite thingys, and they were relatively unscathed(partly written over, but saveable apparently TG), saved them to adiff drive, amongst other possibly good folders. Then looked up how to install them, and it said to close FF, and install to profile folder.
    So i tried to close FF, and the original problem from a few days ago, where it asked me if 'i was sure i wanted to close this window as it has X tabs open', popped up again. This is where 'open blank page' selection was set, over 'open previous tabs'. Wanting to save that info on how to sort out these friggin files, I reset the Option to 'open previous tabs', and closed FF. After unsucessfully searching for the profile folder on my laptop, i opened FF intending to search online for where i could find said folder.
    AND BANG, surprise surprise, the FF I had just closed with only tabs open about finding out what the heck to do, had disappeared, and instead my original saved tabs were up, and my bookmarks are there..... I am gobsmacked! what the heck just happened there???
    I have made 3 back up in different folders now, of those friggin bookmarks. I am weary now tho of shutting it all down.... what if its back to the other pages I had with no bookmarks, tomorrow :(

  • Design an uix page which is not related an database table

    Hi;
    I want to design a uix page, but this page elements is not related an database table, only pass through the parameter to run a report, how can i do this easly
    Thanks

    Such functionality is not generated/supported by JHeadstart. But you can build this page manually using JDeveloper. Please use the JDeveloper online help and/or the JDeveloper forum for help if you get stuck.
    In monitoring this forum we have to set priorities, and we simply lack the resources to help you with questions not related to JHeadstart. I hope you understand this.
    Steven Davelaar,
    JHeadstart Team.

  • Apple ID password change will not save on manage my apple ID page

    Hello, I have logged  into the Manage MY Apple ID webpage.
    I am trying to change the password. I click save and log out.
    Changes are apparently not taken into account. Password is still the old one.
    I have tried this many many times. Won't save my changes.
    Also, before loging out, I have tried to click another link such as 'address' etc...in an attempt to navigate to another section of the manage my apple id page. When I do this I get a message that I have made changes but they are not saved. I am then given an option to save changes or not. Even when I click save from this pop up window the password remains the old one.
    Plz help, I need to change my password.
    Thxs,

    Let's go through the process in case anyone isn't doing it quite correctly:
    Go to http://appleid.apple.com . Click on 'Manage your Apple ID'.
    Log in with your Apple ID and current password.
    Click 'Password and security' in the left column.
    You will be asked to answer two security questions which you preset.
    In the next pane click 'Change password'.

  • On my macbook pro when opening a page i can not save it as a pdf only give me the option of saving it as a web page can any body help me on this I have tryed so many times without success

    on my macbook pro when opening a page on safaryi can not save it as a pdf only give me the option of saving it as a web page can any body help me on this I have tryed so many times without success?

    Just select Print in Safari and then, in the bottom left-hand corner, select PDF and you can save it to whichever flavor pdf file you like.
    Clinton

  • Inserting Images and Logos - works in the edit mode, but does not save nor show in final PDF format - help?

    I have tried several times - but when I load a logo or image in to a form template - it shows up on the template in edit mode but when I save it for PDF final format and use - the image or logo disappears. What I am doing wrong?

    Is this a form that you're creating in FormsCentral?

  • Debugging or Running from OC4J container does not save to database

    When I run a project locally, from the oc4j container, none of my user input is committed to the database, for example...
    1. any changes to an lov input field are removed upon tabbing out of the field
    2. any other changes are not saved, getTransaction().isDirty() is false
    I am unable to debug any items that require user input. I don't know when or why this started happening.
    Thanks,
    jerry.

    1. any changes to an lov input field are removed upon tabbing out of the field - may be the PPR event of LOV is handled in the controller's processFormRequest where the values are cleared
    I am unable to debug any items that require user input. ----- are you trying to get the values of input items in the processFormRequest?

  • Latest pages change does not insert page numbers

    Went to add the page number in a document and it does not insert the number or give a choice as to the format of that number.  anyone know a fix?

    Acrobat has no way to know which bit of character string on each page is the page number.
    The visible page number has never formed any part of Reader nav. as you point out, it couldn't.
    Acrobat knows the Numbering Properties of the pages as created in Frame. It just doesn't display or honor them consistently, depending on Reader version.
    I also use i, ii, iii, iv for pre-narrative material. The romans are displayed in the page number box of Acroread (this is AR7 on Unix). I can enter "ii" in the box, and go to that page. But the Print dialog is Ordinal only. Printing page ranges in AR7 is always off by 2 or 4 relative to the actual page numbers.
    Acrobat Pro 9 (9.4.5, Win7-64) seems to be more consistent, and does show and accept real page numbers for Print.

  • Create a login page that does not link to database

    Hi,
    I am really new to muse and would like to seek some help....sorry if any similar questions have been asked.
    I am making a website interface for my assignment, and i need to create a login page,
    how can i make a text box for entering the login ID and the password? and how can i add a login button?
    By the way, this does not have to link to a database, it is just  a template........so the solution using codes may not help i guess

    Hi,
    check this thread Re: Can I create a login/password protection in Muse for a HTML5 page or two?

  • Data not save to database

    hi,
    I need to customize a standard form, so I add a new window(W) and two blocks. Blocks have master(M)-detail(D) relations. Also there is a new button(B) in one standard block to call W.
    Of course, A and B are database blocks.
    When B is pressed, I read one standard block, search more information in database and then populate A and B. The user can modify data or save directly.
    The problem occurs when the users save. Nothing happens.
    When the save button is pressed appears the FRM-40400 message (X records save) like everithing goes well, but really nothing appears in database tables.
    Thans for help.
    David.

    I don't know what to do now.
    I try everything.
    DML Data Target Type property is OK.
    Database Item/Block properties are OK.
    I can find with my tests that the problem occurs only saving data. If table has data and I do an execute_query, the blocks populate ok.
    I'm thinking that standard libraries, only let to do a commit to such fields or blocks with a concrete status. Is this posible?
    Thanks to all.

  • How to close a frozen warning: I am unable to close the "charicter boarders aren't supported and were removed" warning on my pages. Untill warning is closed I can not save my document. How can I get my document saved?

    I have an unsaved document open in pages but can not save it because the, "charicter boarders aren't supported and were removed" warning is open and I can not close the warning. How can i get the warning to close so I can save my document? Can I save the document without closing the warning?

    Probably not, but as you will have been unable to make any changes to the document with that warning window open, you're not going to lose anything by quitting (or force quitting) without saving. You'll still have the original document you were trying to import.
    I would suggest attempting to open the document in one of the open source Office applications, LibreOffice, Apache OpenOffice, or NeoOffice, each available for download from the linked sites. Once open there, remove the attributes that are causing the warning, save the file (as an MS Word document), then try opening that version in Pages.
    Regards,
    Barry

  • From LR 4.3, saved edits in Photoshop CS6 not changing in LR (when running an Action)

    From Lightroom 4.3, I am editing to Photoshop CS6 and able to make my edits and adjustments with a couple of Nik Software plugins running in an Action.  The Action saves correctly and the changes are visible in Photoshop.  When I switch back to Lightroom, the changes did not save.
    However, when I try to do the same thing and replicate the steps of the Action manually, the changes do save correctly and they are visible in Lightroom.
    This same action worked perfectly fine before I updated to LR4.3.  The Action is key to my workflow, and not being able to use it significantly slows me down.
    Is there a workaround known?
    Thanks!
    Nick

    Web-Weaver,
    Thanks for that detail.  When I looked at my Action, it indeed was a <save as> command. So I re-recorded the Action, and recorded <save>, but in the Action, it still shows up as a <save as> recorded entry.  I don't seem to be able to edit the entry to make it just a <save>.
    Some additional detail, the <save as> that was recorded specifies that it be saved as a PSD format, and it also specifies a distinct filename and location.  When I created a Droplet, and ran it on several files, they were all saved to that same filename.
    Any further suggestions?
    Thanks,
    Nick

  • Pages 5.0 will not save documents created in Pages 09

    I have hundreds of important documents I created and saved in Pages 09.  I got a new Mac Mini running Mavericks 10.9.5 with the new Pages 5.0.  The new Pages will not save my Pages 09 documents.  Pages 09 will not save them either.  Help!

    1. Is it possible you installed from a demo installer and your 30 day trial period is up, when it goes into Read Only mode?
    2. Where and what was your purchased disk?
    3. Where are you saving to?
    4. Have you tried saving somewhere else eg an external hard drive and see what happens then?
    5. The auto-saving issue with Pages 5.2.2 could be problems with iCloud and online access.
    Peter

Maybe you are looking for