View Full Version : unable to access variable defined outside Jsonstore in side XTemplate

26 Jan 2011, 9:50 AM
How to find value of any variable defined outside JsonStore and XTemplate, but used that variable in side XTemplate.

NameTag="Name";//NameTag variable defined outside XTemplate but not in JsonStore

var tpl1 = new Ext.XTemplate(

'<tpl if="NameTag == &quot;Name&quot;">',//used that NameTag for condition check inside XTemplate, but it's not working

'<table cellspacing="1" >',
'<th width="33%">Name</th><th width="67%">abc(s)</th>',
'<th width="67%">Name</th><th width="67%">other(s)</th>',