On 9/20/07, Vince Collins <[EMAIL PROTECTED]> wrote:
>
> If I add a new method in inventory.cfc called addInventory(), do I need
> to worry about resetting/refreshing the query qryInventory which is

Well, if you add a new method, you'll have to reinit the app, because
once you've loaded the CFC into the application scope, the CFC file
itself is not read again.  Changing the file doesn't take affect until
the object is recreated.

So, if you modify the code in the CFC *AFTER* the application has been
initialized, then you have to reinit... in the code that I gave you,
you do that by passing ?reinit=1 to the URL of your index page (or
reallly any page).

This will cause your initialization code in the application.cfm file
to fire, which will recreate the object, call the init() method, and
that would reload the query data from the database.

-- 
Rick Root
Check out CFMBB, BlogCFM, ImageCFC, ImapCFC, CFFM, and more at
www.opensourcecf.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288993
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to