Tornado API Library - V12.30.08

z.dbButtonsOnOff Property

Show/Hide various action buttons in Filter and Edit screens.


Property Value

Obj.dbButtonsOnOff = "HoverButton| UpdateCancel| AddCancel| UpdateDropToggle| AddDropToggle| FilterCancel| FilterDropToggle| AddCopy"

HoverButtonDef=True. All button in ASPdb.Net are hover type. (Not recommended to turn off)
UpdateCancelDef=True. Turn Update Cancel button on/off
AddCancelDef=True. Turn Add Cancel button on/off
UpdateDropToggleDef=True. Turn Update Drop button on/off
AddDropToggleDef=True. Turn Add Cancel button on/off
FilterCancelDef=True. Turn Filter Cancel button on/off
FilterDropToggleDef=True. Turn Filter Drop button on/off
AddCopyDef=True. Turn Add Copy button on/off

QuickProp Keyword Abbreviation



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.


<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"
  End With
End Sub

See Also

z Class | Tornado Namespace