rpc-$15.lzx

<canvas debug="true" height="150" width="100%">

    <dataset name="myDataset"/>

    <simplelayout spacing="5"/>

    <method name="v2e" args="v">
        Debug.debug('setting %w to mydataset', v);
        var de = LzDataElement.valueToElement(v);
        myDataset.setAttribute("childNodes", de.childNodes )
        Debug.debug("%w", myDataset.serialize());
    </method>

    <view datapath="myDataset:/" x="10" layout="inset: 10; spacing: 2">
        <button text="array">
            <handler name="onclick">
                var arr = [1, 2, 3];
                canvas.v2e(arr);
            </handler>
        </button>

        <text datapath="item/text()"/>
    </view>

</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
* Copyright 2007, 2008 Laszlo Systems, Inc.  All Rights Reserved.                   *
* Use is subject to license terms.                                            *
* X_LZ_COPYRIGHT_END ****************************************************** -->

Cross References

Named Instances