Answers.Body: <p>I would just do this in the display and make the case id field itself a link to <code>civicrm/contact/view/case?action=view&amp;reset=1&amp;id=[id]&amp;cid=[Case_CaseContact_Contact_01.id]</code>. The tokens would depend on your search joins - you'll find them in the <code>&lt;/&gt;</code> dropdown. The above assumes cases are the main entity, joined to case-clients.</p>
  <p><a href="https://i.sstatic.net/Gloim.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Gloim.png" alt="enter image description here" /></a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-05-31T15:48:54.387Z
Answers.Text: Thank you so much! I'm going to try that!
Answers.UserDisplayName: ezeisloft
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-05-31T17:58:34.323Z
Answers.Text: It worked perfectly. Thank you so much!!
Answers.UserDisplayName: ezeisloft
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-05-30T20:56:10.810Z
Answers.LastActivityDate: 2023-05-30T20:56:10.810Z
Answers.UserDisplayName: Demerit
Body: <p>I'd like to build a report in SearchKit/Afform to replace the default Case tab so that I can organize cases by type a bit better but I can't figure out how to add a link to open the case in the table display.</p>
  <p>What should I be looking into to learn how to make that link? Screenshot included below of the specific spot I'd like to add that link to &quot;Manage Case&quot; or &quot;View Case&quot; or something along those lines.</p>
  <p><a href="https://i.sstatic.net/ChKJW.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/ChKJW.png" alt="enter image description here" /></a></p>
  
Tags: <civicase><searchkit>
Title: Link to Case from SearchKit Table Display
ThreadText: # Link to Case from SearchKit Table Display
  
  (Asked by: username_0 on 2023-05-30)
  
  I'd like to build a report in SearchKit/Afform to replace the default Case tab so that I can organize cases by type a bit better but I can't figure out how to add a link to open the case in the table display.
  
  What should I be looking into to learn how to make that link? Screenshot included below of the specific spot I'd like to add that link to "Manage Case" or "View Case" or something along those lines.
  
  [![enter image description here](https://i.sstatic.net/ChKJW.png)](https://i.sstatic.net/ChKJW.png)
  
  **Tags:** civicase, searchkit
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-05-30. Score: 3
  
  I would just do this in the display and make the case id field itself a link to `civicrm/contact/view/case?action=view&reset=1&id=[id]&cid=[Case_CaseContact_Contact_01.id]`. The tokens would depend on your search joins - you'll find them in the  dropdown. The above assumes cases are the main entity, joined to case-clients.
  
  [![enter image description here](https://i.sstatic.net/Gloim.png)](https://i.sstatic.net/Gloim.png)
  
  > **Comments:**
  > **username_0**: Thank you so much! I'm going to try that!  
  > **username_0**: It worked perfectly. Thank you so much!!  
  
  ---
  
  