close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Edit Multiple Updates behaviour to only update one field

Thread began 9/29/2014 10:35 am by iainmacdonald331081 | Last modified 9/30/2014 7:33 am by Jason Byrnes | 905 views | 5 replies |

iainmacdonald331081

Edit Multiple Updates behaviour to only update one field

I have a page with a Multiple Updates behavior applied which is updating two fields - one a checkbox, and one a text field.

I now need it to only update the text field.

I can't see the behavior listed in the Server behaviours panel to edit, and have looked at editing the code directly.

In the attached file, the fields are:

AY_africa_winner (checkbox, no longer needed)
AY_africa_rank (text field, still needed)

I've done this sort of thing before without problems, but keep going wrong here.

The file is as it was now, but I tried taking out the reference to AY_africa_winner on line 139.

And changing lines 140, 147, 148 and 152.

I assume I'm going wrong with the none, none NULL parts.

Presumably this is a straightforward enough edit, and I don't need to redo the whole thing?

Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

change line 138 - 140:

$WA_fieldNamesStr = "AY_africa_winner|AY_africa_rank";
$WA_columnTypesStr = "',none,''|none,none,NULL";



$WA_fieldNamesStr = "AY_africa_rank";
$WA_columnTypesStr = "none,none,NULL";



and line 147:

$WA_fieldValuesStr = "".WA_AB_getLoopedFieldValue("AY_africa_winner", $WA_multipleUpdateCounter)    
."" . $WA_AB_Split . "".WA_AB_getLoopedFieldValue("AY_africa_rank", $WA_multipleUpdateCounter)
."";



to:

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

iainmacdonald331081

Thanks Jason - that's pretty much what I was trying, but isn't working. Its fine with the original with the two fields, but with that it doesn't update the AY_africa_rank field.

I have attached an updated version, with more info below.

Sign in to reply to this post

Jason ByrnesWebAssist

Probably easiest to recreate the page then

Sign in to reply to this post

iainmacdonald331081

Thanks Jason - I spotted what was breaking it. I had commented out the input field for the field I didn't need to update, and had also commented out the hidden field for the tables ID column.

Uncommenting that fixed it.

Sign in to reply to this post

Jason ByrnesWebAssist

ok, glad to hear it is working.

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