• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 23. Flash Remoting with ColdFusion > Building Your Application

Building Your Application

Now that we have established a connection with our remote service, we can start to create other remote services to interact with our database. CFCs can be used many ways to return data to Flash. In our next example, we will use the <cfquery> tag to submit SQL (Structured Query Language) statements to communicate with the database and return the results of the query to Flash. In our getTestConn function, we only returned a string. Our returnType property in our <cffunction> tag was set to string. When returning values from a query, our returnType property needs to be set to query.

Return to your CFC unleashedCom.cfc, and type the following after the getTestConn function and above the closing </cfcomponent> tag:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint