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
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
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?
No, it doesn't show update values. Login access to this is provided below.
Thank you.
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">
If I add in a value then whatever text I enter appears over our button. How do I prevent that?
Thank you.
NJ
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.
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
I'll need to troubleshoot directly, see the private message section.
Those details are listed, privately, earlier in this thread.
Thank you.
NJ
Sorry, FTP details...
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.