Hello,

I'm want to create a dynamic dataset in my Laszlo application. But I'm missing something simple when I'm adding multi able attributes to a node.

My code:

var v1 = 'a';
var v2 = 'b';
dpTemp.addNode('datastore', '{id:v1,data:v2}');

The XML should look like this.
<datastore id="a" data="b"/>

But I'm getting this.
<datastore>{id:v1,data:v2}</datastore>

Thanks up front.

-Daniel

Reply via email to