Tony,
It looks like your structure is "stRecord.Holidays.stApproved", but
your error message looks like there's a piece of code that thinks it's
"stRecord.stApproved.Holidays"....is there a stray line of code that
gets things backwards somewhere?
-joe
On Wed, 19 Jan 2005 11:18:08 -0400, Tony Pimm <[EMAIL PROTECTED]> wrote:
> 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
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware: a new and convenient web-based time tracking application. Start
tracking and documenting hours spent on a project or with a client with Logware
today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191063
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