Hi Marc,

Yeah we did consider that but there was a few twists and turns to that
solution which would have resulted in us basically rewritting the core
method as a database script.

I've actually just had a bit of a brainstorm with one of the guys here
and I think we might have come up with a solution in that we just
leave the dates and run a scheduled task to wipe any redundant data at
a later stage.

Cheers,
James

On Jan 18, 11:30 am, "Marc Esher" <[EMAIL PROTECTED]> wrote:
> I've never heard of anything native in CF for doing this.
>
> I'm going to assume that if you're asking this there isn't much use in going
> back to the 3rd party tool creators and asking them to add listener hooks.
>
> but what about doing it the old fashioned way: putting a trigger on your DB
> that looks for changes from 1 to 0 in that column and then responds
> appropriately.
>
> Best,
>
> marc
>
> On Jan 18, 2008 6:11 AM, Clarkee21 <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Hi guys,
>
> > I'm a bit of an OO newbie so I was wondering if someone on here might
> > be able to help me find an approach to my problem.
>
> > I have two methods -
> > Method #1 is a core part of a 3rd party open source application we're
> > running in-house.
> > Method #2 is part of a plugin I'm developing for this application.
>
> > Method #1 is used to simply switch a section of a page on or off. In
> > other words is sets a DB field "visible" to 0 or 1 depending on the
> > section's current status.
>
> > Method #2 is used to reset two date fields in my table.
>
> > What I want to do is somehow have method #2 executed the moment method
> > #1 has run but, and here is the twist, I don't want to have to rewrite
> > anything in method #1 or it's object. This is mainly because a) we're
> > planning to release this back out into the community at a later stage
> > so I'd rather have it as a single directory of stand-alone files and
> > b) it would mean we'd have to insert the code into method #1 again and
> > retest if we ever upgraded.
>
> > Is there anyway that method #2 can "listen" for method #1 being
> > executed without method #1 being aware that there is anything else
> > going on?
>
> > Cheers,
> > James- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CFCDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfcdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to