|
To access the contents, click the chapter and section titles.
Platinum Edition Using HTML 4, XML, and Java 1.2
The Database Tab enables you to access the system data sources on a remote server thats running ColdFusion. This can be incredibly valuable during development, especially when writing queries. Each data source on the server is presented in a tree that you can expand to display the tables, views, and queries stored in the corresponding database file. You can also expand a given table to display the database columns that compose the table. Studio will show you not only the name of the column, but its type and length as well (see Figure 34.24).
Projects are groups of related files stored together. For example, you can group all the templates that support a single application into a project. Once grouped, you can open, close, and save all the files simultaneously. Furthermore, you can do search and replace operations across all the files, making it simple to deploy global changes in your applications. You can access the projects youve created through the Projects Tab on the Resources Tab. The Tag Snippets Tab enables you to set up folders to hold frequently used blocks of code (see Figure 34.25). This is an excellent place to store code for things such as standard headers and footers, common form controls (for example, a drop-down list of all 50 statessomething that is painful to have to type out each time you need it!), and client-side imagemaps.
Finally, the Help Tab gives you access to complete documentation on all CFML tags and functions, explanations of how to use and customize ColdFusion Studio, references for HTML and Cascading Style Sheets, and information on how to contact Allaire for technical support. Using Special ColdFusion Studio ToolsIn addition to the excellent tag support provided by the Tag Toolbar and the easy access to resources through the Resource Tab, ColdFusion Studio also comes with a few other useful tools. The chapter closes with a brief look at three of them: the Tag Chooser, the Expression Builder, and the Insert SQL Statement tool. The Tag Chooser Figure 34.26 shows the Tag Chooser, which you can activate by pressing Ctrl+E. Within the Chooser, all HTML and CFML tags are stored in an easy-to-navigate tree structure that enables you to zero in on the tags you want quickly. As you move through the tree structure, the various tags available are displayed in the right side of the Chooser. To insert one of the tags into your document, click it and then click the Select button in the lower right.
The Expression Builder You launch the ColdFusion Studio Expression Builder by pressing Ctrl+Shift+E. The Expression Builder is useful in two ways. First, it is helpful when youre building complicated expressions that involve ColdFusion functions. You can see the expression in the window at the top of the Builder and make edits to it there as necessary (see Figure 34.27). The other useful feature of the Expression Builder is that it catalogs all CFML functions, constants, operators, and variables in the tree you see on the left side of the builder. By navigating the tree, you can easily look up one of the CFML functions that are otherwise too numerous to commit to memory. As you move through the tree, the available functions, constants, operators, and variables are displayed in the right side of the Builder. After youre done composing your expression, clicking the Insert button places it into your template.
The Insert SQL Statement Tool If you need to use a query stored in one of your data sources or if you need to construct a new query, you can choose the Insert SQL Statement option under the Tools menu to open the window you see in Figure 34.28. From this window, you can connect to one of the ColdFusion servers that Studio is configured to work with and navigate to the Queries subtree of the data source youre using. From there you can choose one of the queries and insert it directly into your template.
If you need to compose a brand new query, you can click the New Query button you see in Figure 34.28 to launch the Query Builder you see in Figure 34.29. The Query Builder gives you a visual environment in which to construct your query. You can open as many tables as you need in the Query Builder window and do joins on the tables by simply dragging the joining fields from one table to another. As you do, the corresponding SQL statement is constructed at the bottom of the Query Builder. When youre done building the query and click the close button, the Query Builder will give you the option to insert the SQL statement right into your template.
|
Products | Contact Us | About Us | Privacy | Ad Info | Home
Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Read EarthWeb's privacy statement. |