Team,
We have an requirement to display banner that when no records founds for customer search we need to display a banner message “Please register records” we are using OOTB view Customer search with default data reference Selected customer search.., i added when condition to this view .., when ‘0’ records need to display the banner message on click of search..,
This is not working as expected.., "refresh is not happening on click of search.., only on click of submit.., this banner message getting displayed.., Our req is to display on click of serach button
@umamaheswar.bk
This is a GenAI-powered tool. All generated answers require validation against the provided references.
After researching this issue, I’ve identified the root cause and have a solution for you. The banner isn’t appearing immediately because the section isn’t being refreshed when the search button is clicked, only when the form is submitted.
Here’s how to fix this issue:
Step-by-Step Solution
- Add a Refresh Action to the Search Button:
- Open the view that contains your customer search button
- In the configuration pane, hover over the search button control and click the Edit icon
- Click on ‘Add action sets’ in the configuration pane
- Create a new action set for the button click event (or edit the existing one)
- Make sure your action set includes:
- The search action (to execute the search)
- A “Display: Refresh” action to refresh the section containing your banner
- This ensures the section refreshes immediately after the search is performed
- Verify Your Banner Visibility Condition:
- Check that your banner’s visibility condition is correctly set to display when there are 0 records
- The condition should be something like:
when '0' records or Count of Records = 0
- Make sure this condition is evaluated after the search results are returned
- Ensure Proper Action Sequence:
- The action sequence in your button’s action set should be:
- Execute the search
- Refresh the section containing the banner
- This sequence ensures that the banner visibility is evaluated with the latest search results
Best Practices for “No Results Found” Messages
Based on UX research, here are some recommendations to enhance your “no results found” experience:
- Use Clear, Helpful Messaging:
- Your “Please register records” message is good, but consider adding guidance on how to register records or alternative actions
- Example: “No customer records found. Please register new records using the [Register] button.”
- Provide Alternative Actions:
- Include direct links or buttons to common next steps (like registering a new customer)
- This reduces friction and guides users to the appropriate action
- Consider Search Refinement Tips:
- If applicable, provide suggestions for modifying search criteria
- This helps users understand why their search returned no results
References: