“Empty list message” is a template which displays a message on a LIST control when the list is empty.
- Register the template.
- Add global extension.
- Done, now all your browse boxes will display empty list message.
- Multiline messages.
- Unicode support.
- Clarion 6.3 and newer.
- ABC and Legacy template chains.
The demo program is available to download from here.
$50 via PayPal.
If List is empty why we need to wait? What does it mean “Empty List”???
Empty list is a list with no items. For example, when a user types something in locator field and gets empty record set back, she sees an empty dull list, but with this template she could see funny message “Nothing found, call tech support 555-321-44-00”.
Some System Color examples are below that will change with the user’s color theme so these colors should work better with things like dark themes. Top one is making the message look like a Tool Tip aka Info Text.
The way I’ve done this is in each Window to add a PROMPT or STRING after the LIST with the text. Then Hide/UnHide that in the proper Browse embed like ABC BrowseClass.ResetQueue using RECORDS(SELF.ListQueue) or Legacy has 2 embeds: “Browser, records found” and “Browser, no records found”. For a hand coded LIST you can also do it this way.
Note the tooltip Color:InfoText / Background System Color equates are somewhat new to Clarion, they have been in Windows since Win98 NT4. The Window designer is broken so will change them to an RGB Color:Black / 00E1FFFFh . To be sure you are using tooltip System Color you must set them in an embed with PROP:FontColor and PROP:Color.
I’ve always used an alternative FORMAT() and FROM() containing descriptive information, but your solution looks useful.
Do have an example of how you did that?
Not really, as it wasn’t my project.
My csv class does it a little bit with FORMAT() when loading, but not in a way that would be useful for a browse. Plus, this is Mike’s thread, and he writes really good stuff, so I’m guessing he put a lot of thought into it.
Thank you for the feedback.
Another small demo shows how to animate the message on a list while a user is waiting for the data to be loaded.