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

dbQP Abbr: bof
Version: All

Namespace:  Tornado
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"
KeywordDescription
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

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

CopyVB.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"
    .ASPdbNET()
  End With
End Sub
</script>

See Also