Go  to ShowTheBest.com

ShowTheBest.Com

Interactive tables on your web pages

Case Database Table

The Case Database Table is the table whose rows or columns are matched, scored, and sorted. Records and fields can be arranged horizontally and vertically. Record names and field names are optional: ShowTheBest.Com will create default names if none are supplied. You can create the Case Database Table with an editor or spreadsheet; it can also be dynamically generated by an external program. (ie, a Perl program that calls a SQL DBMS) -- as long as the program generates a tab-delimited text file (whose name is an input parameter) as output.

Here is an example of a Case Database Table in Excel:

The first line of this file specifies the number of rows and columns in the table. Note that the record labels are provided in column A and the field labels are provided in row 2. The total number of rows in this table (including the record labels) is 24; the total number of columns (including the record labels) is 15.

ShowTheBest requires this table to be saved in tab-delimited text format.  This is a file saving option in Excel. An external program that dynamically creates the Case Database Table . also needs to write a file in this format.

Here is an example of the above Case Database Table as viewed in a text editor:

Case Database Table: Matching, Scoring, and Display

The values in the Case Database Table are matched with your user inputs -- either directly or via a Map. All of these values must be consistent with each other: "Apples with Apples and Oranges with Oranges." This means, for example, that matches inolving numbers requires a field to be all numbers; matches involving text require a field to be all text.

Sometimes you may have to carefully design a Case Database Table to achieve this. For example, suppose a price value in the table is $20-50. How do we model this? Here are several alternatives:

If no Display Database is specified in the Controls file, ShowTheBest.Com will display the Table Database. If no header is provided then ShowTheBest.Com will generate a header and link to the eponymous default stylesheet files. (in the styles subdirectory of webpages).


 

 

© 2002 Inductive Solutions, Inc. All Rights Reserved.