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

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -