Databases Reference
In-Depth Information
Script
The Script tab (Figure 12-15 ) provides the ability to create scriptlets , server-side custom logic that will run on each
operation (Insert, Update, Delete, and Read). Scriptlets are pieces of JavaScript code you can register to be executed.
The name of the function must match the operation selected, except for Delete operations, which must be named del .
Figure 12-15. The Script tab
These scripts allow the injection of business logic into table operations. For example, client authentication can
take place here based on the userIdvalue of the supplied userobject .
Advanced Settings
We have talked about Mobile Services from the Data point of view, but there are a few other items that need to be
highlighted to give Windows Azure Mobile Services a complete preview. The three settings tabs that we will highlight
in this section come from the main page of the Mobile Service and can be seen in Figure 12-16 : Push, Identity, and
Scale.
Figure 12-16. Mobile Services tabs
Push
With Windows Azure Mobile Services you can send push notifications to your Windows Store application by using
the Windows Push Notification Service (WNS). Sending push notifications to your application requires that you
first configure your mobile service to work with WNS. This is accomplished by simply entering the Client Secret and
Package SID values in the Push tab, as shown in Figure 12-17 .
 
Search WWH ::




Custom Search