Hi,
I have the following livetable working;
#set($columnsProperties = {
'squestioner': {'type': 'text', 'size': 10,
'filterable': true, 'sortable': true, 'html': false},
'emailQuestioner': {'type': 'text', 'size': 10,
'filterable': true, 'sortable': true, 'html': false},
'subject': {'type': 'text', 'link': 'view',
'size': 10, 'filterable': true, 'sortable': true, 'html':
false},
'cdlsPerson': {'type': 'text', 'size': 10,
'filterable': true, 'sortable': true, 'html': false},
'status': {'type': 'list', 'size': 10,
'filterable': true, 'sortable': true, 'html': false},
'doc.date': {'type': 'text', 'link': 'view',
'size': 10, 'filterable': true, 'sortable': true},
'doc.author': {'type': 'text', 'link':
'author', 'size': 10, 'filterable': true, 'sortable':
true},
'_actions': {'html': true, 'sortable': false,
'actions': ['edit', 'delete']}
})
#set($options = {
'className': 'CdLSATEPrivat.CdLSATEPrivatClass',
'resultPage' : 'CdLSATEPrivat.LiveTableGenerator',
'translationPrefix': 'cdlsateprivat.livetable.',
'tagCloud': true,
'rowCount': 15,
'maxPages': 10,
'selectedColumn': 'squestioner',
'defaultOrder': 'asc'
})
#set($columns = ['squestioner', 'emailQuestioner', 'subject',
'cdlsPerson', 'status', 'doc.date', 'doc.author',
'_actions'])
Now the column "squestioner" holds the Full Name of an XWiki.user.
If the user does not belong to a group "moderators" I would like to only show
records in the livetable where squestioner = full name (for privacy reasons the user may
not see records of other users!)
How can I do this?
Gerritjan