Aastra Template setup question

In setting up the buttons for an Aastra 57i, and trying to configure the buttons according to the user guide, I run into a problem. When I select XML as the button type, as shown in the user guide, the drop-down list does not appear in the “value” field. When I select XML-API, then I get the drop-down list, but the apps don’t work. I get the message “The app xxxx is not configured in the API” or words to that effect.

I have checked the license page, and all looks correct. I am running FreePBX Distro, version 12, with all latest updates installed. Can someone point me in the right direction here? Thanks