QC1
database: forms |
QC1 database: | |||
---|---|---|---|
Project | |||
purpose | |||
specs | |||
Tech Guide | |||
structure | |||
database tables | |||
access | |||
configuration | |||
interfaces | |||
primary keys | |||
forms | |||
Users Guide | |||
general | |||
QC1 browser | |||
QC1 plotter | |||
ingest data | |||
hide data | |||
QC1 database | |||
TQS docu |
The following forms exist:
This form is used for the interface to the QC1 database. It knows two actions, action=qc1_browse_table and action=qc1_plot_table These actions are referred to the qc1_browser and the qc1_plotter in this guide.
This form is used in the general QC1 database GUI which is used in the public QC pages, e.g. for UVES . It connects the general QC interface to the QC1 database. This interface is called 'general' because it offers a non-technical, user-oriented view of the QC1 database, in contrast to the more flexible but also more technical interfaces described here. The implementation of qc1_trend within the public QC1 pages is done in the following way. qc1_trend uses three hidden fields to pass the following specific information. They can be placed anywhere within the form but it makes sense to insert them right after the initial 'form' statement. Hidden fields have the HTML syntax
The first one is "item2table" and contains the mapping of QC item names into QC1 database table names. General syntax: value="{'item1':'table1','item2':'table2',etc}"
The item names are used in the form and are visible to the user, while the database tables are internally used. The second hidden field is "item2columns" and passes the columns (keys) to be displayed in the result page (civil_date is always implicit). General syntax: value="{'item1' : ('col1','col2',etc), 'item2' : ('col1','col2',etc), etc }"
The third hidden field is "item2filters" and has the names of the filter keys used for the selection. The filter names are the same as the names in the HTML page and must be consistent with the database names. Syntax: value="{'item1' : ('filt1','filt2',etc), 'item2' : ('filt1','filt2',etc), etc }"
It is important that each of these hidden fields contains all the information needed in the form it is wrapped. This implies on the other side that the hidden fields can have different content in different forms. E.g., the form for the bias QC1 values on the main QC1 page does not need to have the identical content as the one linked to the bias_qc1.html page. This gives you the chance to filter for more detail, or retrieve more keys, than on the more general main page. There is also no need to embed the hidden fields identically in all forms. E.g., the bias related entries can readily be dropped in a form related to wave QC1 parameters.
|
||
|
|||
|