CD-134 Part VI . Appendixes Award information. The (Mac os x web server)

CD-134 Part VI . Appendixes Award information. The data file has eight columns of data, and each column heading is treated as a field name: Year, Best Picture, Best Director, Best Director Film, Best Actress, Best Actress Film, Best Actor, and Best Actor Film. For the design of the page, only five fields from each record appear: Year, Film, Director, Actress, and Actor. Notice in the listing how the HTML for the table and its content is bound to the data source object and the fields within the data. The dynamic part of this example is apparent in how you can sort and filter the data, once loaded into the browser, without further access to the original source data. The TDC object features Sortand Filter properties that enable you to act on the data currently loaded in the browser. The simplest kind of sorting indicates on which field (or fields via a semicolon delimited list of field names) the entire data set should be sorted. Leading the name of the sort field is either a plus (to indicate ascending) or minus (descending) symbol. After setting the data object s Sort property, invoke its Reset()method to tell the object to apply the new property. The data in the bound table is immediately redrawn to reflect any changes. Similarly, you can tell a data collection to display records that meet specific criteria. In Listing 15-9, two select lists and a pair of radio buttons provide the interface to the Filterproperty s settings. For example, you can filter the output to display only those records in which the Best Picture was the same picture of the winning Best Actress s performance. Simple filter expressions are based on field names: dataObj.Filter = Best Picture = Best Actress Film Listing 15-9: Sorting and Filtering Bound Data Data Binding Sorting elementObject.dataFld
Looking for affordable and reliable webhost to host and run your business application? Then look no more and go to servlet web hosting services.

Leave a Reply