0

Similar to this question, I'm interested in having my reports export states/provinces with the abbreviation instead of the full name. The accepted answer in that case was to use an Advanced Search rather than a Report -- but in my case there is no advanced search to get the contacts I need and I'm using a custom report, so I need to figure out how to do this in the CiviReport side.

1 Answer 1

1

Take a look at the "Contributions by Organization Report". CRM/Report/Form/Contribute/OrganizationSummary.php and the line:

$rows[$rowNum]['civicrm_address_state_province_id'] = CRM_Core_PseudoConstant::stateProvinceAbbreviation($value, FALSE);
1
  • Thanks – this core report helped me tweak the custom report I have been using enough to get what I need. I appreciate the pointer.
    – Laryn
    Feb 27, 2018 at 18:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.