Show/Hide various action buttons in Filter and Edit screens.
dbQP Abbr: bof
Version: All
Namespace:
TornadoVersion: All
Assembly: Tornado (in Tornado.dll) Version: 12.6.0.9 (1.0.0.0)
Syntax
| C# |
|---|
public string dbButtonsOnOff { get; set; } |
| Visual Basic (Declaration) |
|---|
Public Property dbButtonsOnOff As String |
Field Value
Obj.dbButtonsOnOff = "HoverButton| UpdateCancel| AddCancel| UpdateDropToggle| AddDropToggle| FilterCancel| FilterDropToggle| AddCopy"| Keyword | Description |
|---|---|
| HoverButton | Def=True. All button in ASPdb.Net are hover type. (Not recommended to turn off) |
| UpdateCancel | Def=True. Turn Update Cancel button on/off |
| AddCancel | Def=True. Turn Add Cancel button on/off |
| UpdateDropToggle | Def=True. Turn Update Drop button on/off |
| AddDropToggle | Def=True. Turn Add Cancel button on/off |
| FilterCancel | Def=True. Turn Filter Cancel button on/off |
| FilterDropToggle | Def=True. Turn Filter Drop button on/off |
| AddCopy | Def=True. Turn Add Copy button on/off |
Remarks
Buttons Default display state is ON.
DropToggle is a special case and when it toggles to off, user can enter any text instead of the controlled dropdown selections. Cancel Buttons when available will return to the normal display and might not be desirable in some cases. Note that all boolean selection like ON/Off are changed to True/False in ASPdb.Net.
Examples
<script language="vb" runat="server"> Sub Page_Load(Source as Object, E as EventArgs) Dim bof As New Tornado.Z With bof .dbQP = "u=55|S=3|D=Nwind|ni=b5,filter,update,add| Th=ti=dbButtonsOnOff Demo|bm=Products;0" .dbSQL = "SELECT ProductID, ProductName, UnitPrice, Discontinued From Products" .dbFilterFlds = "0,fi=discontinued| ty=SelectBox+B| va=TF| te=TF" .dbButtonsOnOff = "UpdateCancel=f| AddCancel=f| UpdateDropToggle=f| AddDropToggle=f| FilterCancel=t| FilterDropToggle=f" .ASPdbNET() End With End Sub </script>