(Based on a post from from blog.gotiggr.com)
On August 1, Tiggr was upgraded to version 2.3.2. (Because of zero-install, users don’t have to do anything to enjoy the benefits.) Most of the updates are for the Mobile Apps Builder. Here are the big changes:
- Improved how you can work with REST services
- Added a new theme editor
- Launched a new help site
Working with REST Services
Before, in Tiggr, you would use a “datastore” type of non-visual component on a screen in the application you’d be working on to point to a REST service. In this component, you’d specify service request and response parameters along with the mappings to input and output UI components on the screen in your application. With this version of Tiggr, we’ve changed things around to separate the REST service from how it’s used in a particular screen.
The new service asset contains the part of the URL that includes the service and method along with the request and response parameters to be used for mapping. The service editor has three panels for each of these tasks.
The service itself can be used with any datasource on any screen in the project. It also adds in some extras.
Testing the Service
In the Request Parameters panel, you can now test the service right from Tiggr. Just click the the Test button after entering a valid parameter/value (if required). This allows you to check that the service works and look at what sort of output is returned.
Populating the Response Parameters from the Server
Every service returns data and you need to define what those response parameters are (for later mapping to components). Some services return many parameters and manually creating each parameter would be tedious, so Tiggr has two ways to automatically populate the response parameters for the service.
In the first method, you click the Test button in the Request Parameters panel. In the dialog box, you use a valid request and then click the Populate Response Structure button. When the button is clicked, all the output parameters from the service will be automatically created and you’ll be taken to the Response Parameters panel. Here are the results for
http://search.twitter.com/search.json with request parameter
q set to
Populating the Response Parameters from a Sample
Alternatively, you can use a sample response that you already have from a service to automatically create response parameters. (This works sort of like an “echo” test.) This option is useful if you are not able to invoke the service but know its response format. To do this, in the Response Parameters panel, click the Populate from Sample Response button. In the dialog box that appears, paste the sample response in and click on the Populate Response Parameters button.
In many ways, creating the datasource mappings to input and output mappings works the same as before. The difference is that the work of specifying the service details and request and response parameters is all taken care of by pointing to the right service asset when setting up the datasource component.
New Theme Editor
Tiggr Mobile Apps Builder comes with six jQuery Mobile themes out-of-the-box. Now you can add your own custom themes. To create one, in the Project view (to the left), click the Add button and select Theme. You will see a theme editor in the middle of your screen divided into a properties display on the left and a live preview on the right:
As you modify the theme properties on the left, the phone preview on the right will instantly be updated with the changes.
New Help Site
We launched a new developer help site: http://help.gotiggr.com. It’s still a work in progress, so do let us know if there is content you want us to add.