hi,
I have a problem with listgrid displaying a wrong newly added entry. Here is what i did to try to do a "New User Form"
1) created a listgrid with a database-backed datasource
2) create a form with the same data-source
3) the form doesn't show all fields (like it hides database row id)
4) call form.editNewRecord() to clear everything
5) let user enter in the data
6) call form.savedata()
the data is actually saved in the db. one would expect the listgrid to display a new row with the new data. It did show a new row, but the data is incorrect, it picked the first row of the list and show that as the new row. So the listgrid has two rows that's the same.
Maybe i'm using the forms incorrectly?
when I close the listgrid and re-opens it, the right data shows-up.
I have a problem with listgrid displaying a wrong newly added entry. Here is what i did to try to do a "New User Form"
1) created a listgrid with a database-backed datasource
2) create a form with the same data-source
3) the form doesn't show all fields (like it hides database row id)
4) call form.editNewRecord() to clear everything
5) let user enter in the data
6) call form.savedata()
the data is actually saved in the db. one would expect the listgrid to display a new row with the new data. It did show a new row, but the data is incorrect, it picked the first row of the list and show that as the new row. So the listgrid has two rows that's the same.
Maybe i'm using the forms incorrectly?
when I close the listgrid and re-opens it, the right data shows-up.
Comment