If addInventory() just inserts something into the database, and you aren't
storing the entire query result set in the Inventory object as instance
data, then you don't need to do anything else.
This is all getting rather murky because you haven't actually stated what
these components are doing. So answering your questions is difficult because
the answers depend on the specific context of what you're trying to do. If
you can provide more detail, the answers will become more definite.
On 9/20/07, Vince Collins <[EMAIL PROTECTED]> wrote:
>
> So Rick, because it's scoped to application, if a user calls something
> like application.inventory.addInventory() to add a new record, at the
> end of the addInventory() method, I would just need to what?
>
> Do something like this?
>
> <cfset application.inventory = createObject("component", cfcs.inventory
> ").init(request.dsn) />
>
> Rick Root wrote:
> > If your objects are holding data, for example, a list of inventory
> > items.. you just have to make sure that whenever you ADD or UPDATE or
> > DELETE inventory, then you also update the data that the object itself
> > is holding
> >
> > Rick
> >
> >
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies
around the world in government. Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288977
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4