Time for action – creating ACS custom objects
Perform the following steps to create ACS custom objects:
Enable ACS in your existing app. Go to
tiapp.xml
and click on the Enable... button on the Cloud Services section. Your project will gain a newTi.Cloud
module and the ACS authentication keys will be shown:Go to the cloud website, https://my.appcelerator.com/apps, find your app, and select Manage ACS. Select Development from the selection buttons at the top.
You need to define a user so your app can log in to ACS. From the App Management tab select Users from the list on the right. If you have not already created a suitable user, do it now.
We will split the functionality in this chapter over two files. The first file will be called
forexCommentary.js
and will contain the cloud functionality, and the second file calledforexCommentaryView.js
will contain the layout code. We are still trying to comply with the MVC design principles laid out in Chapter 2, How to Make an Interface. Create the...