close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Spaces and Apostrophes Prevent Updates/Deletes

Thread began 10/26/2011 10:07 am by sharon431370 | Last modified 10/26/2011 12:44 pm by Jason Byrnes | 1704 views | 3 replies |

sharon431370

Spaces and Apostrophes Prevent Updates/Deletes

I have a table named "positions." The sole column within the table is named "position." It's also the primary key. I used the DataAssist Wizard to generate Results, Insert, Update and Delete pages. Everything is fine until I insert values with spaces or apostrophes, like

Vice President
President's Assistant

The data inserts fine, but it refuses to update or delete. I don't get any error messages -- after clicking the button on either the update or delete pages I end up back at the results page with unchanged/undeleted data.

Other punctuation marks may/may not cause this problem. Once I found the 'root' I started looking for a solution.

Any help is appreciated!! I bought the Dynamic Suite so I wouldn't have to hand-code as much, and I'm a little perplexed that it (seemingly) can't handle routine operations on a one-column table. (It could always be user error, of course!)

Thanks,
Sharon

Sign in to reply to this post

Jason ByrnesWebAssist

  The sole column within the table is named "position." It's also the primary key  



this is not a good idea for the table design, and is the cause of the issue you are having.

the primary key column of your database should be a numeric column that you set to also auto increment, you want to make sure that the primary key column cannot have duplicate information, it is the unique identifier in your database.


the minimum table set up I would recommend is 2 columns, numeric primary key, Auto Increment column and a text column.

positions:
positionID - integer, Primary Key, Not Null, Auto Increment
positionName - varchar(45)

Sign in to reply to this post

sharon431370

Thanks!

It *was* user error -- thanks for your help, it worked like a charm!

Sign in to reply to this post

Jason ByrnesWebAssist

no worries.

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