close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Original File Not Saved on Update Page

Thread began 5/16/2010 11:08 pm by siteontime | Last modified 5/24/2010 2:08 pm by Jason Byrnes | 1755 views | 5 replies |

siteontimeBeta Tester

Original File Not Saved on Update Page

I have worked on this issue for hours and tried every solution I could find in the forums with no luck.

I have an insert record page and an update record page. The insert record page works perfect and the user can add a pdf file.

On the update record page the file is cleared from the database if the user does not upload a new file. I have tried binding to the field in the database as well as to a hidden form field that contains the name of the file. Either way the field is cleared. If I upload a new file it is uploaded and stored. The issue is only if I press update and do not upload a new file.

I have seen other posts with the same issue , but have not been able to find a resolution. Attached is my file. Thanks for your help.

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

Jason ByrnesWebAssist

In the update record behavior, you have bound to the Server Simple File Name variable, use the Server File Name variable instead.

Sign in to reply to this post

teresa328019

I am having the same problem with the update form...but I have bound to the Server File Name. If I don't happen to update a file, it is deleted from the field.

Sign in to reply to this post

Jason ByrnesWebAssist

Please post a copy of your page so i can examine the code.

Sign in to reply to this post

teresa328019

I tested it on only a couple of fields, starting on line 800.

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

Jason ByrnesWebAssist

To retain the value in the database on update, you have to create a hidden form field for each file field, set the value of the hidden form field to get the value stored in the corresponding recordset column.


Then in the upload file server behavior, Bind the default file to the hidden form element.

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