Toggle display status.

dbQP Abbr: iv
Version: All

Namespace:  Tornado
Assembly:  Tornado (in Tornado.dll) Version: 12.6.0.9 (1.0.0.0)

Syntax

C#
public bool dbInvisible { get; set; }
Visual Basic (Declaration)
Public Property dbInvisible As Boolean

Field Value

Obj.dbInvisible = True | False(Def)

Remarks

Display should be turned off in exports when preparing for template stuffing. If invisible is true in ASPdbSendTemplate, then the entire module display will be saved and only the active module will be displayed. See dbMultiModules.

Examples

The follwing example suppress the grid display and then place the grid in a template.
CopyVB.NET
<script language="VB" runat="server">
Sub Page_Load(Src As Object, E As EventArgs)
  Dim z1 As New Tornado.z
  With z1
    .dbQP = "u=1| D=Nwind| Q=Orders| Gdf=0,1,2,3| Ni=none|Th=Ti=Invisible Grid"
    .dbInvisible = True
    .ASPdbNET()
    .ASPdbSendTemplate("Display", "", "<h3>This is My Grid</h3>[[Grid]]")
  End With
End Sub
</script>
The following code export two raw fields. This is the case where application needs to retrieve info from the web application w/o any display and html code.
CopyVB.NET
<script language="VB" runat="server">
Sub Page_Load(Src As Object, E As EventArgs
  Dim GD As New Tornado.GetData
  Dim Tag As String = Request.QueryString("Tag")
  Dim x As New Tornado.z
  x.dbQP = "U=1|D=c:\MuWare\Mu.mdb"
  x.dbSQL = "Select Info, owner from uCode where IC = " & Tag
  x.dbInvisible = True
  x.dbNoHead = True
  x.dbExportFlds = "(0),(1)"
  x.ASPdbNET()
  Dim flds() As String = GD.Get_Fexport   '1 Dim array
  Response.Write(flds(0) & "," & flds(1))
End Sub
</script>

See Also