How to start with a blank list ?

  • 1
  • Question
  • Updated 6 years ago
  • Answered
I have a client list page
I want users to use the generic filter to find by first name, last name etc and display the results in the list (as opposed to setting up custom filters)
but i want the page to start empty.. not by showing an unfiltered list of clients

how to i set up the model so that initially it dispalys nothing... and then lets the filter be applied to show the clients that match the filter
Photo of ktyler

ktyler

  • 9,244 Points 5k badge 2x thumb

Posted 6 years ago

  • 1
Photo of Ben Hubbard

Ben Hubbard, Employee

  • 12,490 Points 10k badge 2x thumb
Hi Ken,

If you go to the Advanced Tab on your model properties, you can uncheck "Load Model Data on Page Load" This will prevent any SOQL query from being run when the page loads. However, any search of filter will cause records to be returned. Does this work for you? One drawback is that if you type in a search and then erase it, all the records will be displayed.
Photo of ktyler

ktyler

  • 9,244 Points 5k badge 2x thumb
That did it Ben, Thanks