close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Updating Multiple Records

Thread began 5/01/2014 2:36 pm by Nathon Jones Web Design | Last modified 5/05/2014 9:52 am by Jason Byrnes | 1828 views | 12 replies |

Nathon Jones Web Design

Updating Multiple Records

I'm trying to follow this tutorial:
http://www.webassist.com/tutorials/Create-a-multiple-record-update-form

...but when I click Submit, no records are updated.
Page attached.

Thank you.
NJ

Sign in to reply to this post

Jason ByrnesWebAssist

Are you sure the update is not happening?

I dont see an obvious problem in the code, but consider this:

The recordset that populates the page is before the update behavior. And in the update behavior, you do not have a redirect.

What this means is, the recordset will be created before the records are updated. so when you submit the form the recordset populates with the original values, then the update code executes to update the database, then it renders the page.

If you place your cursor in the address bar an hit enter to reload the page, does it show the updated values?

Sign in to reply to this post

Nathon Jones Web Design

No, it doesn't show update values. Login access to this is provided below.
Thank you.

Sign in to reply to this post

Jason ByrnesWebAssist

the submit button does not have a value:

<input type="submit" name="updateALL" id="updateALL" value="" class="applydiscount">

the trigger is for the submit button to not be empty. add a value to the submit button:

<input type="submit" name="updateALL" id="updateALL" value="Update" class="applydiscount">

Sign in to reply to this post

Nathon Jones Web Design

If I add in a value then whatever text I enter appears over our button. How do I prevent that?
Thank you.
NJ

Sign in to reply to this post

Jason ByrnesWebAssist

Well, you cant, really.

What you could do, though, is to create a hidden element next to the submit button that has a value, and use that as the trigger by clicking the lightning bolt icon next to trigger and select the hidden form field.

Sign in to reply to this post

Nathon Jones Web Design

I've changed the submit button to type="image"...
<input name="updateALL" id="updateALL" type="image" onMouseOver="this.src='../energy-saving-light-bulbs/btn-applyoff.png'" onMouseOut="this.src='../energy-saving-light-bulbs/btn-applyon.png'" value="Update" src="../energy-saving-light-bulbs/btn-applyoff.png" style="width: 75px;height: 41px;border: 0;vertical-align:middle;" />

I've also changed the Update Multiple Records behaviour to jump out to our admin home page when we're done.

The records still don't update, and it doesn't jump us out to the admin home page...something is clearly wrong.
Re-attached with changes listed above.

Thank you
NJ

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

Nathon Jones Web Design

Those details are listed, privately, earlier in this thread.
Thank you.
NJ

Sign in to reply to this post

Nathon Jones Web Design

Sorry, FTP details...

Sign in to reply to this post
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...