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.