NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Mike Grigsby on September 14, 2012, 08:01:13 AM

Title: Deleting images with record
Post by: Mike Grigsby on September 14, 2012, 08:01:13 AM
I've been putting off dealing with deleting images associated with a client's record.

I delete the record, but I believe the pointer to the image is a URL type pointer, not a Windows pointer.

1. Do I need to also store the Windows path with the record, or build a routine to convert it to a useful Windows path?

2. My biggest problem is finding an embed point to do the delete before the record and its path info is gone.

Thanks in advance for any ideas.
Title: Re: Deleting images with record
Post by: terryd on September 15, 2012, 12:42:51 AM
Hi Mike
I'm not sure if this is answering your question but what I do is save the path to the record to a session variable before deleting the record and then delete the image using the session variable after the record deletion.
Title: Re: Deleting images with record
Post by: Mike Grigsby on September 15, 2012, 09:03:31 PM
Thank you for the suggestion Terry. I seem to always have trouble finding the right embed. I'm either too early or too late in deleting the images, but this might help.
Title: Re: Deleting images with record
Post by: Bruce on September 16, 2012, 10:35:24 PM
Hi Mike,

>> I delete the record, but I believe the pointer to the image is a URL type pointer, not a Windows pointer.

It's whatever you stored when image was uploaded, or set, or whatever.

>> 2. My biggest problem is finding an embed point to do the delete before the record and its path info is gone.

ValidateDelete routine in the Form.

cheers
Bruce