PDA

View Full Version : Dataview with jsonStore not working in IE6



RenatoLombardo
3 Jun 2011, 11:40 AM
It works in FF4.

When I call dataView.bindStore(store) it show me this error:
'undefined is null or not an object' - Line 1719 (ext-all-debug-w-comments.js)

this it my Ext.onReady declaration of the dataview and its template:


tplOperando = new Ext.XTemplate.from('templateOperandoTranspetro');

dvOperando = new Ext.DataView({
id: 'operando',
renderTo: Ext.getBody(),
tpl: tplOperando
});

This is templateOperandoTranspetro:

<div id="templateOperandoTranspetro" style="visibility: hidden;" class="x-hide-display">
<tpl for='.'>
<table border="0" class="conteudo" style="display:inline; width: 25%">
<thead>
<tr>
<th colspan="2">
{Embarcacao}</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="2">
{Pier}
</td>
</tr>
<tr>
<td colspan="2">
{Operacao}
</td>
</tr>
<tr>
<td align="right">
Vaz„o:
</td>
<td>
{Vazao}</td>
</tr>
<tr>
<td align="right">
ETC:
</td>
<td>
{ETCString}</td>
</tr>
</tbody>
</table>
</tpl>
</div>

this is the moment when I call bindStore. It is inside a 'load' listener from a JsonStore:

'oper' is a valid jsonStore.


dvOperando.bindStore(oper);

and finnally, the line with the error in ext-all-debug-w-comments.js (in red)


jsSelect: function(path, root, type){
// set root to doc if not specified.
root = root || document;

if(typeof root == "string"){
root = document.getElementById(root);
}
var paths = path.split(","),
results = [];

'path' is undefined here.

It appears it's a problem with my template, but I can't figure it out.

Thanks in advance.