CreateInsert button problem

Hello all. I have a problem. I have created an adf table based on a view, with 3 entities (3 database tables) with the appropriate 1 to many associations.
I then dragged the CreateInsert button above the table, and then the commit button.
When I run the page and click on the CreateInsert button, nothing happens. It just loads, but never creates an empty row where one could possibly write into the table. I should also state that all of the attributes are updatable I checked the entity that created them and the view and the always button is clicked.
Here is the code for the button
<af:commandToolbarButton actionListener="#{bindings.CreateInsert.execute}"
text="CreateInsert"
disabled="#{!bindings.CreateInsert.enabled}"
id="ctb1"
partialTriggers="t1"/>
I really have no idea why it does not work but am wondering if it has something to do with the view being composed from more than one entity (database table), and therefore it creating rows in 3 tables at the same time. Is this even possible?
If anyone can help I would greatly appreciate it

My entity object did not even have a create method. I saw you can click it in the java tab of the entity, should I do that now, and create it?
Also how do I create a trigger for a database sequence? I have created both trigger and sequence in the database but I do not know how to bind it to the primary key in my table, does it have a partial trigger wizard that I can use?
Edited by: Dino2dy on Jun 4, 2010 2:39 AM
After I changed my Entity attribute to be DB Sequence and generated a create method, I get a -2 in my attribute field as an automatic value when I click CreateInsert and then when I type in all the values and click Commit, I get this error:
Error: Cannot convert -2 of type class java.lang.String to class oracle.jbo.domain.DBSequence
Cannot convert -2 of type class java.lang.String to class oracle.jbo.domain.DBSequence
Any solution?
Edited by: Dino2dy on Jun 4, 2010 2:59 AM
After adding the following code at the end of my create method
protected void create(AttributeList attributeList) {
super.create(attributeList);
SequenceImpl seq = new SequenceImpl("OBJEKTI_SEQ", getDBTransaction());
setObjekatId(seq.getSequenceNumber());
I get an error, saying that setObjekatId (Number) cannot invoke setObjekatId (oracle.jbo.domain.DBSequence) in ObjektiImpl
What should I do? Should I even be doing this?
Edited by: Dino2dy on Jun 4, 2010 3:23 AM

Similar Messages

  • Difference b/w create and createInsert button

    hi,
    what is the difference b/w create and createInsert button in ADF data control.

    first go through
    https://forums.oracle.com/forums/ann.jspa?annID=56
    next look
    http://jjzheng.blogspot.in/2010/04/create-or-createinsert.html
    ADF Faces & BC: Difference between Create and CreateInsert.

  • Caller screen Buttons problem Z10STL100-1

    I have Z10STL100-1 after official update Z10STL100-1/10.3.1.1565 having caller screen Buttons problem these are little above not like it's on 10.2 very below position. I security wipe and restart many times still same position of buttons? See pic attached

    Hello,
    Did you check if there are no objects on that index slide that have a fading transition? You should set the transition for every object to 'No transition'. The transition can be found in the Properties dialog, tab Options.
    Lilybiri

  • Apart from the lock button problem in iphone 5 the display brightness suddenly goes blank and becomes normal after locking and unlocking the iphone. The Apple service centre in India is denying to service the iphone as it was purchase in USA even thoug it

    Apart from the lock button problem in iphone 5 the display brightness suddenly goes blank and becomes normal after locking and unlocking the iphone. The Apple service centre in India is denying to service the iphone as it was purchase in USA even though the iphone is in warranty.

    iPhones do not have an international warranty.  Warranty is valid only for the country of purchase.  This is most likely because different countries require different iPhone models.  Not reasonable to expect all countries to maintain stock for all models.

  • **URGENT** Scene button problem!

    Why my 'maps' and 'video' buttons do not play the movie? I use this code:
    on(release){gotoAndPlay("play");}
    I have labelled "play" in other scene, but it does not play the movie!
    I have tried this code:
    on(release){gotoAndPlay("Scene 36", "play");}
    Still, it does not work as well! I got deadline this week, so I need your help ASAP!
    I got other button problems on every scene! It's frustrating!
    Please download my flash file to look at my flash product!
    http://www.4shared.com/file/24177440...6d/Maps_1.html

    Nope it doesn't work , I got my deadline this week and if you got a spare time, would you please download my flash and check and repair it please! Only two buttons need refitting and nothing else! I asked my teachers, they tried their best and couldn't find what the problem is. I looked through other forum website, I tried the solutions and it doesn't work! I am really behind as there are many failure in my project! This is my first flash creation.

  • Naming Buttons - Problem with using Captivate 7 Buttons to Open URL or File

    After spending too much time troubleshooting a button problem, I discovered the importance of naming each item in a Captivate project.
    For some reason I have yet to figure out, publishing to SWF from Captivate causes buttons to function arbitrarily. In my case, I had eight buttons pointing to external URLs, three that worked and five that didn't. All of the buttons pointed to the same external website, only to different PDFs hosted on that site. Each button was named with the default "Button_X" convention as set by Captivate. After trying lots of different settings adjustments, On Enter and On Exit actions, and Play/Pause timings, I did what I should've done from the beginning; changed the names of the buttons.
    Why this worked? I don't know. I've seen hints on other discussions as to SWFs not working well when there are a lot of unnamed or default-named items. If there's some logic to this I would be happy to know it, but for a default setting to cause such a bizarre problem is beyond my comprehension. I could understand if I had named the buttons incorrectly, but I didn't do anything to them; I left them with the names created by default.
    Hopefully this helps someone else resolve a similar issue and, if anything, encourages everyone to follow best practices and use a clear file naming conventions for all projects.

    Hi there
    Perhaps the link below will help?
    Click here to view
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • K button problems

    K button problems on keyboard. Has to be pressed harder than all the other butons on the keyboard. Ive tried going on  command prompt and pressing it, and its the same. I am running windows 7 pro.

    you probably need to get a new keyboard if you have a model number i can send you a link on what you need thanks 

  • HT1688 iPhone 4 home button problem

    Good afternoon,
    I have an iPhone 4 and it still in good condition but sometimes, the Home button doesn't respond quickly or doesn't respond at all. What to do?

    I seem to have fixed my iPhone 4 home button problems.
    1. Sync phone and back up.
    2. Go back and resync phone but uncheck all the apps you have purchased/downloaded so that your iphone will have no additional apps on it.
    3. Now reset your phone as a NEW PHONE.
    4. When reset as NEW, unplug it and try home button functions. I'll bet they work just fine, like mine did.
    5. Now that you are satisfied you can resync your apps, but be choosey. Re-install only a couple at a time, and test your home button each time. You'll soon find out which of your apps is causing the problem. It's time consuming and irritating, but it certainly works.
    So far - no problems with my selected re-installed apps. My home button works fine.
    However, I recently purchased several photography apps and an emoticon app and that was when the problems appeared to have started.
    So I've been very selective in putting only the apps I want back on ... for now.
    Hope this helps.
    I will report back to tell you if this complicated but effective solution has worked for me.

  • Home button problem in iphone 3g 3.0

    After upgrading my iphone 3g to 3.0 software, the home button has become so unresponsive, i have to click it 6-10 times sometimes to awake it. I mean what is it, dont you check the update before making it available to public, i mean its annoying, my 2 other friends have same problem as mine, they are on iphone 3g too. even 3.0.1 behaves the same way. comeon folks, become professional, kindly fix this thing in next firmware release.

    I had exactly the same problem - I bought my iphone 3gs last week, upgraded it and had the 'home button' problem. I tried all the fixes - restarting, resetting to factory settings, reloading update, etc. Then, a few days later, it all sorted itself out - no idea what happened, but since then my home button has been working perfectly! I have a feeling the factory reset and reload of update might have been the one that eventually did the trick...but since then, touch wood, it has been working perfectly. I would suggest trying the factory reset and see if that helps...make sure you back up first though!

  • Mega 865 - HiFi Button problems !

    Mega 865 - HiFi Button problems.
    Hi,
    I recently had some problems with the LCD display on the 865 and after
    following the very technical (wiggle the power cable) instructions, i got
    the LCD display working again, but now my HiFi button doesn't work
    has anyone experienced this before ??
    The radio/lcd display works fine in media centre
    cheers.

    I refer to this post https://forum-en.msi.com/index.php?threadid=66148
    I did this and the LCD display came back on again but now the hifi button doen't work

  • Anti virus's and home button problem

    Hi
    1)i want to
    We Need antiviruse in My iPhone 5s ?
    2)how to understand my iPhone when produce???
    Due to home button problem .
    Thanks

    There is no home button problem, the problem is with the power button on some iPhone 5 devices: https://ssl.apple.com/support/iphone5-sleepwakebutton/

  • G750 power button problem

    Hi guys,
    So the problem with my laptop is that when I press the power button, the power button itself and the two leftmost lights below the touchpad- power and battery- they light up for a second or two. But the laptop doesn't start up and the lights go off. If I long press the power button, the laptop starts, though.
    Now this is not a severe problem as of now, I know. But I'm pretty sure this will escalate into something else. Does anyone know what the problem actually is and what I can do to solve it? 
    P.S.: Unlike people with power button problems, I didn't do anything with the hardware or software.

    Hi Sanjana,
    Welcome to Lenovo Community!
    I’m sorry to hear that the Power button is not working as expected in your G750 Laptop. I would suggest you to perform the Flee-Power, below are the steps to perform the same:
    Remove the battery and any other peripheral device connected to the computer.
    Hold the power button for 10-15 seconds and then connect only the AC Adapter and try to turn ON the computer.
    If the issue persists even after performing Flee-Power, I would suggest you to contact our Technical Support for further Assistance to get the details of the nearest Authorized Service Center to get the issue analyzed.
    Click here to open a link where you can select the country and get the exact contact support number. I’m sure they will be a great help.
    Do post us back for further queries.
    Best Regards
    Shiva Kumar
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • Power Button Problem NO MORE HP!!!

    Tried everything to fix my power button, but no way,NO MORE HP.
    Today, one of my friends also had power button problem, even his laptop was one of the newest model.

    Model?

  • HP Dv7t Volume Slider Button Problem...​.........?

    Hello, i own a Hp Dv7t Notebook, in the past week my laptop has been acting differnet, My promblem starts with the volume slider button. The volume slider button is located at the top of my notebook and is touch sensitie when you run your finger over it. Before my problem the button when used would adjust the volume and make a "clicking" sound while displaying a window showin g the current volume level......Now, for some reason the button doesnt work in the same fashion as before......now when u use it the button makes no clicking sounds nor displays a windows that it used to, this problem is rather small but it has also enabled my volume to be lower than normal.......but i must say that the button does still work, it adjusts the volume as it should but doesnt do the other things..........i am computer literate and do no how to fix many of my system malfunctions, but this one has me stumped........Sorry for such a long post but i would really appriciate some help, THANK YOU!!!!!!!!
    HP Customer;
    Evan C. Ford
    Email Me Please    <text removed for privacy>
    Message Edited by WendyM on 10-26-2009 12:05 PM

    It sounds like my problem was very similar to tlee's.
    All it took was doing a cold reboot, I found the solution here: http://h30434.www3.hp.com/t5/Hardware/HP-dv4-1225d​x-Quick-Launch-Button-Problems/m-p/272053#M29072
    When tech support couldnt fix it I asked for the number to call and return my laptop. Finding that thread changed my mind.

  • I want to make some checks before calling CreateInsert button

    I have data control I added the CreateInsert button
    but I need before calling the create comment button action to do some java checks and if this checking return true then the commit will be done but if it return false no save will be done
    Edited by: belal on 13/09/2011 04:38 ص

    have an actionlistener for you comkti button.. that binds to the maanged bean
    <af:commandbutton actionlistener="#{Bean.doCheckAndCommit}">
    public void doCheckAndCommit(ActionEvent actionEvent){
    if(check){ // if check passed the n commit the code
    BindingContainer bc = BindingContext.getCurrent().getCurrentBindingsEntry();
            OperationBinding op = bc.getOperationBinding("Commit");
            op.execute();
    }

Maybe you are looking for