Share » Forums » General » Edit/Change a class attribute.

Edit/Change a class attribute.

Edit/Change a class attribute.

Monday 04 October 2004 5:07:26 am - 2 replies

Author Message

Silke Fox

Monday 04 October 2004 6:35:42 am

James,

Welcome... :)

It's not possible to change the datatype of an class attribute.
You'll have to add a new attribute of type "float" to your class and
migrate the values from the old attribute to the new one.

For updating the weight - custom user attributes are stored just like any
other content objects. Within your module you'll have to
- fetch the user's content object
- get current version of the object or create new one
- set attribute value
- store content object

Have a look at the import/ export contributions at http://ez.no/community/contributions/import_export to find out details on settings content object data.

Good luck,
Silke

James Hyatt

Monday 04 October 2004 8:14:32 am

Hi Silke,

Thank you,

I had assumed the only way was to delete the attribute and create a new one but with there being some 6,000 users I was hoping I could simply edit it.

I'll take a look at the link you sent me, I need abit of time to get into the EZ way of doing things. It can be frustraiting to hit such seamingly simple barriers.

Kind Regards,

James Hyatt

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu