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 CiviReport (Moderator: Dave Greenberg) »
  • Filtering and sorting Membership Report
Pages: [1]

Author Topic: Filtering and sorting Membership Report  (Read 991 times)

JMM

  • I post occasionally
  • **
  • Posts: 67
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.40
  • PHP version: 5.4.33
Filtering and sorting Membership Report
December 06, 2014, 09:43:19 am
Hi,

I feel a bit desappointed with CiviReport :
- I would like to select an Organization (or Source) (I have several different ones, independant from one-another)
- I would like to sort by Membership Type (and then Name)

Is there any possibility to do that ?

4.5 Demo does not seem to propose any enhancement in this area, either.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Filtering and sorting Membership Report
December 07, 2014, 09:03:33 am

You can help fix your disappointment :)

can you and/or your organization develop and contribute the report you need as an extension?

this will help you and avoid disappointing other folks looking for a similar report down the road

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

JMM

  • I post occasionally
  • **
  • Posts: 67
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.40
  • PHP version: 5.4.33
Re: Filtering and sorting Membership Report
December 08, 2014, 07:23:09 am
Hi Lobo,

Thank you for answering me.

I'd really be happy to follow your suggestion, but I am not really a programmer (and have none knowing CiviCRM) : I have just some limited skills :
- I can read and understand CiviCRM MySQL Tables and structure
- I can write (or modify) an SQL request (e.g. to include a new field like membership_type from the pertaining joined Table)
- I can also probably make some limited PHP modifications, provided that someone tells me in which PHP file(s)
- and I can test.

This does not seem too complex, but requires that someone tells me :
- where is the SQL request to modify
- which PHP file(s)
Would you ?

As an alternative, I also envisioned to use an external tool like FPDF (http://www.fpdf.org/?lang=en), besides CiviCRM, directly plugged to the CiviCRM DB, which I feel I could manage (based on PHP scripts provided on their site).

But of course, I'd prefer a CiviCRM consistent and integrated solution, compared to this hardcoded one.

Thanks again for your help

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Filtering and sorting Membership Report
December 08, 2014, 08:18:54 am

developer docs answers most/all of your questions. Check:

https://civicrm.org/participate/developer
http://wiki.civicrm.org/confluence/display/CRMDOC/Develop

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

JMM

  • I post occasionally
  • **
  • Posts: 67
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.40
  • PHP version: 5.4.33
Re: Filtering and sorting Membership Report
December 08, 2014, 02:23:00 pm
Well !

I am going to climb the cliff (at least try to ...)

One question to begin : should I modify the current Membership Detail Report (adding one column, one or two filters, and one or two sort criteria), or create a new one (and then how should I name it ?) ?

I'll come back to you within a few days (time for me to learn and try) ;

In the meanwhile, I would appreciate any more help that you can

Thanks in advance


JMM

  • I post occasionally
  • **
  • Posts: 67
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.40
  • PHP version: 5.4.33
Re: Filtering and sorting Membership Report
January 14, 2015, 10:24:06 am
Hi Donald,

I did my best, but did not succeed : I am not skilly enough with PHP, nor familiar enough with Civi programming architecture

I finally developped a spare and interim standalone report, using FPDF and direct connexion to the DB (by simply modifying a public PHP example) ; of course, not flexible as could be wished.

FYI, I enclose a copy of this program (just change .txt to .php) (it requires an argument to select the Source)

Anyway, I remain interested in Membership Detail report improvements.

Thanks a lot for your attention

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: Filtering and sorting Membership Report
February 08, 2015, 12:18:00 pm
Hi JMM,

I just saw this thread, and you'll be happy to know that completely independently of this, I added the ability to sort the Membership Detail report by membership type just this week!  It should be merged into Civi 4.6.
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

JMM

  • I post occasionally
  • **
  • Posts: 67
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.40
  • PHP version: 5.4.33
Re: Filtering and sorting Membership Report
February 09, 2015, 12:32:29 am
Hi JonGold,

That's good news

Will there also be the ability to select only one Source (Organization) ?

If yes, it would be super !

Anyway, thank you ; I look forward to seing that.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • Filtering and sorting Membership Report

This forum was archived on 2017-11-26.