I have a DataView with XTemplate setup. XTemplate looks like this:
tpl = new Ext.XTemplate(
'<table>',
'<tpl for=".">',
'<tr>',
'<td>{task}</td>',
'<td>{notes}</td>',
'<td>{cancomplete}</td>',
'<td><input type="text" tsid="{timesheetitemid}" id="ts-0-{#}" style="width: 40px" value={0} /></td>',
'<td><input type="text" tsid="{timesheetitemid}" id="ts-1-{#}" style="width: 40px" value={1} /></td>',
'<td><input type="text" tsid="{timesheetitemid}" id="ts-2-{#}" style="width: 40px" value={2} /></td>',
'<td><input type="text" tsid="{timesheetitemid}" id="ts-3-{#}" style="width: 40px" value={3} /></td>',
'<td><input type="text" tsid="{timesheetitemid}" id="ts-4-{#}" style="width: 40px" value={4} /></td>',
'<td><input type="text" tsid="{timesheetitemid}" id="ts-5-{#}" style="width: 40px" value={5} /></td>',
'<td><input type="text" tsid="{timesheetitemid}" id="ts-6-{#}" style="width: 40px" value={6} /></td>',
'<td>{sumall}</td>',
'</tr>',
'</tpl>',
'</table>');
What I want to do now is to execute a Select query to select input from a DataView having a specific tsid value. I know that the “select” ExtJs method uses CSS selectors, but as far as I know, this requires that the input identifier be set to timesheetitemid, and we cannot do this because the identifiers must be unique.
Any help would be appreciated! Thanks!
source
share