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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Custom Data checkbox field delimiter
Pages: [1]

Author Topic: Custom Data checkbox field delimiter  (Read 1048 times)

matt.goodwin

  • Guest
Custom Data checkbox field delimiter
April 02, 2009, 11:28:07 am
What delimiter is being used for checkboxes when I create a custom data field?

I am trying out the custom data capabilities in civicrm. I have created a checkbox type field.
If I enter in multiple values, it is stored separated by a special character that I am not able to identify easily.
If I run a query using MySQL's ASCII and ORD functions, I get the same result: 1
SELECT ASCII(checklist_field), ORD(checklist_field) FROM civicrm_value_1_table_1
Anyone know what delimiter is being used here?
membership 1membership 2membership 3membership 4

Thanks,
ttamniwdoog

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Custom Data checkbox field delimiter
April 02, 2009, 05:09:02 pm
It's a CTRL A character. You should use CRM_Core_DAO::VALUE_SEPARATOR in the code.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Custom Data checkbox field delimiter

This forum was archived on 2017-11-26.