April 2, 2020
Estimated Post Reading Time ~

How to extend Search panel to inform user that search returned no results?

Currently, The searching of Assets/Pages in the damadmin/siteadmin search panel does not let the user know the search is complete when there are no records.  This article providing simple steps on how to overlay the search panel to provide information message to the user that there were no records.

Two simple steps, Namely

  1. Overlay /libs/cq/ui/widgets/source/widgets/wcm/SiteAdminSearchPanel.js
  2. In performing the search method after the unmask method verify the total count is zero. If zero display an alert stating "No record found".  Snapshot below
Sample output after implementing the above change
The package for AEM 5.6.1 with the above changes can be downloaded from & install in your aem instance.

http://dev.day.com/docs/en/cq/current/dam/dam_documentation.html#Searching%20for%20Assets

Search Panel No record fix for AEM 5.6.1


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.