DMXzone Database Updater ASP Support Product Page
Answered
Inserting record on one page and redirecting to another page
Asked 21 Jan 2014 17:50:51
1
has this question
21 Jan 2014 17:50:51 Steve Skinner posted:
I have already created a working database insert test on another page, and I wanted to test the same functionality while using a separate page from the insert form and the results list. My page is here:
aspadmin.scriptsource.com/testform1.asp
On this page, I set up the database action executor, using my global "insertContact" database action, and I correctly mapped the form fields to the fields in the database action. On the Options tab, I did not select Asynchronous, but did select Alert Errors. Then, I click the behaviors button on the Options tab, and selected "When the action is successfully executed" and I assigned the "Go To URL" behavior, and told it to redirect to my page that shows the contacts list.
I noticed first of all that the required fields are not enforced, and clicking the button does nothing. Why isn't this working?
Replies
Replied 21 Jan 2014 20:22:19
21 Jan 2014 20:22:19 Teodor Kuduschiev replied:
Hello Steve,
The problem on this page seems to be that the Data Bindings includes(js) are missing, as you are not using any data on the page. Is there a specific reason for you to divide the form and results on different pages instead of using them on one page with show/hide regions?
The problem on this page seems to be that the Data Bindings includes(js) are missing, as you are not using any data on the page. Is there a specific reason for you to divide the form and results on different pages instead of using them on one page with show/hide regions?
Replied 21 Jan 2014 21:37:03
21 Jan 2014 21:37:03 Steve Skinner replied:
Well, I was testing to see if it could be done this way because I have many situations where the forms for entry and edit are very large (lots of fields). A layout like what you have in your tutorials just doesn't work with large forms. I'm trying to figure out how to best handle that situation. I probably deal with just as many large forms (10+ fields) as I do smaller ones.