Saturday, 15 August 2015

extjs - Sencha Touch form.setRecord() doesn't populate data to form -



extjs - Sencha Touch form.setRecord() doesn't populate data to form -

i utilize list in mainview , when user click on item display form textfields info feilds.

my form has 3 textfields 'name' properties field name in model

so on list tap utilize code:

var mainview = this.getmainview(); var frmdetails = ext.create('widget.frmdetails'); frmdetails.setrecord(record); mainview.push(frmdetails);

but when frmdetails displayed textfields empty !!

i checked name=fieldname, id=fieldname

i suppose easy using setrecord>

any idea?

after 4 hours found solution , simple:

use form.panel not panel

found here: http://www.sencha.com/forum/showthread.php?246463-problem-setting-record-to-panel-from-controller

extjs touch

No comments:

Post a Comment