Xml->js

I have this XML:

<ListGrid canEdit="true" editByCell="true" editEvent="isc.EventHandler.CLICK"
                      saveLocally="true"
                      bodyOverflow="visible"
                      overflow="visible"
                      baseStyle="myBoxedGrid"
                      dataSource="eventContactDTO"/>

Generating this JS:

[CODE]
{
 title:"Contact List",
 items:[
{saveLocally:"true",bodyOverflow:"visible", canEdit:true,
 baseStyle:"myBoxedGrid",editByCell:true, editEvent:"isc.EventHandler.CLICK",
 dataSource:"eventContactDTO",overflow:"visible", _constructor:"ListGrid"}
 ],
 expanded:true
}

And when I click on a cell, it doesn’t go into edit mode. The editEvent should not be a string. Isn’t there some [JS] bracket that makes this code?

I solved this with this code (notice the editEvent element with the <JS> tag inside.

&lt;ListGrid canEdit="true" editByCell="true"  saveLocally="true" bodyOverflow="visible" overflow="visible" recordXPath="{$path}/{$dataSource}" baseStyle="myBoxedGridCell"&gt; 
    &lt;xsl:attribute name="dataSource" select="$dataSource"/&gt;
    &lt;editEvent&gt;
        &lt;JS&gt;isc.EventHandler.CLICK&lt;/JS&gt;
    &lt;/editEvent&gt;
&lt;/ListGrid&gt;

Thanks for pointing this out. This is actually a deficiency in the reference docs. We didn’t intend for it to be this messy to set this type of property.

You can safely use the value of isc.EventHandler.CLICK (which is “click”) here - and in fact most such properties are documented by providing a string value. We’ll be fixing the docs for the next release.