Tally List : mailing list management, archiving, and analysis
click for archive home
 
Archive of:
Spectra-Talk
Cold Fusion Spectra - Technical
 
home
24 hour view
quick stats
weekly updates
 
all tallylists
corporate solutions
archive your favorite
help / feedback


Search the Tallylist search by keyword:

About Spectra :
product's home
product's list home
 
  Archived TallyList / Spectra-Talk: 
Subject: RE: Updating Objects
Gilles Bertin (6p/+0r)     Posted: Friday 19 Jan 2001
This post: 38 views, +0 rating

Mary, you can add a new property to your object type definition. However, like Raymond said, the old won't have this property. You can run the following code to add this new property to your old objects:

<!--- get all the objects ---> <CFA_CONTENTOBJECTGETMULTIPLE DATASOURCE="#REQUEST.CFA.DATASOURCE.DSN#" TYPEID="objecttypeid" R_STOBJECTS="stobjects">

<!--- loop through all the objects ---> <CFLOOP COLLECTION="#stobjects#" ITEM="curobj"> <!--- update each object by setting the new property to null or any default value ---> <CFA_CONTENTOBJECTDATA DATASOURCE="#REQUEST.CFA.DATASOURCE.DSN#" OBJECTID="#curobj#"> <CFA_CONTENTOBJECTPROPERTY NAME="NewPropertyName here" VALUE=""> </CFA_CONTENTOBJECTDATA> </CFLOOP>

hope this helps.

-----Original Message----- From: Mary_Baotic@hyperion.com [mailto:Mary_Baotic@hyperion.com] Sent: Friday, January 19, 2001 8:38 AM To: Spectra-Talk Subject: Updating Objects

I have an object that is currently in use by a production site. I need to modify the object by adding a few new properties which will be arrays. Is it better to recreate an entire new object and then update the object ID in the application then to modify the actual object?

I remember that we were discouraged from updating objects.

Mary ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm ------------------------------------------------------------------------------ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a message to spectra-talk-request@houseoffusion.com with 'unsubscribe' in the body.


Similar Subject Line Posts (+/- two weeks of this post)
Re: Updating Objects  21 Jan 2001   (29 v/ +0 r)
RE: Updating Objects  19 Jan 2001   (32 v/ +0 r)
Re: Updating Objects  19 Jan 2001   (41 v/ +0 r)
Re: Updating Objects  19 Jan 2001   (31 v/ +0 r)
Re: Updating Objects  19 Jan 2001   (30 v/ +0 r)
RE: Updating Objects  19 Jan 2001 (this post)   (38 v/ +0 r)
Re: Updating Objects  19 Jan 2001   (38 v/ +0 r)
RE: Updating Objects  19 Jan 2001   (32 v/ +0 r)
RE: Updating Objects  19 Jan 2001   (26 v/ +0 r)
Updating Objects  19 Jan 2001   (25 v/ +0 r)
 

Send a reply to the Spectra-Talk list!
click to send a reply! NOTE: Many lists will reject your post unless you have already registered with them. Also - don't forget the right account to send from (for those with multiple emails!)

Feedback: If this post was exceptionally helpful, please help by giving this post a positive review.

 

TallyList : copyright Ububik - 2000