SXML SecurityZones Example
In this example, we list all SXML asset mappings to security zones using standard formatting.
Smartsite SXML | Copy Code |
---|---|
<se:pagetranslations id="sxml"> <se:collection> <se:member name="list"> <h3>Vipers</h3> <se:format inputdata="{sxml.securityzone.listassets('viper', translation.arg(1))}"> <se:rowformat> <li>{this.field(1)}</li> </se:rowformat> <se:resultformat> <ul>{this.result()}</ul> </se:resultformat> </se:format> <h3>Macros</h3> <se:format inputdata="{sxml.securityzone.listassets('macro', translation.arg(1))}"> <se:rowformat> <li>{this.field(1)}</li> </se:rowformat> <se:resultformat> <ul>{this.result()}</ul> </se:resultformat> </se:format> </se:member> </se:collection> </se:pagetranslations> <se:format inputdata="{sxml.securityzones.getall()}"> <se:rowformat> <td valign="top"> <h3>{this.field(1)}</h3> {translation.sxml.list(this.field(1))} </td> </se:rowformat> <se:resultformat> <table style="border:1px solid black"><tr>{this.result()}</tr></table> </se:resultformat> </se:format> |