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

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

UpdFields = id_lookup, lang, key_name, sort_nr, label, key_value, last_change
QryFields = key_name, sort_nr, label, key_value

IdField   = id_lookup, lang


[Cache]
Timeout         = 0

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

# --- 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]
; BtnCancel  = <Text for Button>
; BtnHelp    = <Text for Button>

# This is the state when the form is called the first time, or the Back-button
# is pressed
[State Init]
; Header = <Heading for initial-state>
BtnNew = -
; BtnQry = <Text for Button>
; Btn<YourBtn> = <Text for your Button>

# In this state you have selected a record, which you can update or delete
[State Work]
Header = "Translate this lookup-label"
BtnUpd = Translate
BtnDel = -

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

[Qry]
BgColor2    = #e0e0e0
NrOfColLine = 2
SelType = Link

# --- Layout for the area, the data is shown ------------------------------------
[Layout Table]
; LinkWidth   = <Width of link-box in pixels>
; Border      = <Border-Width>
; BgColor     = <Background-color of table>

[Layout Qry _link]
Text = ""
Type = Ref
Value = "<  >"
Align = Right

# --- Here are the examples for the single fields -------------------------------

[Layout Label key_name]
Pos = +2.0.0
Text = "Type:"
Bold = Yes
Align = Right


[Layout Field key_name]
Pos = +0.+2.0
Bold =
Type = Label

[Layout Label key_value]
Pos = +1.0.0
Text = "Value:"
Bold = Yes
Align = Right

[Layout Field key_value]
Pos = +0.+2.0
Bold =
Type = Label

[Layout Label label_base_lang]
Pos = +1.0.0
Text = "Label (base-language): "
Bold = Yes
Align = Right


[Layout Field base_lang]
Pos = +0.+1.0
Bold = Yes
Type = Label

[Layout Field label_base_lang]
Pos = +0.+1.0
Bold = Yes
Type = Label
BgColor    = #e0e0e0

[Layout Label label]
Pos = +1.0.0
Text = "Label (translated): "
Bold = Yes
Align = Right

[Layout Field lang]
Pos = +0.+1.0
Bold = Yes
Type = Label

[Layout Field label]
Pos = +0.+1.0
Bold = Yes
Type = Text
Size = 50


[Layout Label sort_nr]
Pos = +1.0.0
Text = ""
Bold = Yes
Align = Right


[Layout Field sort_nr]
Pos = +0.+0.+1
Bold = Yes
Type = Hidden


[Layout Label last_change]
Pos = +0.+0.+1
Text = ""
Bold = Yes
Align = Right


[Layout Field last_change]
Pos = +0.+0.+1
Type = Hidden

[Layout Field id_lookup]
Pos = +0.+0.+1
Type = Hidden

[Layout Field last_change_base_lang]
Pos = +0.+0.+1
Type = Hidden
