close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Insert multiple records behaviour not working.

Thread began 7/12/2016 7:34 am by s.joiner74419001 | Last modified 11/16/2020 6:11 pm by Ray Borduin | 773 views | 14 replies |

s.joiner74419001

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.

Sign in to reply to this post

Ray BorduinWebAssist

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.

Sign in to reply to this post
Did this help? Tips are appreciated...

msbannister373603

Multiple insert not working

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

Sign in to reply to this post

Ray BorduinWebAssist

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.

Sign in to reply to this post
Did this help? Tips are appreciated...

anonymous

It didn't work

Sign in to reply to this post

Ray BorduinWebAssist

Please attach the updated file.

Sign in to reply to this post
Did this help? Tips are appreciated...

anonymous

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

Sign in to reply to this post

Ray BorduinWebAssist

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.

Sign in to reply to this post
Did this help? Tips are appreciated...

anonymous

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

Attached Files
childSelect.php
insertPlayer.php
main.php
Sign in to reply to this post

Ray BorduinWebAssist

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.

Sign in to reply to this post
Did this help? Tips are appreciated...
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...