close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Little Trash Can (function) won't delete the record on results page

Thread began 3/29/2017 11:06 am by lr_leal239405 | Last modified 4/19/2017 6:30 pm by Ray Borduin | 105 views | 6 replies |

lr_leal239405

Little Trash Can (function) won't delete the record on results page

I don't know why the trash can won't delete the record on results page. On the details page it works fine. The code on the results page is same exact as that I have on another client's, which works, but not on this client. What is preventing it from deleting? I have attached the file. The page is: http://www.enzoscucina.com/cmsadmin/cms_results.php. I've provided login on your private msg. Thank you.

Sign in to reply to this post

Ray BorduinWebAssist

It looks like it is having issues since your unique key isn't defined as a number column and has a lot of preceding zeros. It should fix it if you update line 348 and replace this:

document.getElementById('WADADeleteRecordID').value=<?php echo($row_WADAenzosevents['CMSID']); ?>;

with this:
document.getElementById('WADADeleteRecordID').value='<?php echo($row_WADAenzosevents['CMSID']); ?>';

Sign in to reply to this post

lr_leal239405

Thanks Ray. I think the replace with is exactly the same as the one to replace. Maybe you pasted same inadvertently.

Sign in to reply to this post

Ray BorduinWebAssist

No the replace has single quotes around the ID value. That is the only difference.

Sign in to reply to this post

lr_leal239405

Thanks for your help. It's been a while since I tried to resolve this. This never worked though. Even when I deleted the leading zeros and added the single quotes it still won't delete. ?

Sign in to reply to this post

Ray BorduinWebAssist

It looks like the delete record server behavior isn't even on the page. It would have to be added back through the server behaviors panel.

You can use the "Delete" button as the trigger and the value of the "WADADeleteRecordID" field as the lookup value to delete.

Sign in to reply to this post

lr_leal239405

ok. it works now. Thanks again ! :)

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