String Split Example

The following example splits the specified input string and uses formatting to display the resulting datatable.

Smartsite SXML CopyCode image Copy Code
{buffer.set(data, string.split('to be or not to be, that is the question', ' '))}

<se:format inputdata="{buffer.get(data)}">
    <se:rowformat>
        {this.field(1)}<br />
    </se:rowformat>
</se:format>
Example Result CopyCode image Copy Code
to<br />
    
        be<br />
    
        or<br />
    
        not<br />
    
        to<br />
    
        be,<br />
    
        that<br />
    
        is<br />
    
        the<br />
    
        question<br />
SXML