Customize the True/False display and dropdown text.
DisplayTrue| Displayfalse| DropTrue| Dropfalse
| Keyword | Description |
|---|---|
| DisplayTrue | Text displaced when value if cell is True in display of Grid and Form. OK to use image |
| DisplatFalse | Text displaced when value if cell is False in display of Grid and Form. OK to use image |
| DropTrue | Text displaced when value if cell is True in Filter and Edit drop boxes. MUST be text and defaults to "True". |
| DropFalse | Text displaced when value if cell is False in Filter and Edit drop boxes. MUST be text and defaults to "False". |
For SQL boolean fields use - Obj.dbBoolText = "DropTrue=1|DropFalse=0"
[vb]
<script language="vb" runat="server">
Sub Page_Load(Source as Object, E as EventArgs)
Dim boo As New Tornado.Z
With boo
.dbQP = "u=53|S=1|D=Nwind|Ni=b5,Filter|Th=ti=BoolText"
.dbSQL = "SELECT ProductName, Discontinued From Products"
.dbBoolText = "DisplayTrue=<IMG src='/tornado/images-net/happyface.gif'>|
DisplayFalse=<IMG src='/tornado/images-net/sadface.gif'>|
DropTrue=Ya |DropFalse=Na"
.dbFilterFlds = "0,fi=discontinued|ty=SelectBox+B|va=TF|te=TF"
.ASPdbNET()
End With
End Sub
</script>