Hi!
I've got a problem with the follow up page after an update of a key field value. After the update, dbforms returns to the first record of the table, not the position, where the update was made.
If there's an update of a non key field, the framework returns to the position, where the update was made.
Is this the normal behavior of dbforms? What could I do to return to the right position after an update of key field value?
Thanks in advance +
regards T.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I checked it with the bookstore example, and I got it there too.
If I change the AUTHOR_ID field in the testBOOKSSingle.jsp to another value and save it, the framework comes back to the first record, not to the record where the update was made.
The update was successfully written to the database, but the follow up page is always the first record of the table, if the update is made in key'd field.
Any idea with this?
Thanks + regards T.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes, i have.
You are changing a key field. dbforms remembers the current index based on the key fields where you are and tries to jump back to this position. If it can not found this it shows the first page.
If you change a key field this algorithm did not work.
Regards,
Henner
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
I've got a problem with the follow up page after an update of a key field value. After the update, dbforms returns to the first record of the table, not the position, where the update was made.
If there's an update of a non key field, the framework returns to the position, where the update was made.
Is this the normal behavior of dbforms? What could I do to return to the right position after an update of key field value?
Thanks in advance +
regards T.
This should work. Could you reproduce this whith the bookstpore example?
Cheers,
Henner
OK, I will try to and give you feedback.
regards T.
I checked it with the bookstore example, and I got it there too.
If I change the AUTHOR_ID field in the testBOOKSSingle.jsp to another value and save it, the framework comes back to the first record, not to the record where the update was made.
The update was successfully written to the database, but the follow up page is always the first record of the table, if the update is made in key'd field.
Any idea with this?
Thanks + regards T.
Yes, i have.
You are changing a key field. dbforms remembers the current index based on the key fields where you are and tries to jump back to this position. If it can not found this it shows the first page.
If you change a key field this algorithm did not work.
Regards,
Henner
Ok. I see. I will try find a workaround with some extra code.
Thanks for your support + regards T.