Security Groups.Get Example

This example gets the usergroups and uses se:format to display them using an html table.

Smartsite SXML CopyCode image Copy Code
<se:format inputdata="{security.groups.get()}">
    <se:rowformat>
        <se:colformat><td>{this.field()}</td></se:colformat>
        <se:rowresult><tr>{this.rowresult()}</tr></se:rowresult>
    </se:rowformat>
    <se:captionformat match="first">
        <se:colformat><th>{this.colname()}</th></se:colformat>
        <se:rowresult><tr>{this.rowresult()}</tr></se:rowresult>
    </se:captionformat>
    <se:resultformat><table>{this.result()}</table></se:resultformat>
</se:format>
Example Result CopyCode image Copy Code
<table>
    <tr>
        <th>Number</th>
        <th>Name</th>
        <th>Code</th>
    </tr>
    <tr>
        <td>2</td>
        <td>Administrators</td>
        <td>ADMINISTRATORS</td>
    </tr>
    <tr>
        <td>4</td>
        <td>Guests</td>
        <td>GUESTS</td>
    </tr>
</table>