Answers.Body: <p>When you create (save) your smart group, following an advanced search, you also have a saved search in parallel, with an ssid (while the smart group has a gid) : look at the URL (that you can save and re-use).</p>
  
  <p>I found no place in the User Interface where you can then retreive this ssid, but it is stored in the civicrm_saved_search table, that you can easily display with phpmyadmin.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-30T19:41:00.253Z
Answers.Text: Can you add it to the Navigation Menu via civicrm/admin/menu?reset=1
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-12-07T18:48:21.830Z
Answers.Text: Jacques-Marie, I tried to identify what could I possibly use from that civicrm_saved_search table to create a search link, but failed to understand.
  
  I'd be grateful, if you could provide some examples, how to locate the saved search in that table and to build an URL with that data.
Answers.UserDisplayName: Aivars
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-30T17:23:43.530Z
Answers.LastActivityDate: 2016-11-30T17:23:43.530Z
Answers.UserDisplayName: Jacques-Marie Moranne
Answers.Body: <p>A partial solution is listed here: <a href="https://civicrm.stackexchange.com/questions/86/change-the-default-fields-columns-in-contact-search-results">Change the default fields (columns) in contact search results</a></p>
  
  <blockquote>
    <p>You can set this custom search profile with the reduced columns as a default for all contact search results (besides participants) in /civicrm/admin/setting/search?reset=1.</p>
  </blockquote>
  
  <p>A major drawback is that I'd like to use <strong>different columns for different searches</strong> rather than the <strong>default profile for <em>all</em> searches</strong>.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-25T10:53:32.910Z
Answers.LastActivityDate: 2016-11-25T10:53:32.910Z
Answers.LastEditDate: 2017-04-13T12:53:13.017Z
Answers.UserDisplayName: Aivars
Answers.Body: <p>I apologize : I think I was a bit optimistic : this is the point where I am :</p>
  
  <p>Create your search (you can use a Profile, whih customizes the results display columns).
  Then, select all, create a smart group, and save it.</p>
  
  <p>Look at the URL : it is in the form of :
  yoursite.com/civicrm/contact/search/advanced?force=1&amp;reset=1&amp;<strong>ssID=12</strong>&amp;context=advanced&amp;qfKey= ....</p>
  
  <p>Depending upon your permissions (I did not check that), you can use either of :</p>
  
  <ul>
  <li>yoursite.com/civicrm/contact/search/advanced?force=1&amp;reset=1&amp;<strong>ssID=12</strong>
  or</li>
  <li>yoursite.com/civicrm/group/search?force=1&amp;context=smog&amp;<strong>gid=32</strong></li>
  </ul>
  
  <p>(where gid is your smart group id) but, actually, they give the same result (while I thought that ssid would save the display profile).</p>
  
  <p>I will come back here if I (or anybody else) find(s) a solution (because I am interested in).</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-12-08T10:41:19.440Z
Answers.LastActivityDate: 2016-12-08T10:41:19.440Z
Answers.UserDisplayName: Jacques-Marie Moranne
Body: <p>I have a smart group which I would like to display with specific info in custom columns.</p>
  
  <p>I can do <strong>Advanced search</strong>, select this group and choose predefined <strong>Profile</strong> in <strong>Views For Display Contacts</strong>. Then I get the group displayed with relevant custom columns.</p>
  
  <p>How can I retrieve this view via link (to put it in Navigation menu)?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-11-24T21:29:39.957Z
