This has had me scratching my head for ages now....
<cfset var cfcAbsence = createobject("component", "absence")>
<!--- Set up the structure and other stuff--->
<cfset stRecord.Holidays.stApproved =
cfcAbsence.search(arguments.userID,"","","",1,1)>
<cfset stRecord.Holidays.stNonApproved =
cfcAbsence.search(arguments.userID,"","","",0,1)>
<!--- Now process the structure from above--->
When I try and use stRecord.Holidays.stNonApproved later, I sometimes get the
error "stApproved.Holidays is undefined in stRecord". This happens only on our
Live server and not on my Dev box, and only sometimes when the server is under
considerable load.
The search function does plenty of looping and takes a while, but I don't
understand why the target variable doesn't get set!?
The code is all correct, and works in isolation, but why would it not set the
variable if the server is busy?
Thanks for any ideas.
Tony
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191060
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54