However I can not add the red color code in Sencha Architect. Could someone tell me how I can get this code in Sencha Architect? Thank you very much.
Choose the button in the inspector. In the bottom right config pane search for "handler", click the + button to the right of it. Click the -> arrow to drill down into the function. Do your Ext.Ajax.request; notice the function has already been created/closed.