JDev 11.2.1 Commit button does not save data

I am using JDeveloper 11.1.2. I am having trouble saving updates to the database. I am trying to create an application that displays database records in a form, allows the user to modify data in the form and them saves that data to the database. I have successfully created the database, entity objects, view objects and application module. I created the form on the page by dragging the data control on to the page. I used the same method to create a table from the same data control. I included a submit button on the form. I dragged the create, delete and commit buttons onto the form. This application gets the data from the database, the user modifies it, select the submit button. This displays the change in the table. I can do the same with create and delete. However, I use the commit button to write the data to the database but it never happens. I have set up logging with –Djbo.debugoutput=console. I can see that the delete button {#bindings.Commit1.execute} is doing something but no change is made to the database.
Thanks for your help, Steve

I have had some success. I tested with the BC browser in my application and got the same results, no update. So I created a new application. I used the 'Create Business Components from Tables' option to create a set of Entity objects, Entity View objects, and Query View objects. The interesting thing I found was that when running the BC browser and trying to update the database using an Entity View object I had success. Was able to add and modify records and results saved in db. However, when I use the browser and try to do the same thing using a Query View object I get the behavior I've been seeing all along, it looks like it is working but not data saved to the database. In order to make the Query View object updatable in the browser I had to make all of its attributes updatable 'Always'. this made the view look updatable in the browser but no save. In my real application I did not have any Entity View objects. the Query View objects look the same so I didn't create any Entity View objects. So I want back to my real application, removed all Entity objects and Query View objects, recreated them with the 'Create Business Components from Tables' option. I created Entity View objects this time. When I drat a data control based on an Entity View onto my page I can make updates and the commit works.
I'd like to understand the difference between the Entity View objects and the Query View objects. Once they have been created I have a hard time telling them apart. The Entity View object for the Employee looks very much like the Query View object for Employee. There are some flags set differently and the Entity View object 'Entity Objects' tab shows the Employee table selected. I can tweek the Query View to look like the Entity View but it still does not behave the same, the commit does not save data.
Thanks for all the help, Steve

Similar Messages

  • Diadem Does not save data to neither portal nor file

    I tried to acquire data from DAQ USB-6289 and save data to portal or file in DIADem DAC, but failed to get any data in portal, and no file was created, and no error was promptEd. But when I open a example file with saving function, it works fine. I'm sure there isn't any problem about the script since it is a very simple one. Do you have any suggestions?
    Thanks a lot.
    Jing

    Hi Jing -
    Since you said you're building your scheme based off of an example, I'm going to assume you've already included a Save Data or Save Data with Trigger block in your DAC scheme.  This is mandatory if you want to use Data Storage with either of the two following techniques.
    If you're running your DAC scheme programmatically, are you using the SchemeMeasTest() command, or the SchemeMeasStart() command?  If you want your DAC scheme to be run with Data Storage (Data Portal or File) enabled, you'll need to use the SchemeMeasStart() command.  The other command merely runs the scheme with visualization only (as a test).
    If you're running your DAC scheme interactively, are you pressing the Start Display button or the Start Measurement button (see below)?  These two buttons are the interactive versions of the aforementioned programmatic commands.  If you want to test your visualization without Data Storage, use the Start Display button.  If you want data to be saved to either the Data Portal or File, use the Start Measurement button.  
    Let me know if this still doesn't help.
    Derrick S.
    Product Manager
    NI DIAdem
    National Instruments

  • Button does not save

    Hi,
    I create a new button on a form, the idea is to update the data. The form has a process (Automatic Row Processing (DML) ) to update and was created by a wizard. Now every time a press the button is the form is submited but the process never runs.
    I tried to selecting the button in the process, whitout conditions, ..... and don't know what to do to get it working.
    Any help is welcome.
    Thanks

    Try going to the Button definition page and select one of the options under Database Action (INSERT, UPDATE or DELETE)

  • Overriding Commit action does not work

    Hello
    I am using Jdeveloper 10g (9.0.5.1), and created a simple uix input form with Create and Commit operation buttons. It works very nicely.
    However, I am trying to override the Commit action because i would like to present a confirmation message for the commit process.
    I followed the Online help to override Commit action as f
    1- Changed the event property from 'action' to 'Commit'
    2- right click the datapage and selected "Go to Code"
    3- inside the DataAction Class i wrote the following
    public void onCommit(DataActionContext ctx)
    System.out.println("test override commit");
    if (ctx.getEventActionBinding() != null) ctx.getEventActionBinding().doIt();
    When i run the sample and add a new record, then press the Commit button, The function onCommit is called and the System.out.println is executed however, the Commit operation does not seem to work and the commit button is still enabled, no changes are seen in the database. When the commit is pressed one more time, the commit seems to work fine.
    I repeated the procedure over and over again, still no result
    I believe that overriding action buttons is important for developing non-trivial Web Applications. I appreciate any response
    thanks

    I am not sure why you used this method to get your application module:
    svc = (ApplicationModule)ctx.getBindingContext().findDataControl("ApplicationModuleDataControl").getDataProvider();
    Does your code get something different than doing it this way:
    ctx.getBindingContainer().getApplicationModule()
    The following scenario did not work because it did not pick up the values from the messageLovInput and the 2 messageTextInput fields. The fields are in the DataActionContext request object but they don't get written to the database, so I had to add the setAttribute methods in order to attempt to get it to work but there are still other problems that have arisen doing it this way (i.e. can't get the new dbsequence id for additional inserts into another table within the onCommit).
    1. Drag and drop a Commit button on the page.
    2. In the action I put the following code:
    public void onCommit(DataActionContext ctx){
    // Do validation here
    //In order to get the data in the database, I had to add the following 5 lines of code:
    ViewObject vo = ctx.getBindingContainer().getApplicationModule().findViewObject("NetView1");
    Row row = vo.getCurrentRow();
    row.setAttribute("NetId",ctx.getBindingContainer().getHttpServletRequest().getParameter("VB_NetId"));
    row.setAttribute("PermittedCount",ctx.getBindingContainer().getHttpServletRequest().getParameter("VB_PermittedCount"));
    row.setAttribute("Frequency",ctx.getBindingContainer().getHttpServletRequest().getParameter("VB_Frequency"));
    //Commit
    ctx.getBindingContainer().getApplicationModule().getTransaction().commit();
    }I don't think it should be this difficult to get the onCommit event to work.

  • Froze on black screen and power button does not work

    my sons ipod touch is stuck on a black screen when plugged into the computer got a spinning wheel and will not connect now spinning wheel will not go away the power button does not work so can not reset it manually
    any suggestions would be appreciated

    - iOS: Not responding or does not turn on
    Neglect the reset and when it says place the iPod in recovery mode use one of thes programs
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer          
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • Open Task Button does not come in Outlook

    I have a three level approval workflow in which each level an email is generated to the approve to approve or reject.
    But suddenly the Open Task Button does not pop up in Outlook 2010 anymore can you tell me why?
    Srinivasan Kidambi

    had the same issue with External users not using Outlook. This is how I fixed it:
    Open the task list that the workflow is using and connect it to Outlook. Then kick off a workflow to make a new task. Once the task is made open the task from Outlook. The bottom options (review, perform the specific req. for the task, and Open this task)
    are now links. Hover your mouse over the link and you will see the address.
    Now open SPD, connect to your site and open the work flow assc. to the doc lib.
    Start editing the workflow and click the "Approval" link
    Click "Change the behavior of a single task"
    You are going to have to look for all the instances of "then e-mail task notification to "Current Task:Assigned to"
    Open "Current Task:Assigned to"
    Click where you want he link to go and hit the Hyperlink button
    name the link whatever you want, then hit the string builder ("..." button)
    Copy the link from the Task in Outlook into the string builder (if you use External addressing you can also hard code the External address).
    At the very end of the link where is says ID=(then a number) delete the number and DO NOT put a space. Click the Add or Change Lookup button and use "Current Task: Approval" "ID" "As String" and click ok. Should like this:
    Now this will not pop the form up, but it will send the user straight to the task form (might have to enter username and password) for the correct task. Remember to do this to all the "Current Task:Assigned to" in the workflow. It sounds like a chuck of
    work but it does not really take thaty long on the OOTB Approval workflow.
    Just wanted wanted to add my two cents.
    Also check
    http://social.technet.microsoft.com/Forums/en-US/417466a3-cdcb-4559-8453-9fff6da4aceb/getting-around-a-missing-open-this-task-button-in-a-nonoutlook-email?forum=sharepointcustomizationprevious
    If this helped you resolve your issue, please mark it Answered

  • Is there a capability to save/export the time capsule settings file when using the iphone/ipad airport utility. the "file" button does not exist on the latest airport utility app.

    is there a capability to save/export the new airport 2TB time capsule settings file when using the iphone/ipad airport utility. set-up wasn't a problem but the "file" button does not exist on the latest airport utility app v6.3 to save the configuration file.

    the "file" button does not exist on the latest airport utility app v6.3 to save the configuration file.
    Sounds like you are a bit confused with version numbers.
    Latest AirPort Utility version for the iPhone / iPad is 1.3.3.  There is no option or capability to export/import settings on the iOS version(s) of AirPort Utility.....although you could take a series of screen shots and save them for future reference.
    AirPort Utility 6.3.x is found on a Mac.....not on iPhone / iPad. Export and Import options are found under the File menu in 6.3.x.

  • I installed the latest version of iTunes (10.6.3.25) on a new Windows 7 PC.  I can see ahred libraries on Shared but can't import as the line containing the Settings and Import buttons does not display.   Any suggestions?

    To move the iTunes library to this new computer I switched on Home Sharing and can see the other libraries on my home network.  If I select tracks from a Shared library I can't import them as the strip containing "Show: All Items" and the "Settings" and "Import" buttons, does not display at the bottom of the screen.  Goes straight from the list of tracks to the strip with Playlist icons and xxxx items, tttttt total time, yyyy GB. 
    Any suggestions for making the Import button appear?

    I hvae the EXACT same issue
    I built a new computer which is EXTREMELY fast overclocked i7 ect and.. ITUNES DOESNT WORK
    I click on itunes which ive uninstalled and reinstalled and reset the winsock AND seen if there were any errors AAAAAAND ive check the Hkey to make sure bonjur was the only one in there which it is and all that happens is my cpu goes to 25% and i cant do anything except go into the task manager and close it! ANYTHING with itunes (everything else is premium speed).
    what do i do
    windows 7 64 bit

  • My daughter down loaded the new 6.0 software and now her home button does not work.  Tried reloading software and reset to original factory settings.

    My daughter down loaded the new 6.0 software and now her home button does not work.  Tried reseting to original settings and reset the operating software.  Any ideas?

    Try:
    fix for Home button
    Fix a broken, unresponsive or sticky iPhone Home Button
    - If you have iOS 5 and later you can turn on Assistive Touch it add the Home and other buttons to the iPods screen. Settings>General>Accessibility>Assistive Touch
    - If not under warranty Apple will exchange your iPod for a refurbished one for:
    Apple - Support - iPod - Repair pricing
    - There are third-party places like the following that will repair the Home button. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens

  • Windows 8.1 - Upgrade from 8, Start Button Does Not Work

    I cannot find a fix for my 8.1 start button.
    It works when I move the task bar to the top, right or left but not at the bottom. I ran all windows updates and there are no missing/unknown drivers in device manager. No errors in the event log. I've restarted multiple times and created a new local profile.
    I've also tried: 
    Copy WinX folder under C:\Users\Default\AppData\Local\Microsoft\Windows into C:\Users\[your user name]\AppData\Local\Microsoft\Windows.
    dism /online /cleanup-image /restorehealth
    Any ideas? I would prefer not to do a clean install. Thanks in advance. 
    HP Touchsmart 23 series
    i5-3475S 2.90GHz
    16GB RAM
    1TB HDD

    Could you please describe a little more detailed about “Start Button does not work”? What is the symptom?
    Yes, when the taskbar is at the bottom of the screen, I cannot left click on the start button. The machine is also a touch-screen, which does work when I touch the start button. If I move the task bar to the left, right or top; the start button does work.
    And what is the kind of the account, Domain? Local? Or both?
    This is local machine.
    It still doesn’t work in a new account?
    Same issue happens with a new account.
    What happens if you use win + "X"?
    Win + "X" works fine; displays options.
    Regarding to the “doesn’t work, both for screen touch and mouse?
    Left-click via the mouse does not work. Touch works fine.
    Can you try to copy the WinX folder from a working PC to your PC for a test?
    I do not have another Windows 8.1 machine available to me.

  • HT1430 How can you restart your iphone if your lock button does not work?

    How can you restart or turn off your iPhone if the lock button does not work?

    The best way is to let the battery die. Or you can reset the phone settings which restarts everything.

  • Ipad 2 Print button does not work after 6 upgrade?

    Since we upgraded to iOS6, our print button does not work and does not find our printer.  It was working fine until iOS6.  Called an Apple Technician and he had me reset, which wiped out all of my saved information but didn't fix the print.  He then started talking about a restore but the phone line went dead.  Has anyone had this problem?

    Today's iOS 6.1 update fixed the printer problem.

  • Button does not respond (with attachment)

    Hi,
    I'm trying to develop a LV program for a psychology experiment to record a participants mouse movements whilst drawing or tracing a picture using the mouse.
    My program uses an event structure to generate an event each time the mouse is moved or the mouse button is pressed or released. Upon each of these events the coordinates and button position is recorded to an array.
    When they have finished drawing there is a button "Stop & Save" that allows the user to save the coordinate data to a file. This can then be opened by a sister program I'm developing that allows the movements to be replayed and shows where the mouse button was down and up.
    At the start of the program there is the option of loading a background jpeg picture to trace over on the screen.
    The program then waits for a 'Record' button to be pressed before moving on to record all coordinates there after until the 'Stop & Save' button is pressed.
    The problem I have is that the record button does not respond. It doesn't even change state when pressed, even though at that stage it's just sat in a while loop waiting for it to be pressed before moving on to the event structure.
    I attach the program for you to look at.
    Any help/hints much appreciated.
    Thanks,
    Dave.
    Attachments:
    MouseCoordinatesForPW.vi ‏178 KB

    altenbach wrote:
    Your overall program design is higly flawed. This calls for a single state machine with an event structure that handles all FP events. All your locals can be handled by shift regsters. Get rid of that useless stacked sequence!
    Frame 0: Initialization belongs to the left of the state machine. CoordinatesArray should initialize a shift register (no locals needed). Use a boolean shift register to set state to either recording or not. Event for "record, value changed" will switch the boolean to be used on the other states.
    Frame 1: "Clear" and "stop" need to be inside their own events. Running it parallel to the event structure is a no-no! Do you really want to record mouse movements on the entire FP or only on the picture area?
    Frame 2: Why waste an entire frame on this? Here you clear it and in the next frame you prepend the cleared string to your data. Makes no sense.
    Frame 3: An autoindexing FOR loop would be the right choice. A single formating operation can handle multiple values.
    Frame 4: Writing the "coordinate string" seems useless, since you just cleared it two frame earlier. You are writing an empty string to a file! Right? Why invert the "canceled?" output, just swap the cases instead.
    Frame 5: Unecessary! Once the VI runs out of code, the VI will stop automatically. The "stop" function also does not "close the program window" as you seem to indicate with a diagram comment. Check the online help.
    Message Edited by altenbach on 05-22-2007 09:23 AM
    Hi, thanks for your reply.
    The reason for the main stacked sequence was to get some order to the program, my programming background's text based and as such I like to think of a program running in a list/sequence order. LabView seems strange when you've been used to programming in asm or C. Does anyone know of any books or online documentation for people migrating from text languages to LV? - I haven't found any.
    "Frame 2: Why waste an entire frame on this? Here you clear it and in the next frame you prepend the cleared string to your data. Makes sense."
    - The string 'CoordsArray' is cleared to make sure it's empty before chars concatanated to it in the next frame. Call me old fashioned but is it not good practice to clear out any junk in a variable rather than just assuming it's empty?
    "Frame 3: An autoindexing FOR loop would be the right choice. A single formating operation can handle multiple values." - not sure what you mean by that?
    "Frame 4: Writing the "coordinate string" seems useless, since you just cleared it two frame earlier. You are writing an empty string to a file! Right? Why invert the "canceled?" output, just swap the cases instead."
    - No, it's not an empty string since in the previous frame the coordinates array is converted to numbers and concatanated to it. Trust me, it generates a file with lots of data in so no way is it an empty string!!
    - Yes, you could just swap the cases instead of inverting the 'canceled' output but sometimes it reads better to say 'if NOT cancelled then DO theTask, ELSE DO nothing' rather than 'if cancelled DO nothing ELSE DO theTask'. Not sure if that makes sense but I guess it's just personal prefference there.
    "Frame 5: Unecessary! Once the VI runs out of code, the VI will stop automatically. The "stop" function also does not "close the program window" as you seem to indicate with a diagram comment. Check the online help."
    - I wasn't sure how that one would work. I wanted the final exe version to close the program window when the program comes to the end, what's the best way to do that? In the past I think I used the 'Exit' function but this would annoyingly quit LabView at the end of each trial run whilst still in the development stage.
    Thanks,
    Dave.

  • Pioneer 8400 DVD receiver player, as iPhone ios6 update now when connecting the new iPhone with ios6 via blutooth (firmware prob) to my car DVD 8400 unit, when playing music such as on my phone or Pandora the track button does not function or work at all

    pioneer 8400 DVD receiver player, as iPhone ios6 update now when connecting the new iPhone with ios6 to my car DVD 8400 unit, when playing music such as on my phone or Pandora the track button does not function or work at all not even if i press skip track forward or back on the unit it doesn't function everything works except that. on listening to radio or anything else related not pairing thru Bluetooth unit works fine, seems there to be Bluetooth update that is not making iPhone and unit not compatible at all. does pioneer need fix this problem with update firmware or thru apple need help. my iPhone was working fine before with previous ios 5 before.

    Dear Valued Pioneer Customer:
    We would like to inform you of the availability of an optional Bluetooth® firmware update (HW05-SW01.27.20) that enables Bluetooth AVRCP control and metadata display from a compatible Pioneer CD or DVD Receiver when used with an iPhone® 5 or iOS 6 device.  If you do not own an iPhone 5 or iOS 6 device, there is no need to install this update.
    This firmware update may be used only with the following 2012 Pioneer products:
    CD Receivers
    DVD Receivers
    DEH-P8400BH
    DEH-P9400BH
    DEH-80PRS
    AVH-P2400BT
    AVH-P3400BH
    AVH-P4400BH
    AVH-P8400BH
    In order to perform this update, the following items are needed:
    A Pioneer CD or DVD Receiver above with built-in Bluetooth
    Laptop with built-in Bluetooth running Windows® 7
    Bluetooth firmware update (HW05-SW01.27.20)
    How to Obtain the Free Firmware Update
    1. Download the INSTRUCTIONS for the optional Bluetooth firmware update (HW05_SW01.27.20).
    2. Download the UPDATE FILE to a computer and transfer the file to a compatible 2012 Pioneer CD or DVD Receiver via a Bluetooth-enabled Windows 7 laptop.
    You can also arrange for Pioneer to update your 2012 Pioneer CD or DVD Receiver by calling Pioneer Customer Service toll free at 800-421-1404 during regular business hours (M-F 10AM-7:30PM Eastern Time, except on holidays). If this firmware update is performed by Pioneer, there is a charge of $60.00 (this charge includes return shipping of the updated unit within the U.S.). Charges for removal/reinstallation of the unit and shipment to Pioneer are the customer’s responsibility.
    How to Determine if the Firware Update has Already been Installed
    CD Receivers:
    • With the unit turned off (press and hold the source button until the CD Receiver turns off), press and hold the center of the volume knob to bring up the Settings menu → rotate the volume knob until "BT Version Info" is displayed and then press the center of the volume knob → The firmware version should show HW05-SW01.27.20.
    DVD Receivers:
    • With the unit turned off (press the home button and select ‘OFF’ from the source icons), press the home button → Press the “System” icon at the bottom of the screen → Select the “Bluetooth Version Info” option → The firmware version should show HW05-SW01.27.20.
    If the Bluetooth firmware version shows HW05-SW01.27.20, no further action is necessary.
    Questions
    If you have any questions, please contact the Pioneer Customer Service Center toll free at 1-800-421-1404, Monday through Friday, 10:00 a.m. to 7:30 p.m. (Eastern Time), except on holidays.
    Sincerely,
    Pioneer Electronics (USA) Inc.

  • Ever since my last update I have been unable to add songs from my i tunes library onto my i phone.  The "add to" button does not appear for me when I connect my i phone.  Can anyone shed some light on this for me?

    Ever since my last update I have been unable to add songs from my i tunes library onto my i phone.  The "add to" button does not appear for me when I connect my i phone.  Can anyone shed some light on this for me?

    Thanks for that 'sberman' - because my iPhone is backed-up to my work computer (only at this stage) I have had to call our IT Department in Adleaide. (4 times this morning). The last guy managed to get the phone into 'DFU Mode' - no more recovery mode screen - (kind of 'asleep' perhaps) from my understanding of same. I am awaiting a call again from IT so they can get my computer to actually recognise my iPhone on the C Drive. This also happened to  one of my colleagues in Newman (WA). She got so frustrated with the whole process that she bought another phone the next time she was in 'civilisation.' She hasn't had any problems since. (Cross fingers).
    Thanks again, Sandra2474.

Maybe you are looking for