|
YOUR FEEDBACK
Did you read today's front page stories & breaking news?
SYS-CON.TV SYS-CON.TV WEBCASTS |
TOP COLDFUSION LINKS Applications ColdFusion To Flex Super Wizard
Building Cool Applications
By: Mary McDonald
Oct. 31, 2006 10:15 AM
ColdFusion Extensions for Flex, included in ColdFusion MX 7.0.2, enable Flex Builder 2.0 developers to automate the more mundane tasks like CRUD (creating, reading, updating and deleting records) by creating ColdFusion components, ActionScript class files, and code to invoke a Web Service.
First we have to make sure we have all the software we need to make our software writing jobs easier. The following software will be used in this example:
To Create the application while in Eclipse, select CTRL + N and select the ColdFusion/Flex application wizard (see Figure 1). Press Next and read through text displayed. Press Next again (see Figure 2). Since this is a new application we will click Next to specify our settings. (If we wanted to load settings from a previous application, we could just select the "Load ColdFusion/Flex Application Wizard Settings" button instead) (see Figure 3). Select your RDS Server where your Data Source is located, then select the Data Source being used in your application. Press Next. (ColdFusion uses RDS to get the metadata from your Data Source here) (see Figure 4). This is where we will define the Page Layout and Design for our first page (see Figure 5). We will select "Master" for the Master Page Type. This will generate a page that just lists information. Then select the "Edit Master Page" button (see Figure 6). Select the artists table from the list of tables on the left (see Figure 7). Select from the artists table the ARTISTID, FIRSTNAME and LASTNAME. Click Save (see Figure 8). Enter "List of Artists" next to the Name: label to name the page. Select + to Add the next page (see Figure 9). Name the page Artist Detail and select "Detail" as a Page Type then select the "Edit Detail Page" button (see Figure 10). Double-click the artists table. This time the wizard automatically ties the artists to the ARTISTID as indicated by the "ID" parameter (see Figure 11). Next we add the two pages to the Navagation Tree to the left. Select Next (see Figure 12). Here we can change settings that could affect the Flash Remoting settings; the Web Root URL settings; the Project Name and Web Root Folder, where the Project will be placed; as well as the Wizard Settings. This time we will accept the default settings, so click Finish (see Figure 13). The wizard makes the ArtExample project, then compiles it! Automatically created is the ColdFusion code (as seen by the ColdFusion components on the left) as well as the Flex code (as seen by the Main.mxml Source code on the right). WOW! That's what I thought when I saw this! (see Figure 14). Here, we just double-clicked on the List_of_Artists.cfc to look inside at the query (see Figure 15). YOUR FEEDBACK
CFDJ LATEST STORIES . . .
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
|
SYS-CON FEATURED WHITEPAPERS MOST READ THIS WEEK |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||