Comments.Text: Are you asking how to add an item in civi navigation - ie via civicrm/admin/menu?reset=1, or something else?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-11-24T21:30:11.740Z
Comments.Text: as in how can you 'save' the 'show the results using this profile'.
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-11-24T21:31:09.587Z
Comments.Text: if the latter, then afaik it can't currently be done, and i feel we have had same question in last month or so. maybe you could make an(other) effort to find it to see if it had an answer other than 'can't be done' ;-)
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-11-25T10:48:26.690Z
Comments.Text: That's right. How can I search and show results using this profile with a single click?
Comments.UserDisplayName: Aivars
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-11-27T04:52:25.230Z
Comments.Text: What CMS are you using, since Drupal gives you many more options using Views
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-12-21T00:24:14.340Z
Comments.Text: @petednz-fuzion How can I use these *Views*?
Comments.UserDisplayName: Aivars
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-12-21T01:17:41.653Z
Comments.Text: Are you asking me how to use Drupal Views?
Comments.UserDisplayName: petednz - fuzion
Tags: <profile><search-results><custom-search>
Title: How can I save Search results with preserving Views For Display Contacts (defined in Profile)?
ThreadText: # How can I save Search results with preserving Views For Display Contacts (defined in Profile)?
  
  (Asked by: username_0 on 2016-11-24)
  
  I have a smart group which I would like to display with specific info in custom columns.
  
  I can do **Advanced search**, select this group and choose predefined **Profile** in **Views For Display Contacts**. Then I get the group displayed with relevant custom columns.
  
  How can I retrieve this view via link (to put it in Navigation menu)?
  
  **Tags:** profile, search-results, custom-search
  
  > **Comments:**
  > **username_1**: Are you asking how to add an item in civi navigation - ie via civicrm/admin/menu?reset=1, or something else?  
  > **username_1**: as in how can you 'save' the 'show the results using this profile'.  
  > **username_1**: if the latter, then afaik it can't currently be done, and i feel we have had same question in last month or so. maybe you could make an(other) effort to find it to see if it had an answer other than 'can't be done' ;-)  
  > **username_0**: That's right. How can I search and show results using this profile with a single click?  
  > **username_1**: What CMS are you using, since Drupal gives you many more options using Views  
  > **username_0**: @username_1 How can I use these *Views*?  
  > **username_1**: Are you asking me how to use Drupal Views?  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_2 on 2016-11-30. Score: 1
  
  When you create (save) your smart group, following an advanced search, you also have a saved search in parallel, with an ssid (while the smart group has a gid) : look at the URL (that you can save and re-use).
  
  I found no place in the User Interface where you can then retreive this ssid, but it is stored in the civicrm\_saved\_search table, that you can easily display with phpmyadmin.
  
  > **Comments:**
  > **username_1**: Can you add it to the Navigation Menu via civicrm/admin/menu?reset=1  
  > **username_0**: username_2, I tried to identify what could I possibly use from that civicrm_saved_search table to create a search link, but failed to understand.  I'd be grateful, if you could provide some examples, how to locate the saved search in that table and to build an URL with that data.  
  
  ---
  
  ### Answer by username_0 on 2016-11-25. Score: 1
  
  A partial solution is listed here: [Change the default fields (columns) in contact search results](https://civicrm.stackexchange.com/questions/86/change-the-default-fields-columns-in-contact-search-results)
  
  > You can set this custom search profile with the reduced columns as a default for all contact search results (besides participants) in /civicrm/admin/setting/search?reset=1.
  
  A major drawback is that I'd like to use **different columns for different searches** rather than the **default profile for *all* searches**.
  
  
  ---
  
  ### Answer by username_2 on 2016-12-08. Score: 0
  
  I apologize : I think I was a bit optimistic : this is the point where I am :
  
  Create your search (you can use a Profile, whih customizes the results display columns).
  Then, select all, create a smart group, and save it.
  
  Look at the URL : it is in the form of :
  yoursite.com/civicrm/contact/search/advanced?force=1&reset=1&**ssID=12**&context=advanced&qfKey= ....
  
  Depending upon your permissions (I did not check that), you can use either of :
  
  * yoursite.com/civicrm/contact/search/advanced?force=1&reset=1&**ssID=12**
    or
  * yoursite.com/civicrm/group/search?force=1&context=smog&**gid=32**
  
  (where gid is your smart group id) but, actually, they give the same result (while I thought that ssid would save the display profile).
  
  I will come back here if I (or anybody else) find(s) a solution (because I am interested in).
  
  
  ---
  
  