Hi,
I've got a page that I'm making with ASP to let teachers login and leave comments for their students. I've got one part of the form that is a yes/no question. If the user clicks yes, a new window is launched with another short form asking for missing assignments from the student. If the user inputs the information, goes back to the previous page and completes that form also, everything works fine.
The problems come up when the user clicks no to the question and goes about finishing to form. When they press submit, the DB is never updated.
The problem is that I've got the Insert Record Behavior on the second form that is opened. The behavior on the original page is an Update behavior. Obviously, you can't update a record that has never been inserted.
Is there any way I could make this work? All the data that is being inserted goes into one table because of the need to be able to delete all the information at once about a particular comment (long story). Is there any kind of "Update If...Otherwise Insert" kind of extension that anyone knows about? Or does anyone know of a way that I could make this work?
If you want to take a look at the offending pages, there at Use Adamo as username and test as password. Then click on enter comments, pick a student name, and have a look at the form.
Thanks,
Spencer
I've got a page that I'm making with ASP to let teachers login and leave comments for their students. I've got one part of the form that is a yes/no question. If the user clicks yes, a new window is launched with another short form asking for missing assignments from the student. If the user inputs the information, goes back to the previous page and completes that form also, everything works fine.
The problems come up when the user clicks no to the question and goes about finishing to form. When they press submit, the DB is never updated.
The problem is that I've got the Insert Record Behavior on the second form that is opened. The behavior on the original page is an Update behavior. Obviously, you can't update a record that has never been inserted.
Is there any way I could make this work? All the data that is being inserted goes into one table because of the need to be able to delete all the information at once about a particular comment (long story). Is there any kind of "Update If...Otherwise Insert" kind of extension that anyone knows about? Or does anyone know of a way that I could make this work?
If you want to take a look at the offending pages, there at Use Adamo as username and test as password. Then click on enter comments, pick a student name, and have a look at the form.
Thanks,
Spencer