JClient: after INSERT and COMMIT does not show the primary textfield value

1. In my JClient master-detail form: When I insert a new record, enter data, and commit the changes... the master-panel's primarykey textfield is BLANK, when it should show the new auto-incremented number from the MySQL database. I have to close and open the form again to refresh that field again.
2. In order to properly save new records in the detail-panel, I have to insert and save the above master-panel first. Is this the way JCLient handle master-detail forms?
Thanks.

Hi. Thanks for sharing your advice.
Re my problem,
if we have to refresh data by requery,i suggest you should use the way below:
private JUNavigationBar navBar = new JUNavigationBar(true,false,true,false,true);
navBar.setModel(JUNavigationBar.createPanelBinding(panelBinding, navBar));
// after insert ,call this method
navBar.doAction(navBar.BUTTON_EXECUTE);Tried this out but my textfield still won't get refreshed. Here is the code I came up with:
    private JUNavigationBar navBar = new JUNavigationBar() {
            public void doAction(int button) {
                if (button == JUNavigationBar.BUTTON_INSERT) {
                    super.doAction(button);
                    navBar.doAction(navBar.BUTTON_EXECUTE);
                    return;
                super.doAction(button);
        };Re your problem,
I am developing application with JDev + MySQL,encounted another problem,
how can i get the primary key supported by auto_increment column after insert?
i constructed a vo whose sql statement is
select last_insert_id() as last_id to get the value of auto_increment column.
i found it can't get the right value unless commit the transaction.
Would u please tell me your way?Based on what I experienced, we dont have to do the SELECT statement above. MySQL does auto-increment the primarykey but the JClient form just cant show it immediately, unless we close and re-open the form.
What did I do to refresh the primarykey during insert? Please note that I got this solution accidentally coz I'm still a newbie in Java.
A user want to add a record:
1. He presses the Insert button.
2. He enters data into a component (ex. textfield)
3. The component's action-performed event is fired, and the following code is run:
        DCJboDataControl dc = (DCJboDataControl)panelBinding.getDataControl();
        ApplicationModule am = dc.getApplicationModule();
        Transaction tr = am.getTransaction();
        dc.commitTransaction();
        ViewObject vo = am.findViewObject("TblaccountsView1");
        vo.executeQuery();
        vo.last();It simply commits the transaction, goes to last (new) transaction, and lets the user continue his data encoding.
Hope it helps and I hope theres an even better way to do this.

Similar Messages

  • Problem with Signing in itunes with my id. After signing in it does Not Show the Apple id and they are asking 3 Times if i wanna download Songs I have already bought but which are not on this iphone

    Dear community, I'm experiencing a problem since 2 days, that if I sign in in my iTunes account with my Apple ID on my iPhone it doesn't show at the end if scrolling down the ID details and credit anymore. If I try to download songs I bought once but which are not on this device anymore, it asks me 3 times for the ID and password. I fill it in but at the end nothing happens. I see only in the middle a moving symbol.
    What can I do? Apple ID and password are correct . I canceled all settings but same as before.
    Many thanks in advance.

    AJ Green wrote:
    My wifi only iPad 2 has GPS, and a compass/accelaerometer to determine which direction I am facing.  You need to enable location services.
    Your wifi-only iPad does not have GPS. Read the specs for your device.

  • I have an imac and I set up additional user accounts.  When I start up or restart the computer it only shows me the option of logging on as the system administrator and it does not show the other accounts for my wife and kids.

    When I start up my additional user accounts do not show so I can log onto them.   The same thing happens when I log out as the system admin.  How do I get to the additional accounts that I have set up on my imac so I can log in under them.   Thanks

    There is zero advantage to partitioning a HD for the purpose you have described. I recommend that you take your machine to an AASP, describe the problem and they will help you get it back working. Partitioning a HD is a 1990's approach and is of no value what-so-ever unless you installing multiple operating systems on the HD. In that case it would be valuable.
    Good luck.

  • I log onto my school website and firefox does not show the links to discussion boards? I have contacted the Professor and the links are showing on his end. I do online classes and have for a few years and have not had this problem before.

    I need to do school work, I do online classes and when I log on to my school the links for my discussion boards do not show up. I have not had this problem before. Please help.

    Please click the '''Solved''' button next to the answer that solved your question.

  • DP96 does not show the billing request value in simulation or update mode

    Hi SD experts,
    Another RRB related question.
    Unlike DP91 (individual BR) which you can run in simulate and see the amount to be billed, qty to be billed and net value before creating the billing request, this does not appear to be possible with DP96 (collective BR), even though the net result (after runing in update mode) is the same.
    Have queried this with SAP who have said this is not supported.
    Are there any BADIs or exits available which would allow these values to be shown in the ALV display when run in test mode?  The retrieval would have to access saved data (from VPKHEAD) or dynamic data according to the option selected in the selection screen.
    Thanks in advance for any advice or suggestions on how to do this.
    Regards,
    Guy HInton

    Hi Guy
    what you need to do is this. run DP96 and choose "save extract" in the options on the selection screen. In the detail lst you then get a message "Extract saved" for each processed contract item.
    This will save the amounts to be billed in the cluster of tables VPKHEAD, VPKSDITEM, VPKDI and links to the dynamic item AD01DLI as well as contracts VBAK, VBAP and projects PRPS.
    These tables happen to be used in DP91 to store extracts as well. You will get a popup for all those contracts asking you "Do you want to use saved data?" now.
    What that ultimately does is that DP96 creates all the data holding cost & associated revenue.
    All you need to do then is create a bespoke report or SAP Query (or whatever you want to use), join the named tables and present it to your user. This way I created a Revenue forecast report which shows all revenue for time worked/cost incurred which we should be invoicing in the current financial period, but haven't created the billing requests or invoices yet.
    As said I just used SQ03/SQ02/SQ01 to create a simple infoset and query and it works a treat . Example of th join seen below. Note that you may have to alter joined table according to your needs potentially.
    Bjorn

  • NWA logs and trace does not show the content of Default trace

    Hi All,
    The content which i see in /usr/sap/SID/DV*/j2ee/cluster/server0/log/default trace
    i am unable to see the same in default trace in NWA logs and traces,
    It is a 7.0 system..
    Coudl you please suggest.
    Rgds
    S

    Hello,
    Is it newly built system? Please compare log and trace levels with other java systems in your landscape.
    You can give a try as following..
           1.      Goto NWA and click on Log Configurator service.
           2.      Switch to advanced mode.
           3.      Select the Location tab page.
           4.      Choose the location of default.trc file.
           5.      Save the configuration
           6.      Restart JAVA and see.
    Thanks,
    Siva Kumar
    Edited by: Siva Kumar Arivinti on Jan 12, 2012 3:36 PM

  • Hello am using ios 7.0.4 I have a question about messages that it does not show the time of a particular message after first message that I recive form a paricular person so please in the next version change this and with every message show time and date

    hello am using ios 7.0.4 I have a question about messages that it does not show the time of a particular message after first message that I recive form a paricular person so please in the next version change this and with every message show time and date

    Hi,
    How is everything going? Have you checked this issue from OWA? If so, please let me know the result.
    In adition, please also try to use the following powershell commands to check if the assistant has right permissions:
    Get-MailboxFolderPermission -Identity
    CEO’s email address:\Calendar -User assistant’s email address
    Also check with:
    Get-Mailbox -Identity CEO’s mailbox
    | fl *GrantSendOnBehalfTo
    Please let me know the result.
    Best Regards,
    Steve Fan
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • After update to IOS 6.0, on the iPhone 4 and 4s, emails can not be forwarded. I tried to resync, but the update does not show the forwarding buttons anymore.

    After update to IOS 6.0, on the iPhone 4 and 4s, emails can not be forwarded. I tried to resync, but the update does not show the forwarding buttons anymore.

    Have the same issues here, 3GS 5.0.1. Did you find any solutions until today ?
    I restored my phone, power up/down but nothing helps with my issues
    greetings
    /Edit:
    Maybe I should read carefully your text so I can give you some more information.
    my phone was updated via itunes.
    some hours ago the phone charged up to 5% but than directly draining to zero...
    can't help me with these issues...

  • InsertRow does not show the inserted row on the view

    hello:
    The code below works well and shows the row on the view when added. However, when there are several existing rows and I have to scroll to next pages. an insert button on that page does not show the new Row at all. Is there a way for me to see the row even if I scroll over to the last page and try an insert?
    ViewObject myVO = this.getMyView();
    Row newRow = myVO.createRow();
    newRow.setAttribute("Id", myId);
    myO.insertRow(newRow);
    Thanks

    Hi,
    I also have problems with code above for inserting a new row.
    When I insert a new row in a table and click on column header (to change sorting), that row (and any other new row before committing) disappears from table. And if I commit that table (without missing row), the missing row reappears with next refresh.
    Selection in that table (using SelectOne component with Autosubmit=true) also doesn't work with new rows (with existing rows it works fine). Selection allways sticks on first inserted row!
    Something weird is happening here...
    Please help.

  • My Iphone5 does not show the picture location after upgrading to ios 7.0.4 - why?

    my Iphone5 does not show the picture location after upgrading to ios 7.0.4 - why?

    I change Settings>Privacy>Location Services>Camera to OFF and then ON and the locations start to appear !!!!.
    It seems to be Apple bug.
    Thanks for you efforts

  • HT4972 i got my new iphone 4s , can not download the OS 5 it says error 9006 on my windows 7. also the phone does not show the capacity and serial number details on the itunes summery ?? please help

    i got my new iphone 4s , can not download the OS 5 it says error 9006 on my windows 7. also the phone does not show the capacity and serial number details on the itunes summery ?? please help

    Hi Kevin,
    The iPhone 4S comes automatically loaded with iOS 5, and any updates after iOS 5.0 can be completed directly from on the phone in Settings > General > Software Update. If you are having trouble using iTunes to update software, I suggest you reset iTunes so that you can pair your phone to the computer again, because if you can't see the serial number and capacity, that generally means your phone isn't paired.  For any problems this doesn't fix, please contact Apple directly through their automated help line, 1(800)MYAPPLE.

  • After install snow leopard, ical does not show the events of some calendars

    After I install snow leopard, ical does not show all the events, or simple does not show the events of some calendars that I created.
    Can somebody solve this problem? Is there some update for ical?

    Try the following:
    1 - Go to your user account home folder, and open the library folder within it.
    Look for the folder named "Calendars" and inside you might find a bunch of different folders with weird names. If they are there that means your calendars might not be lost.
    2 - Look for the file "Calendar Cache". That file might be corrupted. Trash it. You may want to save a copy of it elsewhere. Once trashed, re-open ical. This should force it to rebuild its library based on those folders with weird names you saw. Your calendars should be back. Good luck

  • My wife ran the battery down in her shuffle.  When I plug it in to the wall or computer, it will blink red solid for about 3 seconds and then shut off.  Is the battery that dead, or is something else wrong.  ITunes does not show the shuffle

    My wife ran the battery down in her shuffle.  When I plug it in to the wall or computer, it will blink red solid for about 3 seconds and then shut off.  Is the battery that dead, or is something else wrong.  ITunes does not show the shuffle

    Hi Jennsman40,
    Welcome to Apple Support Communities.
    If this symptom persists even after you charge your iPod Shuffle, see this page for some troubleshooting steps:
    http://www.apple.com/support/ipodshuffle/assistant/itunes/
    Best,
    Jeremy

  • HT1338 i lost my iphone and my macbook pro does not show the icloud in system pref. What do i do? how do i download icloud?

    I lost my iphone and my macbook pro does not show the icloud in system pref. how do i get icloud on my mac?

    iCloud is only available in Lion, 10.7. You will have to upgrade to Lion in order to get into iCloud. If you transfered a .mac or .me address to iCloud through mobile me, or you have another device iCloud enabled, then you can log into the iCloud.com website.

  • HT1498 I rented a movie and it does not show up on my apple tv but is in my video app on my phone.   How can I watch it on my tv

    I rented a movie and it does not show up on my apple tv but is in my video app on my phone.   How can I watch it on my tv?

    A movie rented on an iPhone can only be viewed on an iPhone. If you want to view on TV you need to rent directly on ATV or via computer (and stream using home-sharing)

Maybe you are looking for