Sep 11, 2013, 2:04 PM
loop through json object with javascript
Hi All,
From the example FormPanel-Basic
https://examples1.ext.net/#/Form/FormPanel/Basic/
When click Get Values... Button and select Object, It will alert message
I would like to know how to loop through object with javascript for get KEY / VALUE.
In my project. I create FormPanel with dynamic control that KEY field name generate from ID from database.
eg. email_id19_sid55. So, I did not know exact field name and want to check just has field email_ before save.
Thank you
From the example FormPanel-Basic
https://examples1.ext.net/#/Form/FormPanel/Basic/
When click Get Values... Button and select Object, It will alert message
{"CompanyField":"General Electric Company","PriceField":"34.14","ChangeField":"-0.08","PctChangeField":"-0.23","lastChange":"9/1/2013"}
In my project. I create FormPanel with dynamic control that KEY field name generate from ID from database.
eg. email_id19_sid55. So, I did not know exact field name and want to check just has field email_ before save.
Thank you