Refresh extjs form's submit data -
i have extjs form (get method) fields can dynamically added or removed. have added logic changes names of fields example
.... items: [ { xtype: 'textfield', fieldlabel: 'username', name: 'data[param1][0]' },{ ....
becomes
.... items: [ { xtype: 'textfield', fieldlabel: 'username', name: 'data[param1][1]' },{ ....
after submit form old data submitted without effect on added/removed fields or field name changes
how update or refresh form send correct.
edit else working correctly in form example form.load() loads data server side json , can edit/save them db. when use form.add(fields) method new fields included in submit request not delete. read exjs form submit url data calculated 1 time , other time when possibly events triggered.
main trouble renaming fields not reflect submit data, have checked manually looking source field names changed logic. call form.dolayout() after making changes in fields
Comments
Post a Comment