Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    After Save New Record, Display Wrong Data

    Hi,

    I have built a UI like this:

    1. List Grid (show all data in Oracle DB)
    2. DynamicForm (As record is clicked on ListGrid, data is shown on form)
    3. Add Button (Add new Record)
    4. Save Button (Save Record in form into DB)

    Since I use Oracle, I trigger the insert statement to set the PK by using Sequence (like mysql's AUTO_INCREMENT in PK).

    When I insert new record, I find the ListGrid display ONE more record same as the first record of ListGrid instead (This means 2 record with same PK are shown in List Grid). However, as i refresh the browser, then all records including the new record that I inserted before are shown.

    Is it error or bug of SmartGWT to handle save record issue ??

    P.S.
    I have tried insert new record by input PK value in UI, or edit the existing record and then saving it. Everything is OK.

    #2
    See the FAQ about grids not refreshing for next steps.

    Comment

    Working...
    X