tpl and update method in Sencha Touch -


in app using tpl not working: can 1 tell me , wrong?

inside config :

{     id: 'content',     tpl: "<div class='attorney-details'>hi:{details}</div>" }, 

and update method :

update: function(newrecord) {     if (newrecord) {         currentview=this.getrecord().data;         this.down('#content').setdata(newrecord.data);     } } 

at output not "hi" printed. also, if alert added in update method not executed. thanks.

the first step make sure update method executed. not enough info figure out going on code. looks update method located inside view reference this.down, need make sure component using has access store. if don't can pass object update template http://new.senchafiddle.com/#/7mamv/.


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -