Let’s say you’ve got a bit of JSON data — something like:
And you want to show just the one phone number as defined in “ReqPhoneSelection” in a fancy HTML template you’ve made in Ext.
Why, as I learned here, just start escaping single quotes:
ReadModeTemplate = new Ext.XTemplate(
(Yeah, duh, right? Took me hours to figure that out, so hush up. :P)
Now, no matter what JSON data you put into that template, you’ll only get out one number, depending upon what is stored in the “ReqPhoneSelection” property.