Thanks Mike, I changed the cfa_objectTypeProperty not to check for system
objects and it worked.

Pankaj.

-----Original Message-----
From: Michael Collins [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 25, 2001 10:50 AM
To: Spectra-Talk
Subject: RE: Adding a new property to the userprofile...


Pankaj,

You are trying to change a system type.  The COAPI will not let you do this.

In the UserProfile type you have a property called preference, which is a an
embedded object type.  If you open this type you will see it is a name/value
type which can hold any number of dynamic fields you wish to associate to
any user.

If you are still determined to add your own property you will need to
temporarily change the object to be a non-system object or temporarily
change cfa_objectTypeProperty not to check for system objects.

Mike
-----Original Message-----
From: Pankaj Singh [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 25, 2001 9:48 AM
To: Spectra-Talk
Subject: Adding a new property to the userprofile...



I am trying to add a new property to type "userprofile". In the type
designer when I click on the widget to add a new property I don't see an add
button. So, I tried 

<cfa_objectTypeProperty 
    action = "create"
    dataSource = "#request.dci.datasource#"
    typeID = "70E7DFBF-A67E-11D2-B3AC00C04FA35A23"
    propertyName = "comprevenue"
    propertyDefinitionID = "968A2611-66B3-11D3-AD4D0060B0EB2994">

But it gave me the following error,

Type update failed
 
Attempt to update a system type 70E7DFBF-A67E-11D2-B3AC00C04FA35A23. The
system types cannot be updated.
Custom tag stack:

CFA_OBJECTTYPEPROPERTY (error detected) 

Is there any other way I can add this new property ? I am working on 1.0.1.
Any help would be appreciated.

Thanks,

Pankaj.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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 [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to