Insert multiple records behaviour not working.
I am trying to use the 'Insert multiple records behaviour' but it does not submit any values to the database.
Not sure where i'm going wrong.
Ive attached the page.
Thanks in advance.
I am trying to use the 'Insert multiple records behaviour' but it does not submit any values to the database.
Not sure where i'm going wrong.
Ive attached the page.
Thanks in advance.
It looks like a hidden form element that was supposed to be created when the server behavior was applied didn't get created properly. You can add it manually to fix the problem.
Add this to line 636:
<input type="hidden" name="source_mihidden_<?php echo $RepeatSelectionCounter_1; ?>" id="source_mihidden_<?php echo $RepeatSelectionCounter_1; ?>" value="1" />
Then update line 241 to:
$WA_loopedFields = array("source");
I think you must have made a mistake in your bindings. It looks like you have bound all of the inserted fields to recordset values. Usually one or more of the bindings would be set to a repeated field in the repeated region. To do that select the repeated field from the dropdown list on the bindings tab. I think that was the source of the original problem and the hidden field not being created properly in the first place.
I think I may be having this same issue. I think the hidden field being created is incorrect. Once I apply the behavior the names of my fields change. I've attached the page. Can you help me get it working
You have two multiple insert server behaviors applied on the page. Delete the old one on lines 17-39 and see if that fixes the problem.
Please attach the updated file.
Oh. I don't have the original file. I couldn't get it to work so I just deleted and figuered I'd start over. Got frustrated
I mean the current file that isn't working. I'll need to look at that to tell you why it might not be working.
Here is the file. Thx for taking a look. I also added the dependent drop downs. I can't get that to work either. I get a SQL error on the child page. I'm rusty as I'm trying to get back into the swing. Tough time with the extensions. Thx
Mike
You don't have form method="POST" but your inserts are based on posted form values. Your trigger is based on the GET form... I'd update the form to POST and then update the server behavior to reset the trigger.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.