Alfresco javascript get custom DataList
<p>I've created a custom datalist and put some values on it. Now I try to get data values within a script that will be triggered by a rule. 
So far, I've trouble to get the custom datalist named <code>test</code> with this code:</p>

<pre><code>var site = siteService.getSite(document.siteShortName);
var dataLists = site.getContainer("datalists");
var listCompany = dataLists.childByNamePath("test");
</code></pre>

<p>It seems that its return a null object but I can't figure it out why, I tried with </p>

<pre><code>"dataLists", 
"datalists" and 
"data-lists" 
</code></pre>

<p>but still null object... 
<strong>Edit:</strong> After looking int he solr log, I have an error that says that Model tracking failed NamespaceException. Something like my model has already been defined previously</p>

<p><strong>Second question:</strong> How can I acces to the data inside the datalist? Is getElementById() will work?</p>

<p><code>test</code> dataList is like:</p>

<pre><code>'test'  
  field1: name, 
  field2: company, 
  field3:number, 
  field4: number2
</code></pre>