I've started messing around with our ArcGIS Online for Organizations trial. I've created some feature services, combined them into a web map, and used the configurable templates to share the web map out as a web app. I've noticed on the details page for the web app there is a "Configure App" button and an "Attach Code" button. "Configure App" is pretty self-explanatory, but i cannot find any info in the Help about how to use the "Attach Code" feature.
Where should i be looking for information about the capabilities of attached code and how to structure it to get something desirable to happen?