Iuse the following to set and run a scheduled task:

                <cfschedule
                  action="UPDATE"
                  task="#FORM.TaskName#"
                  operation="HTTPRequest"
                  url="#CompleteURL#"
                  startdate="#FORM.StartDate#"
                  starttime="#FORM.StartTime#"
                  enddate="#FORM.EndDate#"
                  endtime="#FORM.EndTime#"
                  interval="#FORM.Interval#"
                  RequestTimeout="#FORM.RequestTimout#"
                >

As you can see, all the input is from a form (I set today's date and 
time as the default starting date and time & blank as the end time

Runs on CF 4.5

HTH

Dick




At 4:38 PM -0700 7/17/01, S R wrote:
>Hi,
>
>I've never been able to get cfschedule to work programmatically but I really
>need to so it this time. The problem I'm trying to solve is to create a form
>that someone can fill out to time exactly when their press release goes
>live. They create the press release and save it as a 'work in progress' then
>I've created a form that they will specify when they want it to become
>'Live'. I'm 'hardcoding' dates and times right now just trying to see if it
>works and it is not. Is it supposed to show up in the CFAdmin as a new task
>once I run this page?
>
>I'm using CF 4.5 and my interval in CFAdmin is set to 15.
>
>Here's my code:
>
><CFSET StartDate = #DateFormat("#Now()#", "mm/dd/yyyy")#>
><CFSET StartTime = #TimeFormat(#CreateTime(16,  20,  0)#, "h:hhtt")#>
>
><cfschedule task="PublishPress" action="RUN"
>url="http://www.mypath.com/myfolder/mySubFolder/act_publish.cfm";
>startdate="#StartDate#" starttime="#StartTime#">
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to