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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wddx syntax?

Status
Not open for further replies.

alsjka

Technical User
Jan 21, 2003
114
US
Hello, I am retrieving my scheduled tasks and get an error if one of the tasks do not contain say for example end_time. What would be the sytnax to skip outputing the struct if the value is not there.

<cfobject type="JAVA" action="Create" name="factory" class="coldfusion.server.ServiceFactory">

<cfset allTasks = factory.CronService.listAll()>

<cfset numberOtasks = arraylen(allTasks)>

<cfloop index="i" from="1" to="#numberOtasks#">
<cfoutput>
Task Name = #allTasks.task#<br>
URL = #allTasks.url#<br>
Interval = #allTasks.interval#<br>
Start_Date = #allTasks.start_date#<br>
Start_Time = #allTasks.start_time#<br>
Path = #allTasks.path#<br>
File = #allTasks.file#<br>
resolveurl = #allTasks.resolveurl#<br>
publish = #allTasks.publish#<br>
pswd = #allTasks.password#<br>
pswd = #allTasks.operation#<br>
username = #allTasks.username#<br>
http_port = #allTasks.http_port#<br>
http_proxy_port = #allTasks.http_proxy_port#<br>
proxy_server = #allTasks.proxy_server#<br>
disabled = #allTasks.disabled#<br>
request_time_out = #allTasks.request_time_out#<br>

<!--- Need to skip here --->

<cfif isdefined("value.end_time")> <!---Improper syntax--->
end_time = #allTasks.end_time#<br>
</cfif>

</cfoutput><br>
<hr>
</cfloop>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top