Answers.Body: <p>If you can open the report file from your codebase, you can add the entity name to the <code>_customGroupExtends</code> variable array initialized at the top of the file of almost every report in CiviCRM.</p>
  
  <pre><code>protected $_customGroupExtends = array('Contact');
  </code></pre>
  
  <p>The above line will include all contact custom set in your report. You can add <code>Individual</code>, <code>Membership</code> to display custom group extending these entities too.</p>
  
  <p>To see which file is used for the report, you can refresh the result to get a <code>Developer</code> tab which contains the class name used to display the result.</p>
  
  <p><a href="https://i.sstatic.net/BGTc8.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/BGTc8.png" alt="enter image description here"></a></p>
  
  <p>So the file which is used in above report is - </p>
  
  <p><code>/path_to_civicrm/CRM/Report/Form/Member/Detail.php</code></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-10T10:33:23.257Z
Answers.Text: ok great I will try this and let u know if it works. Thank you
Answers.UserDisplayName: Vish Ramakonar
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-12T00:08:54.733Z
Answers.Text: Hi Jitendra.how do I locate the file for this report to update the code?  Sorry Im having trouble finding it
Answers.UserDisplayName: Vish Ramakonar
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-12T03:01:50.403Z
Answers.Text: updated the answer to locate the file for the report
Answers.UserDisplayName: jitendra - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-15T05:25:40.080Z
Answers.Text: Great - you can accept this answer with a green tick to complete this question on SE.
Answers.UserDisplayName: jitendra - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-10T10:18:10.297Z
Answers.LastActivityDate: 2018-04-12T03:01:36.937Z
Answers.LastEditDate: 2018-04-12T03:01:36.937Z
Answers.UserDisplayName: jitendra - fuzion
Answers.Body: <p>Look for custom fields in a fieldset below the ‘standard’ report fields - here’s an example for another type of report - but clearly shows the custom data sets (if they have been marked searchable in the custom data set configuration) as fieldsets in the report - click them open and you’ll see the custom fileds</p>
  
  <p><a href="https://i.sstatic.net/JsorN.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/JsorN.jpg" alt="enter image description here"></a>
  Second thought: Extended Report extension: <a href="https://civicrm.org/extensions/extended-reports" rel="nofollow noreferrer">https://civicrm.org/extensions/extended-reports</a> - you can download/install it from your Manage Extensions screen. It introduces a number of report templates - some of which will have many customfields extended (in fieldsets) so no core code edit required.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-10T13:57:11.623Z
Answers.Text: Thanks KarinG  we already have extended reports but couldnt find one that meets our criteria.   The current report is showing me custom fields for memberships but I need to access the custom fields for Contacts
Answers.UserDisplayName: Vish Ramakonar
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-11T04:03:31.980Z
Answers.Text: In that case you’lll have to either make the edit Jitendra mentions above directly in core or add a custom_php override and just override that report
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-10T12:10:34.687Z
Answers.LastActivityDate: 2018-04-10T12:10:34.687Z
Answers.UserDisplayName: KarinG - Semper IT
Body: <p>I have created some custom fields for Contacts and want to display these fields in a membership report that we call member mailing list.  However I am unable to see the custom fields for Contacts as display columns in the report even though they are marked as searchable</p>
  
  <p><a href="https://i.sstatic.net/Iy60W.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Iy60W.png" alt="enter image description here"></a></p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-04-10T10:07:13.673Z
Comments.Text: Do you see any core contact field in the columns? `first_name`, `last_name`, etc?
Comments.UserDisplayName: jitendra - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-04-10T10:08:35.253Z
Comments.Text: Yes I can see the core contact fields.  Just not the custom ones
Comments.UserDisplayName: Vish Ramakonar
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-04-10T10:10:47.793Z
Comments.Text: can you share the screenshot of the report criteria?
Comments.UserDisplayName: jitendra - fuzion
Tags: <civireport>
Title: How do you display custom Contact fields in Membership reports?
ThreadText: # How do you display custom Contact fields in Membership reports?
  
  (Asked by: username_0 on 2018-04-10)
  
  I have created some custom fields for Contacts and want to display these fields in a membership report that we call member mailing list. However I am unable to see the custom fields for Contacts as display columns in the report even though they are marked as searchable
  
  [![enter image description here](https://i.sstatic.net/Iy60W.png)](https://i.sstatic.net/Iy60W.png)
  
  **Tags:** civireport
  
  > **Comments:**
  > **username_1**: Do you see any core contact field in the columns? `first_name`, `last_name`, etc?  
  > **username_0**: Yes I can see the core contact fields.  Just not the custom ones  
  > **username_1**: can you share the screenshot of the report criteria?  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2018-04-10. Score: 2 | Accepted answer
  
  If you can open the report file from your codebase, you can add the entity name to the `_customGroupExtends` variable array initialized at the top of the file of almost every report in CiviCRM.
  
  ```
  protected $_customGroupExtends = array('Contact');
  
  ```
  
  The above line will include all contact custom set in your report. You can add `Individual`, `Membership` to display custom group extending these entities too.
  
  To see which file is used for the report, you can refresh the result to get a `Developer` tab which contains the class name used to display the result.
  
  [![enter image description here](https://i.sstatic.net/BGTc8.png)](https://i.sstatic.net/BGTc8.png)
  
  So the file which is used in above report is -
  
  `/path_to_civicrm/CRM/Report/Form/Member/Detail.php`
  
  > **Comments:**
  > **username_0**: ok great I will try this and let u know if it works. Thank you  
  > **username_0**: Hi username_1.how do I locate the file for this report to update the code?  Sorry Im having trouble finding it  
  > **username_1**: updated the answer to locate the file for the report  
  > **username_1**: Great - you can accept this answer with a green tick to complete this question on SE.  
  
  ---
  
  ### Answer by username_2 on 2018-04-10. Score: 2
  
  Look for custom fields in a fieldset below the ‘standard’ report fields - here’s an example for another type of report - but clearly shows the custom data sets (if they have been marked searchable in the custom data set configuration) as fieldsets in the report - click them open and you’ll see the custom fileds
  
  [![enter image description here](https://i.sstatic.net/JsorN.jpg)](https://i.sstatic.net/JsorN.jpg)
  Second thought: Extended Report extension: <https://civicrm.org/extensions/extended-reports> - you can download/install it from your Manage Extensions screen. It introduces a number of report templates - some of which will have many customfields extended (in fieldsets) so no core code edit required.
  
  > **Comments:**
  > **username_0**: Thanks username_2  we already have extended reports but couldnt find one that meets our criteria.   The current report is showing me custom fields for memberships but I need to access the custom fields for Contacts  
  > **username_2**: In that case you’lll have to either make the edit username_1 mentions above directly in core or add a custom_php override and just override that report  
  
  ---
  
  