Answers.Body: <p>For point 1 i found that the code was in 
  CRM/Case/Form/ActivityTab.tpl which i believe is called from CRM/Case/Form/CaseView.tpl</p>
  
  <p>I changed the figure from 10 in here to 100:</p>
  
  <pre><code>oTable = $('#case_id_'+CaseId).dataTable({
   "bFilter": false, 
  ...
  ...
   "sAjaxSource": sourceUrl,
   "iDisplayLength": 100,   
   "bDestro": true
  ...
  ...
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-14T23:23:57.823Z
Answers.LastActivityDate: 2015-10-14T23:23:57.823Z
Answers.UserDisplayName: Bruce
Answers.Body: <p>Point 1 is probably not the part, that just reads from the array $rows. I think you have to go to CRM/Case/Form/CaseView.tpl and change the 10 in here to 100:</p>
  
  <pre><code>  oTable = cj('#activities-selector').dataTable({
      "bFilter"    : false,
      "bAutoWidth" : false,
      "aaSorting"  : [],
      "aoColumns"  : columns,
      "bProcessing": true,
      "bJQueryUI": true,
      "asStripClasses" : [ "odd-row", "even-row" ],
      "sPaginationType": "full_numbers",
      "sDom"       : '&lt;"crm-datatable-pager-top"lfp&gt;rt&lt;"crm-datatable-pager-bottom"ip&gt;',
      "bServerSide": true,
      "sAjaxSource": sourceUrl,
      "iDisplayLength": 10,
      "fnDrawCallback": function() { setSelectorClass(); },
      "fnServerData": function ( sSource, aoData, fnCallback ) {
  
        if ( filterSearch ) {
          var activity_deleted = 0;
          if ( cj("#activity_deleted:checked").val() == 1 ) {
            activity_deleted = 1;
          }
          aoData.push(
            {name:'status_id', value: cj("select#status_id").val()},
            {name:'activity_type_id', value: cj("select#activity_type_filter_id").val()},
            {name:'activity_date_low', value: cj("#activity_date_low").val()},
            {name:'activity_date_high', value: cj("#activity_date_high").val() },
            {name:'activity_deleted', value: activity_deleted }
          );
        }
        cj.ajax( {
          "dataType": 'json',
          "type": "POST",
          "url": sSource,
          "data": aoData,
          "success": fnCallback
        } );
  </code></pre>
  
  <p>But try! And it is best to modify this in an extension. The same for number two, identify the button and hiding it in a specific template which you add with a combination of buildForm or pageRun hook and CRM_Core_Region like so:</p>
  
  <pre><code>CRM_Core_Region::instance('page-body')-&gt;add(array(
      'template' =&gt; 'yourtemplate.tpl'
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-08T06:26:06.173Z
Answers.LastActivityDate: 2015-09-08T06:33:06.293Z
Answers.LastEditDate: 2015-09-08T06:33:06.293Z
Answers.UserDisplayName: ErikH - CiviCooP
Answers.Body: <p>I'm trying to make the same change in 4.7, but everything seems to have changed. Where should I be looking now for these CiviCase activity table display tweaks? Thanks.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-08T17:45:48.947Z
Answers.LastActivityDate: 2016-02-08T17:45:48.947Z
Answers.UserDisplayName: Jern
Answers.Body: <p>Point one has been addressed by <a href="https://github.com/civicrm/civicrm-core/pull/8298" rel="nofollow">this improvement</a> which will remember users' preference about how many rows to display (using local browser storage, so works even between sessions).</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-27T02:41:46.113Z
Answers.LastActivityDate: 2016-05-27T02:41:46.113Z
Answers.UserDisplayName: Coleman
Body: <p>I would like to change two aspects of the Activities table on the Civicase summary screen. </p>
  
  <ol>
  <li>Change the default number of rows to be shown from 10 -> 100</li>
  <li>Also have a filter to automatically hide the actvity 'edit custom data' which is created whenever any custom data relating to the case is updated.  This is especially relevant as i'm using Multiple case clients and this seems to create 3 instances of the activity 'change custom data' (if there are 3 clients) for each single edit of the data.  </li>
  </ol>
  
  <p>For number 1, 
  I've looked into the templates and have so far found the template . /CRM/Case/Page/CaseDetails.tpl is being called.  I think the bit concerned is 
  {foreach from $rows item row} , </p>
  
  <p>I've not got to point 2 yet.  </p>
  
  <p>Any answers or guidance very much appreciated. </p>
  
Tags: <activities><civicase>
Title: Civicase activity table default options
ThreadText: # Civicase activity table default options
  
  (Asked by: username_0 on 2015-09-07)
  
  I would like to change two aspects of the Activities table on the Civicase summary screen.
  
  1. Change the default number of rows to be shown from 10 -> 100
  2. Also have a filter to automatically hide the actvity 'edit custom data' which is created whenever any custom data relating to the case is updated. This is especially relevant as i'm using Multiple case clients and this seems to create 3 instances of the activity 'change custom data' (if there are 3 clients) for each single edit of the data.
  
  For number 1,
  I've looked into the templates and have so far found the template . /CRM/Case/Page/CaseDetails.tpl is being called. I think the bit concerned is
  {foreach from $rows item row} ,
  
  I've not got to point 2 yet.
  
  Any answers or guidance very much appreciated.
  
  **Tags:** activities, civicase
  
  
  ---
  
  ## 4 answers
  
  ### Answer by username_0 on 2015-10-14. Score: 1
  
  For point 1 i found that the code was in 
  CRM/Case/Form/ActivityTab.tpl which i believe is called from CRM/Case/Form/CaseView.tpl
  I changed the figure from 10 in here to 100:
  oTable = $('#case_id_'+CaseId).dataTable({
   "bFilter": false, 
  ...
  ...
   "sAjaxSource": sourceUrl,
   "iDisplayLength": 100,   
   "bDestro": true
  ...
  ...
  
  
  ---
  
  ### Answer by username_1 on 2015-09-08. Score: 1
  
  Point 1 is probably not the part, that just reads from the array $rows. I think you have to go to CRM/Case/Form/CaseView.tpl and change the 10 in here to 100:
    oTable = cj('#activities-selector').dataTable({
      "bFilter"    : false,
      "bAutoWidth" : false,
      "aaSorting"  : [],
      "aoColumns"  : columns,
      "bProcessing": true,
      "bJQueryUI": true,
      "asStripClasses" : [ "odd-row", "even-row" ],
      "sPaginationType": "full_numbers",
      "sDom"       : '<"crm-datatable-pager-top"lfp>rt<"crm-datatable-pager-bottom"ip>',
      "bServerSide": true,
      "sAjaxSource": sourceUrl,
      "iDisplayLength": 10,
      "fnDrawCallback": function() { setSelectorClass(); },
      "fnServerData": function ( sSource, aoData, fnCallback ) {
  
        if ( filterSearch ) {
          var activity_deleted = 0;
          if ( cj("#activity_deleted:checked").val() == 1 ) {
            activity_deleted = 1;
          }
          aoData.push(
            {name:'status_id', value: cj("select#status_id").val()},
            {name:'activity_type_id', value: cj("select#activity_type_filter_id").val()},
            {name:'activity_date_low', value: cj("#activity_date_low").val()},
            {name:'activity_date_high', value: cj("#activity_date_high").val() },
            {name:'activity_deleted', value: activity_deleted }
          );
        }
        cj.ajax( {
          "dataType": 'json',
          "type": "POST",
          "url": sSource,
          "data": aoData,
          "success": fnCallback
        } );
  
  But try! And it is best to modify this in an extension. The same for number two, identify the button and hiding it in a specific template which you add with a combination of buildForm or pageRun hook and CRM_Core_Region like so:
  CRM_Core_Region::instance('page-body')->add(array(
      'template' => 'yourtemplate.tpl'
  
  
  ---
  
  ### Answer by username_2 on 2016-02-08. Score: 0
  
  I'm trying to make the same change in 4.7, but everything seems to have changed. Where should I be looking now for these CiviCase activity table display tweaks? Thanks.
  
  
  ---
  
  ### Answer by username_3 on 2016-05-27. Score: 0
  
  Point one has been addressed by [this improvement](https://github.com/civicrm/civicrm-core/pull/8298) which will remember users' preference about how many rows to display (using local browser storage, so works even between sessions).
  
  
  ---
  
  