Exploring Flex

Posts Tagged ‘DCD’

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 »

Advertisements

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) Workflow

Posted by hneelu on June 2, 2009

  1. For PHP
    Building a flex application for a PHP class
    Building a database app using flex and PHP
  2. For CF
  3. For Http Service
  4. For WSDL
    Connecting to Webservice with DCD feature in flash builder 4
  5. For BlazeDS
    Building Flex application for BlazeDS remoting service using flash builder 4

Posted in DCD, Flash Builder, workflow | Tagged: , , | Leave a Comment »

Flash Builder 4 – Data Centric Development (DCD) Service Wizard

Posted by hneelu on June 2, 2009

[Updated for Flash Builder Beta 2]

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.

AllService

Read the rest of this entry »

Posted in DCD, Flash Builder, workflow | 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 »

Flash Builder 4 Beta – Data Centric Development (DCD) Introduction

Posted by hneelu on June 1, 2009

Flash Builder 4 Beta 2 (Code name: Gumbo) is available at Adobe labs.

FB 4 comes with a new feature set DCD (Data Centric Development). This makes the entire workflow to connecting to data easy, be it databases (through PHP and CF), HTTP Service, PHP, CF, WSDL etc.
With only three wizards : Service Wizard, Configure Return Type and Bind to Data,  the basic app is up and running.

I’ll take an example of connecting to a database.
I just want to fill in some data I get from the server to a datagrid.
Sound simple. With DCD workflow it is even  simpler to achieve it.
Pre-requisites:

  • Flash Builder 4 Beta
  • Apache , PHP, mysql or just WAMP

Flowchart 1:

Read the rest of this entry »

Posted in DCD, Flash Builder | Tagged: , , | 2 Comments »