Exploring Flex

Archive for the ‘wizards’ Category

Flash Builder 4 – Data Centric Development (DCD) Configure Return Type

Posted by hneelu on June 11, 2009

We have covered the first wizard, Service Wizard. This wizard has lead to the successful creating of a service. We can see the service and its operation in the Data/Services view.
Example: I have imported a php file called MovieService** (code added at the bottom).
beforeCRT

To make this service useful I need to go through another wizard Configure Return Type.
This feature  provides GUI which enables user to test an operation of an existing service and view the returned data. User can also create appropriate entities/ custom data types which can later be used in their flex application. It enables code hinting, setting of datagrid columns on binding data to the operation etc.

The types of services which will be supported are:
1. Remote Object Service (AMF)
2. HTTP Service
3. Web Service

Read the rest of this entry »

Posted in DCD, Flash Builder, wizards | Tagged: , | 7 Comments »

DCD Service Wizard – HTTP service

Posted by hneelu on June 5, 2009

[Updated for Flash Builder Beta 2]

This post is a walk through for using Service Wizard for HTTP service

Step 1: Open the service Wizard

  • In the Service/Data view, click on the Connect to Service/Data link. OR
  • Click on the Data menu and select Connect to Service/Data .  OR
  • Click on the Data menu and select Connect to HTTP(or the service of your choice)

Note: Shortcut for Data menu is Alt+T

Read the rest of this entry »

Posted in DCD, Flash Builder, wizards | Tagged: , | 1 Comment »

DCD Service Wizard – PHP service

Posted by hneelu on June 4, 2009

[Updated for Flash Builder Beta 2]

This post is a walk through for using Service Wizard for a PHP service

Assumption: You have created a flex project with PHP server technology

Step 1: Open the service Wizard

  • In the Service/Data view, click on the Connect to Service/Data link. OR
  • Click on the Data menu and select Connect to Service/Data .  OR
  • Click on the Data menu and select Connect to PHP (or the service of your choice)

Note: Shortcut for Data menu is Alt+T

Read the rest of this entry »

Posted in DCD, Flash Builder, wizards | Tagged: , | 3 Comments »

Flash Builder 4 – Data Centric Development (DCD) Wizards

Posted by hneelu on June 2, 2009

DCD had three main wizards

  1. Service Wizard
    The Service Wizard defines a service and corresponding operations which are used to invoke RPC operations returning a certain data. Service Wizard can connect to PHP, CF, Httpservice, Webservice(WSDL), BlazeDS and LCDS.   [MORE]
  2. Configure Return Type
    It test an operation of an existing service and view the returned data structure. It generates VOs which can we used in flex applications. [MORE]
  3. Bind to Data
    Binds the existing component to the service operation result. Components supported are list, tilelist, horizontal list, combobox, button, datagrid, advanced-datagrid, charts and text controls etc. Form generation is also in scope of Bind to Data [MORE]

There are other aspects to DCD which are useful

  1. Service Explorer.
    The Service Explorer is the entry point of DCD workflow. This allows users to create and use various services for a Flex project. Check out the toolbar anc context menu (Right click on an operation) for added functionality like Form Generation, Refresh , Properties etc   [MORE]
  2. Configure Column (if you are using a datagrid)
    It configures columns for a datagrid, like adding/deleting columns.

NOTE: The code generated by DCD are VO for services and custom return type and NOT an equivalent of PHP/CF code in action script.

Posted in DCD, Flash Builder, wizards | Tagged: , | 1 Comment »