Vinculação de dados do coldfusion para o flex

1978 palavras 8 páginas
Vinculação de dados do ColdFusion para o Flex componentes de interface do usuário com o Adobe Flash Builder 4 Adobe Flash Builder 4 , formerly known as Flex Builder, has a very simple interface for binding server-side data to Flex framework UI controls. Using Design mode, you can drag and drop components to create a layout and bind the data. In a matter of minutes, you will have a dynamically populated application without writing any code.
In this tutorial, you will learn how to use DataGrid and PieChart controls and bind them to the data returned from a ColdFusion Component (CFC) function. You will also learn how to synchronize the data in the two controls.
This tutorial is intended for: * Developers who are exploring tutorials in the Flex and ColdFusion mini learning center that are based on the Fictitious Sales Planner example * Experienced ColdFusion developers without previous Adobe Flex framework or Adobe Flash Builder 4 experience * ColdFusion developers who are familiar with ColdFusion components
Configuring the data return type
As mentioned in the introduction, this tutorial uses the same development environment as Getting started with ColdFusion and Flash Builder 4 and the other tutorials in this series. In this section, you will name a second data type for use with a different service call to a CFC function: 1. Locate the Data/Services view in Flash Builder 4. You should see the F4CF_Getting_Started_Service service shown in Figure 1.

Figure 1. Verify whether the EmployeeSalesData data type has been defined. 2. In the Data/Services view, right-click the getEmployeeDataByRegion() function of the F4CF_Getting_Started_Service service and select Configure Return Type (see Figure 2).

Figure 2. Configure the return type of a CFC method.
Each record from the query will be placed in an ActionScript object with each column of data (FIRSTNAME, LASTNAME, EMAIL, and so on) set in a name/value pair. Each record is indexed starting

Relacionados

  • Dreamweaver
    2476 palavras | 10 páginas
  • Html-final
    14859 palavras | 60 páginas
  • Informatica
    230927 palavras | 924 páginas