close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

data assist not able to update record

Thread began 12/13/2010 2:52 am by kris517211073 | Last modified 12/14/2010 10:15 am by Jason Byrnes | 1079 views | 7 replies |

kris517211073

data assist not able to update record

i just simply can not update even single record with data assist update record
i have attached the file below
Please help me.
thanks very much.

Attached Files
UPdate_products.zip
Sign in to reply to this post

Dave BuchholzBeta Tester

Your problem is that you are using a recordset value as the update value see line 103 of your page:

php:
$WA_where_fieldValuesStr = "".$row_rsProducts['ProductID']  ."";



What you need to do is add a hidden form element that contains the product id and us that instead, see the revised page I have attached on the correct method.

Attached Files
UPdate_products.php.zip
Sign in to reply to this post

kris517211073

i using data Assist wizard to do the update single record
How can I do that with wizard then? what is key column value need to set when i run the wizard?
how can i prevent this from happen when i run the update record wizard?

Sign in to reply to this post

kris517211073

I have also find out that when update button press it's not redirect on submission
i have use your revised page it wont update same problem
i need help how to run the wizard?

Sign in to reply to this post

Jason ByrnesWebAssist

pages created by the wizard will have a querystring set for the action of the form to pass the ID on form submit, for example:

php:
<form  action="Update_products.php?ProductID=<?php echo(rawurlencode($row_rsProducts['ProductID'])); ?>" method="post" name="UpdateForm" id="UpdateForm">




it looks like the forms action was changed after running the wizard to be blank.

Sign in to reply to this post

kris517211073

why when after i runing wizard the action of the form was blank, i have attempt a couple of time still all blank, how can i set the key column value when run wizard?

Sign in to reply to this post

kris517211073

i thinks i mess up the PHP code so I just delete my current page and create a new page and manually enter the querystring set for the action of the form page as you instructed
and then add a hidden form element contains the product id as the update key value, now is ok

the problem now is solve, but why when everytime i run the wizard it's left the form action blank and even no hidden form element inserted

how can i prevent this from happen again? is there any solution? please help

thanks very much for your help.

Sign in to reply to this post

Jason ByrnesWebAssist

I'm not able to reproduce the problem.

can you provide some details on your system:

What is your OS?
What Version Of Dreamweaver?
What version of DataAssist?

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