ShowSavedSearch

When the block is executed, shows or hides the Saved Search functionality as part of the entry group.

This property is only applicable to EntryGroup blocks whose screen type is Search block and that have an associated List.

Values
  • false (default). Hides saved searches.
  • true. Shows a list of saved searches for the entity and allows the user to create and edit the saved searches.
Examples

searchEntry = CRM.GetBlock("ProjectsSearchBox");
searchEntry.ShowSavedSearch=true;
searchList = CRM.GetBlock("ProjectsGrid");
searchContainer = CRM.GetBlock("container");
searchContainer.ButtonTitle = "Search";
searchContainer.ButtonImage = "Search.gif";
searchContainer.AddBlock(searchEntry);
if( CRM.Mode != 6)
searchContainer.AddBlock(searchList);
searchContainer.AddButton(CRM.Button("Clear", "clear.gif",
"javascript:document.EntryForm.em.value = '6';document.EntryForm.su
bmit();"));
searchList.ArgObj = searchEntry;
CRM.AddContent(searchContainer.Execute(searchEntry));
Response.Write(CRM.GetPage());