PDA

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



ranjay
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.
like

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" >',
'<thead><tr>',
'<th width="33%">Name</th><th width="67%">abc(s)</th>',
'<th width="67%">Name</th><th width="67%">other(s)</th>',
'</tpl>',
----
----
);