Spice Command RemoveAt Example
Demonstrates the removal of spice command parameters using its parameter index. The following querystring is used for this example: hid=img;w=10;h=10;oil=1
| Smartsite SXML |
|
|---|---|
{spice.command.removeat(img, 0)}
{spice.command.removeat(img, 1)}
<se:format inputdata="{spice.command.getall()}" whitespace="simpleformat">
<se:rowformat>
<se:colformat> <td>{this.field()}</td>{char.crlf()}</se:colformat>
<se:rowresult><tr>{char.crlf()}{this.rowresult()}</tr>{char.crlf()}</se:rowresult>
</se:rowformat>
<se:resultformat>
<table>{char.crlf()}{this.result()}</table>
</se:resultformat>
</se:format>
|
|
| Example Result |
|
|---|---|
<table> <tr> <td>img</td> <td>resize</td> <td>height</td> <td>10</td> </tr> </table> |
|