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

Chapter 26. Adding and Modifying Data > Using Application Objects to Create an ...

Using Application Objects to Create an Admin Page

Aimed at giving you quick access to sophisticated interactivity without having to rely on the various panels that encompass all the objects, application objects are basically pre-designed web components you can use within your application. Application objects are easy to use; in fact, you've already used some of them and may not have even known it. Some of the application objects we'll be using are outlined in the following chart:

ObjectSupported TechnologiesDescription
RecordsetASP, ColdFusion, and PHPLaunches the Recordset dialog you normally see when selecting the Recordset server behavior from the Bindings panel.
DataSetASP.NETLaunches the DataSet dialog you normally see when selecting the DataSet server behavior from the Bindings panel.
CommandASPChoose this option, also available from the Bindings panel's Add (+) menu, to launch the Command dialog. From this dialog, you have the option of creating a reusable command that accepts varying parameters based on the page that is using it. From the Command dialog, you have the option of connecting to a stored procedure or working with inserts, updates, or deletes.
Stored ProcedureASP.NET and ColdFusionChoose this option, also available from the Bindings panel's Add (+) menu, to launch the Stored Procedure dialog. Stored procedures are pre-built SQL functions that perform a variety of tasks including insert, update, and delete operations in a database. The beauty in stored procedures is that they accept parameters. Based on these parameters, SQL code on the database, and ultimately the database table itself, can fluctuate in its functionality.
Dynamic Data (Dynamic Text, Table, Text Field, Checkbox, Radio Group, and Select Field)ASP, ColdFusion, and PHPEnables you to quickly create and format a table complete with bound data from your recordset on-the-fly.
Dynamic Data (Dynamic Text, DataGrid, and DataListASP.NETAs you saw in the previous chapter, you can use these sets of objects in conjunction with ASP.NET to create dynamic text or dynamic data that's presented in a database table-like structure.
Repeated RegionASP, ASP.NET, ColdFusion, and PHPSimilar to the functionality outlined in the previous chapter, the Repeated Region object creates a repeated region for a dynamic table.
Show RegionASP, ASP.NET, ColdFusion, and PHPUse this set of conditional objects to show or not show specific regions on the dynamic page based on record count of a recordset or DataSet or the position within it.
Recordset PagingASP, ASP.NET, ColdFusion, and PHPIncludes the Recordset/DataSet Navigation bar as well as Move to First, Last, Previous, and Next pagination server behaviors complete with the Show Region behavior attached. As you've seen in the previous chapter, this set of objects is great for creating sets of dynamic content that can be paged from one set of data to the next based on user's interaction with a Next and Previous hyperlink/button.
Go ToASPUse the Go To set of objects, also available from the Server Behaviors panel's Add (+) menu, to work with functionality in conjunction with the Master Detail Page Set. You can use the Go To Detail Page or Go To Related Page to automatically redirect the user to a specific page based on dynamic form, URL, or other parameters.
Display Record CountASP, ASP.NET, ColdFusion, and PHPIncludes the Recordset Navigation Status objects as well as objects for displaying the starting record number, ending record number, total number of records, and the current page index. The Recordset Navigation Status object includes all this functionality in one object instance.
Master Detail Page SetASP, ColdFusion, and PHPArguably the most widely used application object, the Master Detail Page Set allows a developer to create a low-detail page that links to a second, more detailed page for a particular record.
Insert, Updated, Delete RecordASP, ASP.NET, ColdFusion, and PHPOpens the Insert, Update, or Delete Record dialog. These dialogs facilitate the insertion, update, and deletion of data in the database.
User AuthenticationASP, ColdFusion, and PHPUse this set of objects/behaviors, also available from the Server Behaviors panel's Add (+) menu, to create user authentication services for your web application. Functionality includes the ability to log in a user, log out a user, or restrict user access to specific pages. More information on this set of objects can be found in Chapter 29, “Security and User Authentication.”
XSL TransformationASP, ASP.NET, ColdFusion, and PHPSelecting this object launches the XSL Transformation dialog. From this dialog, you have the ability to provide an XSLT and XML file to dynamically produce an HTML file that is viewable within the browser. More information on this object/behavior can be found in Appendix C.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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