#
# This is a Template-File for WWWdb
#
#
#

# --- Description of the data to access -----------------------------------------
[Data]
Table    = wwwdb_state
Order    = session_id, key_name

UpdFields = key_name, key_value
QryFields = key_name, key_value

IdField     = session_id, key_name

[Cache]
Timeout         = 0

# --- Configuring the browser here ----------------------------------------------
[Browser]
MaxRows = 10

# --- General header for WWWdb --------------------------------------------------
[Header]

# --- User-specific gui definitions ---------------------------------------------
[GUI]

# --- Definition of the different states ----------------------------------------

# Buttons for all states
# please note that "-" deactivates a Button
[State All]

# This is the state when the form is called the first time, or the Back-button
# is pressed
[State Init]

# In this state you have selected a record, which you can update or delete
[State Work]

# This is the record-Browser
[State Qry]
; Header = <Text for query-state>

# --- Layout for the area, the data is shown ------------------------------------
[Layout Table]

[Layout Label session_id]
Text = ""

[Layout Field session_id]
Type = Hidden
Bold = Yes

[Layout Label key_name]
Text = Key

[Layout Field key_name]
Type = Select
Values = <<EOF
SELECT DISTINCT key_name, key_name
FROM wwwdb_state
WHERE key_name != ''
ORDER by key_name
EOF



