5514 Posts in 1733 Topics by 1219 members
|Go to End|
21 January 2011 at 8:06am
I have custom member class with extra fields and nice working registration forms - one for users and another for customers (adding users to group "Customers")
I would like to add automatically generated customer ID to each customer (auto increment, working like an ID, but since there are other users which are NOT customers, these should not get this unique customer ID)
Is this possible to do?
Thanks in advance
1 February 2011 at 2:43pm
whats your database? in MYSQL obviously you cant have two auto increment fields for the same table.
but you will be able to run some formula to get this done using the onBeforeWrite or onAfterWrite functions of dataobjects, and with the help of DataObjectDecorator
|Go to Top|