Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Display message if no result found in hierachical viewer View modes: 
User avatar
Member
Member
epogburn-nola - 2/21/2013 10:32:28 AM
   
Display message if no result found in hierachical viewer
I have a hierarchical viewer with 3 levels.

The structure is:
--Folder
----Folder
------MeetingEvent

If there are no meeting events, I'd like to display the message "No meetings scheduled". Is this possible?

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 2/21/2013 12:01:58 PM
   
RE:Display message if no result found in hierachical viewer
In the webpart properties you should have a No data behavior section. In the No record found text, set the text you want to display (No meetings scheduled) and ensure the Hide if no record found checkbox is unchecked.

User avatar
Member
Member
epogburn-nola - 2/22/2013 8:15:29 AM
   
RE:Display message if no result found in hierachical viewer
That only works if no results are found at all. Results are found for levels 1and 2, and even 3. In most cases, there are items at level 3, but I need to display a message in the instances when no items are found at level 3.

--Folder
----Folder
------MeetingEvent (found, display meeting detail)

--Folder
----Folder
------(no MeetingEvent found, display message "No meetings scheduled")

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/22/2013 2:01:23 PM
   
RE:Display message if no result found in hierachical viewer
Hi,

There is no option do say that you want to check just particular level. This will require a customization where you will access the returned dataset, loop through it and check the data and then display the message if needed.
Or, a custom functions for transformation may work too.

Best regards,
Juraj Ondrus