By adding Actions you can incorporate behavior to your Smart Devices Applications. Actions offer different ways to interact with the smart devices. This document explains how to schedule a date in the calendar from your Application.
- The Transactions you are going to use are:
- Firstly, see which methods and functionality the calendar object in the Smart Devices API offers.
There is one method available for Calendar; Schedule(). It has six configurable parameters.
- To add the action to the application.
a) Got to the Work With Smart Devices Pattern tab.
b) Select the Work with for Smart Devices Section Node, and drag&drop from the Toolbox a new button to the Application bar on the top of the layout of the WWSD and name it "Calendar".
- The following step is to configure the event associated with the button. By double-clicking on the new action you can go to the event that is going to be triggered when the action is executed. The event has to have a call to the Calendar external object and the method Schedule with the parameters needed.
Note: Even though all the parameters may not be used, it is compulsory to include them in the code of the method call. If some are not used you can include the empty string ("") instead.
Now you have your action configured.
Note: In Android, the scheduled meeting is opened and it is already saved. You have to tap on Cancel if you want to delete it. If you tap the Back button, then the event is saved anyway. That's so by the design of the Android API.
||Smart Devices (Android, Apple)