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
 
 
     5/01/2014 2:36 pm  |  #1 Nathon Jones Web Design
5/01/2014 2:36 pm  |  #1 Nathon Jones Web Design  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
 5/02/2014 8:45 am  |  #2 Jason ByrnesWebAssist
5/02/2014 8:45 am  |  #2 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?
 5/02/2014 8:56 am  |  #3 Nathon Jones Web Design
5/02/2014 8:56 am  |  #3 Nathon Jones Web Design  No, it doesn't show update values.  Login access to this is provided below.
Thank you.
 5/02/2014 9:52 am  |  #4 Jason ByrnesWebAssist
5/02/2014 9:52 am  |  #4 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">
 5/02/2014 9:55 am  |  #5 Nathon Jones Web Design
5/02/2014 9:55 am  |  #5 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
 5/02/2014 9:56 am  |  #6 Jason ByrnesWebAssist
5/02/2014 9:56 am  |  #6 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.
 5/02/2014 11:30 am  |  #7 Nathon Jones Web Design
5/02/2014 11:30 am  |  #7 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
 5/02/2014 11:43 am  |  #8 Jason ByrnesWebAssist
5/02/2014 11:43 am  |  #8 Jason ByrnesWebAssist
        I'll need to troubleshoot directly, see the private message section.
 5/02/2014 11:44 am  |  #9 Nathon Jones Web Design
5/02/2014 11:44 am  |  #9 Nathon Jones Web Design  Those details are listed, privately, earlier in this thread.
Thank you.
NJ
 5/02/2014 11:49 am  |  #10 Nathon Jones Web Design
5/02/2014 11:49 am  |  #10 Nathon Jones Web Design  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.