Answers.Body: <p>In this case of altering an existing template - find the function that controls how the activities are displayed and setting the $viewLinks variable to True - as shown below.</p>
  
  <pre><code>public function alterDisplay(&amp;$rows) {
      $entryFound = FALSE;
      $activityType = CRM_Core_PseudoConstant::activityType(TRUE, TRUE, FALSE, 'label', TRUE);
      $activityStatus = CRM_Core_PseudoConstant::activityStatus();
      $viewLinks = TRUE;
      $context = CRM_Utils_Request::retrieve('context', 'String', $this, FALSE, 'report');
      $actUrl = '';
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-17T10:42:13.443Z
Answers.LastActivityDate: 2015-11-17T10:42:13.443Z
Answers.UserDisplayName: theTechnaddict
Body: <p>This is to create a dashlet - hence links do make sense!</p>
  
  <p>I know how to add a column to an existing template and create a new report template from scratch.</p>
  
  <p>In each case my limitation is that I am reliant on database fields.</p>
  
  <p>In the dashlet template that comes with CiviCRM I see this:</p>
  
  <pre><code>{sClass:'crm-contact-activity-links', bSortable:false},
  </code></pre>
  
  <p>But I don't know how to use this in a report.</p>
  
  <p>I am editing a copy of the Activity Report template (safely copied to my custom php folder)</p>
  
Tags: <civireport>
Title: (How) Is it possible to add text-links to a report?
ThreadText: # (How) Is it possible to add text-links to a report?
  
  (Asked by: username_0 on 2015-11-17)
  
  This is to create a dashlet - hence links do make sense!
  I know how to add a column to an existing template and create a new report template from scratch.
  In each case my limitation is that I am reliant on database fields.
  In the dashlet template that comes with CiviCRM I see this:
  {sClass:'crm-contact-activity-links', bSortable:false},
  
  But I don't know how to use this in a report.
  I am editing a copy of the Activity Report template (safely copied to my custom php folder)
  
  **Tags:** civireport
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2015-11-17. Score: 2
  
  In this case of altering an existing template - find the function that controls how the activities are displayed and setting the $viewLinks variable to True - as shown below.
  public function alterDisplay(&$rows) {
      $entryFound = FALSE;
      $activityType = CRM_Core_PseudoConstant::activityType(TRUE, TRUE, FALSE, 'label', TRUE);
      $activityStatus = CRM_Core_PseudoConstant::activityStatus();
      $viewLinks = TRUE;
      $context = CRM_Utils_Request::retrieve('context', 'String', $this, FALSE, 'report');
      $actUrl = '';
  
  
  ---
  
  