CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • How to add auto increment value to a field?
Pages: [1]

Author Topic: How to add auto increment value to a field?  (Read 1294 times)

jahnabi

  • Guest
How to add auto increment value to a field?
June 17, 2008, 12:38:39 am
Hi,

Though civicrm 1.9 is not supported nowadays yet we have to use and are hence using civicrm 1.9, drupal 4.7, PHP 5.2 and mysql 5.0.
I have a customised profile that contains several fields. Now, what i want is to add auto increment value to one of these fields. I dont have mysql command prompt access however i can access phpMyAdmin. I have civicrm and drupal on same database. Here id is set as the primary key and is auto incremented.
Now, when i search my field i.e application ID (to add auto increment field) then i see only edit and drop options (no primary key, unique and index options). Moreover, when i go to edit there is no option as extra to add auto increment to it.
The whole thing works good when i use civicrm 2. Any suggestion how to proceed will be highly appreciated.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: How to add auto increment value to a field?
June 18, 2008, 12:59:59 am
This is not possible in CiviCRM v1.9. For you best solution will be creating custom data, and writing / hacking code to add this functionality.

You might want to read http://civicrm.org/node/356. But this will be part of CiviCRM v2.1.

HTH

kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • How to add auto increment value to a field?

This forum was archived on 2017-11-26.