Question
Blue Rose Technologies
NL
Last activity: 5 Aug 2019 1:14 EDT
Data Page loading
Hi,
I have a requirement if user enters any of the search criteria and clicks on Search button, the search results are displayed in the below grid using data page as source.
When users clicks on clear button, we are clearing all the search criteria and flushing the data page by refreshing the section.
Now the data page has displayed all the results. our requirement is to not to display the data page results when user clicks on clear.
Can you please suggest on the same.
***Edited by Moderator: Lochan to update platform capability tags***
You may also try this approach -
Use two mutually exclusive (visibility condition wise) Layouts for search results:
Layout 1 - Use a when condition to show this layout when none of the criteria is entered. This layout will have a label that says : No records found.
Layout 2 - This layout will hold your repeat grid (search result). Use a visibility when condition to show this layout when at least one of the criteria (or whatever be the minimum search criteria) is entered.
Both layouts should be inside your current result section. And, make sure that you have 'Disable automatic refresh' option ticked on your Grid repeat layout property.
This will help PRPC to dynamically choose between layouts depending on context, and avoid loading your data page unnecessarily.