alazzaro Posted July 28, 2005 Posted July 28, 2005 I'm trying to send an email (containing information from the deleted record) whenever a record is deleted. Here's the story. Every record represents an appointment with a professor. Whenever the professor can't make the scheduled appointment, he/she can cancel the appointment. With such cancellation, the student should receive a cancellation email stating that his/her appointment (with all the pertinent details: time, location, date, etc.) was cancelled. The problem: since the record has already been deleted, how to pass along all the record fields to the send email XSL stylesheet? I use the send_email function to send email: [...] An error occured while sending the student an email A cancelation email was sent to the student. [...] The above code sends the email. Nevertheless, since the record has been deleted, nothing is passed in the third argument of the send_email function. I've tried passing $request-query as the third argument, but I'm not sure how to extract that XML node in 'appointment_cancel.xsl'. Any pointers? Thanks, Adrien p.s. an abbreviated and commented version of 'appointment_cancel.xsl' is included as an attachment. appointment_cancel.xsl.zip
beverly Posted August 4, 2005 Posted August 4, 2005 I'd have to test throughly, but if you delete a record and just display the XML, do you still get the record data? This used to be the case... If so, then you must use the data of the current record in your email.
Martin Brändle Posted August 8, 2005 Posted August 8, 2005 I second Beverly's comment. The XML data of the deleted record is still kept. Look at the following thread http://fmforums.com/forum/showtopic.php?tid/139914 for an example.
Recommended Posts
This topic is 7045 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now