Caché Web Applications Tutorial
- Preface
- The Basics
- The Caché Cinema Application
- The Caché Cinema Application 2
- The Caché Cinema Application 3
- The Caché Cinema Application 4
- Application Components
- Generated Code
- Classes
- Creating a New Class
- Starting Studio
- Creating a New Class 2
- Creating a New Class 3
- Add Class Wizard Step 1
- Add Class Wizard Step 2
- Adding Properties
- Defining the Title Property
- Title Property Type
- Title Property Characteristics
- The Studio Editor Window
- The Description Property
- Using Property Parameters
- Assigning Default Values
- Using the Class Inspector
- Defining the PlayingNow Property
- Compiling a Class
- What Compiling Does
- Methods
- Recap—Simple Class Definition
- Creating a Simple Web Form
- What Is Caché Server Pages?
- Creating a New CSP Page
- Using the Web Form Wizard
- Generated Code
- Saving the Generated Page
- Using the Generated Page
- Adding a New Film
- Searching the Database
- Specifying Search Criteria
- Specifying Search Criteria 2
- CSP Development Steps
- CSP Processing Steps
- Caché Application and Data
- Caché Application and Data 2
- Creating a Caché Server Page
- Enhancing the Film Class
- Using a Value List
- Defining the Length Property
- The Length Property as %Integer
- Creating a Data Type
- Inheritance
- Defining the Duration Data Type
- Specifying a Super Class
- Overriding an Inherited Method
- Modifying a Method
- Method Implementation
- Saving the Data Type Class
- Using Our Data Type
- Linking Classes
- Object IDs
- Creating the FilmCategory Class
- Creating the FilmCategory Class 2
- Adding the CategoryName Property
- Saving the FilmCategory Class
- Making the Connection
- Recap—Advanced Class Definition
- Creating the TopPicks Page
- Starting a New Page
- Defining a Query
- Defining a Query 2
- Selecting Properties
- Selecting Properties 2
- Specifying Selection Criteria
- Sorting the Results
- Completed TopFilms Query
- Adding a CSP:Query Tag
- CSP:Query HTML
- HTML for Adding Query Data
- Adding Query Data 2
- Looping with CSP:While
- Adding a CSP:While Tag
- Showing the TopPicks Page
- Modifying the TopFilms Query
- Editing SQL
- Unified Data Architecture
- Recap—Using CSP Tags
- Processing a Request for the TopPicks Page
- Defining the Show Times Page
- The Show and Theater Classes
- Show and Theater Properties
- ShowTimes Query
- Creating the ShowTimes Query
- Defining a Query Parameter
- Selecting Query Properties
- Using a Parameter for Selection
- Specifying Sort Order
- HTML for the ShowTimes Page
- Including Data in a URL
- The Request Object
- Retrieving Data from the Request Object
- Linking Two Pages
- Adding an Anchor Tag
- Generated URLs
- Encoded URLs
- Using the CSP:Class Tag
- Recap—Using CSP Tags
- Using a CSP:Object Tag
- Inserting a CSP:Object Tag
- CSP:Object Tag HTML
- Using Object Data
- Web Transaction Processing
- Web Transaction Processing
- Displaying an Order
- Modifying an Order
- Completing a Transaction
- Order Processing Development Steps
- Adding Order Processing Classes
- Creating Order Processing Classes
- Defining Relationships
- Defining a Relationship
- Specifying Relationship Details
- Inverse Relationship
- Relationship Code
- Processing a Ticket Order
- Creating Cinema.Utils
- Creating the AddShow Method
- Specifying Class Method
- Obtaining a TicketOrder Object
- Obtaining a TicketOrder Object 2
- Creating a TicketItem Object
- Connecting Objects
- Object IDs and Orefs
- Using Dot Syntax
- Using Inheritance in Web Pages
- Multiple Inheritance
- Setting Compile Options
- Processing Ticket Orders
- Calling Server Side Methods
- Calling a Server Side Method
- Displaying the Order
- Creating the Order Page
- Determining the Number of TicketItems
- Retrieving a TicketItem
- Adding a Drop Down List
- Selecting a List Item
- Adding a <FORM> Tag
- Displaying the Total Charge
- The Order Page So Far
- Using Frames
- Defining a Page with Frames
- Showing the Order Page
- Sending Code to the Browser
- Processing a Ticket Order
- Completing an Order
- Creating a Page via Code
- Creating a Web Page Class
- Specifying an Additional Super Class
- The OnPage Method
- Completed OnPage Method
- The CompleteOrder Method
- Saving and Closing Objects
- Cleaning Up the Session
- Completing the Order
- Handling Abandoned Orders
- Creating the OnEndSession Method
- Handling a Post-Session Request
- Altering the Contents of a Page
- The ChangeQuantity Method
- The ChangeQuantity Method 2
- The ChangeQuantity Method 3
- Calling the ChangeQuantity Method
- Advanced Features
- Searching the Database
- Displaying Search Results
- Defining the Search Page
- The Search Form
- Adding the Category List
- Adding the Category List 2
- Displaying Search Results
- Using a Dynamic SQL Query
- Adding Selection Criteria
- Adding Selection Criteria 2
- Cached Queries
- Using Electronic Mail in an Application
- Modifying Order.csp
- Using Form Data
- Calling the SendEmail Method
- Creating the SendEmail Method
- Connecting to the Mail Server
- Creating a Mail Message
- Sending the Message
- Recap—Using Email
- Personalizing Content
- Personalizing Content 2
- Cookies
- HTTP Protocol
- OnPreHTTP Method
- Getting the Category ID
- Setting an Expiration Date
- Storing a Cookie
- Personalizing TopPicks
- Selecting a Query at Runtime
- Retrieving a Cookie
- Displaying the Category Name
- Setting the Query Variable
- Recap—Personalization
- What Else Is There?
- Building Your Own Caché Cinema
- Storing Your Web Page
- Loading Sample Data
- Remember to Compile
- Loading Sample Data
- Loading Sample Data
- Sample Bit Maps
- Integrated Class Documentation
- HTML Quick Introduction
- ObjectScript Quick Introduction
- Using Query Data in a Web Page
- Adding Query Data
- TicketOrder and TicketItem Properties
- Class versus Instance Methods
- CategoryName Query
- Removing the Cookie
- Storing a Cookie
- Setting an Expiration Date
- Calling CompleteOrder
- The TopCategory Query
- The Modified TopFilms Query