Hi Howie and all,
I'm having trouble passing parameters to scheduled tasks (using v2.0 of
inFusionScheduler). First, I can't figure out how to access the parameters in the
called template (URL and form scopes don't work, and neither does not specifying a
scope).
Second, when I specify more than one parameter in the URLString (using & as
delimiters), iFS ignores the Param and Value settings and doesn't look for valid
output from the executing template. If I put the URLString setting last in the
GetEvents output (for that event), then it does properly register the param and value
settings, but I'm not sure if the order matters to iFS. Is it possible to pass
multiple "url" parameters?
Here's some debug output showing what I'm doing and how iFS ignores the param/value
settings (date/time stripped for brevity):
[0] Run Template C:\Programs\Daemons\iMS\Domains\Scheduler\GetEvents.cfm. Look for
RESULT=OK.
[0] *** Process Time *** 20 ms.
[0] Application server response
(Template=C:\Programs\Daemons\iMS\Domains\Scheduler\GetEvents.cfm)
[0] Content-type: text/html
[0] option=debug
[0] ID=24
[0]
Template="c:\Programs\Daemons\iMS\Domains\\ProcTemplates\ListServer\postHandler.cfm"
[0]
URLString="listName=test%2Dl&listDomain=private%2Ewdg&listDomainID=68&EmailFile=c%3A%5CPrograms%5CDaemons%5CiMS%5CLists%5Ctest%2Dl%5CTemp%5C9F870D010DB94A4A96AD%2Email&SMTPFrom=test2%40private%2Ewdg&MessageSize=673&processToken=596&RequestTimeout=600"
[0] Param="result"
[0] Value="ok"
[0] result=OK
[0] RESULT=OK
[0] Parsing result for new events
[0] Added 1 event(s) to schedule.
[24] Run Template
c:\Programs\Daemons\iMS\Domains\\ProcTemplates\ListServer\postHandler.cfm.
[24] *** Process Time *** 10 ms.
Call EventDone.cfm
[0] Run Template C:\Programs\Daemons\iMS\Domains\Scheduler\EventDone.cfm. Look for
RESULT=OK.
[0] *** Process Time *** 10 ms.
[0] RESULT=OK
This way works(?):
[0] option=debug
[0] ID=20
[0]
Template="c:\Programs\Daemons\iMS\Domains\\ProcTemplates\ListServer\postHandler.cfm"
[0] Param="result"
[0] Value="ok"
[0]
URLString="listName=test-l&listDomain=private.wdg&listDomainID=68&EmailFile=c:\Programs\Daemons\iMS\Lists\test-l\Temp\031B28454CF222428BF9.mail&[EMAIL PROTECTED]&MessageSize=673&processToken=186&RequestTimeout=600"
[0] result=OK
[0] RESULT=OK
[0] Parsing result for new events
[0] Added 1 event(s) to schedule.
[20] Run Template
c:\Programs\Daemons\iMS\Domains\\ProcTemplates\ListServer\postHandler.cfm. Look for
result=ok.
Since I can't figure out how to get to the values in the calling template, I can't
tell if the 2nd way works or not. When I pass just one parameter in URLString, like
in the documentation example, I can't get to the value either. Any clues appreciated!
Thanks,
-Max
========================================================================
This list server is Powered by iMS
'The Swiss Army Knife of Mail Servers'
--------------------------------------
To leave this list please complete the form at
http://www.coolfusion.com/iMSSupport.cfm
Need an iMS Developer license? Sign up for a free license here:
http://www.coolfusion.com/iMSDevelopers.cfm
List archives: http://www.mail-archive.com/infusion-email%40eoscape.com/
========================================================================