Donate Share

OpenSwing

Subscribe

Field Auto-Increment

  1. 2009-11-08 00:58:40 UTC

    Hi,

    I have a application maked with OpenSwing and DB MySQL. The tables of DB have auto-increment fields. I use just Grids in my Panels. When I press in Save Button everything occur well, but the code auto-increment of the table in DB dont appear in my Grid of the OpenSwing. The code only appear if I press on Reload Button or if I call the Reload method. I would like refresh the Response to show the code on my Grid without use the Reload method.

    How I do this?

    Thanks

  2. 2009-11-08 10:30:25 UTC

    Try to set the linkGrid on Form and set the correct unique key to pkAttr which will the connection between the grid and form.

  3. 2009-11-08 10:47:06 UTC

    Thanks to answer.

    Then, I dont have a form, only Grid. When the user clicks on insert button he insert the data on Grid. When he clicks on save button the data is save on dabase, but the code (auto-increment) dont appear on Grid.

    Undertand?

    Regards

< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.