[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: timing queries..
try appendToResponse:inContext .
Schrecengost, James wrote:
> Okay gang, here's something that has plagued me for a while, and I finally
> understand what is happening, so I can ask a good question, rather than "It
> doesn't work - help!".. Here 'tis.
> I have a child component that gets a single object from a repetition from
> it's parent.
> I need to use data from this object to query the DB for what the child is
> showing.
> This query needs to run immediately, thus showing the resulting data.
> Now, when I set up the .wod like this:
> Child: WOChild {
> childObject = currentObject;
> }
>
> it doesn't work. Now I figured out why. Because, I put the DB Fetch in
> either the Constructor, or the awake methods.
> And, WO, for whatever reason, decides to run those before assigning the
> childObject (where it gets the info for the query)..
> Any ideas how to get around this?? Thanks!
>
> These opinions are mine, and not necessarily those of my employer.
>
> James 'Ghostman' Schrecengost
> Johns Manville, Electronic Commerce Team
> schrecen@jm.com
> 303-978-2677