Smart User List
A small smart component to display a list of users from a given Group OR role. Includes a JS instant search feature.
Mandatory parameters:
- group_id OR role_id - At least one of these MUST be specified
Optional parameters:
width - iFrame width
height - iFrame height
template - custom template
Column List
- Name
- Job Title
- Phone
Template Location (to customise)
The default location for the html template is:
/interface_default/people/smart_userlist.html
It is recommended you copy this file into your custom VI before you make any custom changes to it. When copying please ensure you match the folder names exactly, in this case, copy the custom html file to the following location:
/interface_{your_vi_name}/people/
Installation
To embed within a page, copy and paste the following code. Again, please ensure the template matches the same directory path as the custom file you copied in the above step. There is no need to prefix it with /interface_
<script type="text/javascript">
<!--
var smart_userlist = {}
smart_userlist.name = "test_obj"
smart_userlist.width = "100%"
smart_userlist.height = 400
smart_userlist.group_id = 3
smart_userlist.template="people/smart_userlist_custom.html"
//-->
</script>
<script type="text/javascript" src="/intranet/people/js/show_userlist.js"></script>