close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Updating multiple records using checkboxes not working

Thread began 4/06/2011 4:26 am by YellowCircleWeb | Last modified 4/07/2011 8:14 am by Jason Byrnes | 1714 views | 3 replies |

YellowCircleWeb

Updating multiple records using checkboxes not working

Hi,

I'm trying to get my page to update multiple records using the DataAssist multiple update behaviour. I'm not getting any page errors, but the records are not being updated.

I've noticed too that in the multiple record update wizard when I get to the stage where I bind form values to the database field I want to update there is no option to choose my checkbox field and if I enter a literal value and finish the wizard, then re-enter the wizard upon visiting the bindings screen again my literal value is not remembered.

I've attached a copy of my page.

Attached Files
unapproved-freelancers.zip
Sign in to reply to this post

Jason ByrnesWebAssist

your checkbox does not have a checked value. Change:

php:
<input <?php if (!(strcmp($row_rsGetUnapprovedFreelancers['Authorised'],1))) {echo "checked=\"checked\"";} ?> type="checkbox" name="Approved_<?php echo $RepeatSelectionCounter_1?>" id="Approved_<?php echo $RepeatSelectionCounter_1?>" />



to:

php:
<input name="Approved_<?php echo $RepeatSelectionCounter_1?>" type="checkbox" id="Approved_<?php echo $RepeatSelectionCounter_1?>" value="1" <?php if (!(strcmp($row_rsGetUnapprovedFreelancers['Authorised'],1))) {echo "checked=\"checked\"";} ?> />



also change:

php:
$WA_fieldValuesStr = "1";



to:

php:
$WA_fieldValuesStr = "".WA_AB_getLoopedFieldValue("Approved", $WA_multipleUpdateCounter)  ."";
Sign in to reply to this post

YellowCircleWeb

Thank you Jason, it's working now.

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

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...