Help text on top of a list view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-26-2012 12:37 AM
Hello everyone,
my customer asked me to put a help text above a specific list of incidents that is available to the end user. Basically what they want is to have something like a gs.addInfoMessage('...') that only displays in the list view of one specific module.
I came as far as to create a Business Rule:
When: before
Query: true
Table: incident
Active: true
Condition: !gs.getUser().hasRoles()
Script:
gs.addInfoMessage('...');
Problem is though, that this is of course not limited to one specific module and also shows the message twice when opening an incident record for some reason. Do you guys have any suggestion as to how I can limit it to one module and / or list views? Or could you propose a completely different approach?
I attached 2 screenshots: one that shows the list with the correct text, the other one shows the problematic info messages on the incident form.
Thanks everyone
- Labels:
-
Incident Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2012 08:10 AM
The my_timecards UI Page (must have time card plugin activated) has a great example of embedding a list within a page. You could place your cool message at the top and then get the list built like this. Then, change your ESS module to point to the UI Page instead of the List
<g:list_default table="time_card" view="my_timecard"/>
<!-- Set up ListProperties for the list -->
<g:evaluate jelly="true">
var title = gs.getMessage("Time Cards");
ListProperties.setListName(title);
ListProperties.setTitle(title);
ListProperties.setListID("my_timecards");
ListProperties.setHasTopNav(true);
ListProperties.setHasTitle(true);
ListProperties.setHasTitleContextMenu(true);
ListProperties.setHasFilter(true);
ListProperties.setHasBreadcrumbs(false);
ListProperties.setHasSearch(false);
ListProperties.setHasTopVCR(true);
ListProperties.setHasHeader(true);
ListProperties.setHasHeaderContextMenu(true);
ListProperties.setHasListMechanic(true);
ListProperties.setHasRowContextMenu(true);
ListProperties.setShowLinks(true);
ListProperties.setHasPopup(true);
ListProperties.setShowEmpty(true);
ListProperties.setHasBottomNav(true);
ListProperties.setHasActions(true);
ListProperties.setHasBottomVCR(true);
ListProperties.setCanChangeView(true);
ListProperties.setCanGroup(false);
</g:evaluate>
<!-- register for list printing -->
<j:set var="jvar_handle_list_printing" value="true"/>
<!-- and build the list output -->
<g:inline template="list2_default.xml"/>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2013 03:08 AM
Tony,
Thank you for adding helpful context to the jelly for my_timecards. Regarding the line
<g:inline template="list2_default.xml"/>
I've looked around a bit and I don't see where jelly template .xml files are stored, such as "list2_default.xml". The Extensions to Jelly Syntax wiki page lists of few of these files.
Where can I view the existing .xml files and manage my own? What did I miss?
Thank you.
Hal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2015 01:23 PM
BTW you'll want to add ListProperties.setHiddenQuery() to set your default query instead of using the addLoadEvent script like they do out of the box in time cards because doing it as a load even loads the entire list FIRST.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2015 06:13 AM
Hi Matthias,
Have you found a way to avoid duplicate messages on the form? Thanks.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/