Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Programmatically Scheduling (Nothing to do with CFSCHEDULE)

Status
Not open for further replies.

webmigit

Programmer
Aug 3, 2001
2,027
US
I need to allow users to schedule activity on a certain day.. I will of course use CFSCHEDULE to handle tha automated part.. my question is about how I should set this up.

All tasks are going to be the same.. an email will be sent.. but I need to let the user specify basically anything... What date its to be sent on, specify a date range... or specify by day, or just one time, or all of that stuff..

Is it better to setup scripts to hand it off to CFSCHEDULE or is it better to actually let the user set up scheduled tasks? There could be a whole lot of tasks..

Thoughts here guys?

Tony

ALFII.com
---------------------
If this post answered or helped to answer your question, please reply with such so that forum members with a similar question will know to use this advice.
 
Who are ya? :)

you could copy the form in the CF administrator in the schedule settings. That would cover your options. If it were me I'd do some script formatting of the data and then do a cfcatch and cftry. if they manage to put in good data set the schedule with <cfschedule> if not have it email you the data and enter it manualy. Come to thtink of it i'd probably have it email me anyway just to see the data compaired to the scheduled task.

Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.
-Douglas Adams (1952-2001)
 
Haha...

I was just curious on whether you guys thought a direct interface to cfschedule would be an alright idea..

I mean, re-inventing the wheel just to work with the wheel is not a good idea.. but when you've got to idiot-proof something (and trust me, I've got to idiot-proof this).. sometimes re-inventing the wheel is the way to go..

Tony

ALFII.com
---------------------
If this post answered or helped to answer your question, please reply with such so that forum members with a similar question will know to use this advice.
 
I know what you mean that's why I suggested the catch try manual option. :)

Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.
-Douglas Adams (1952-2001)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top