dbCustomButtons

Define user buttons in Grid and Form mode. A maximum of 8 buttons are allowed.

Property Syntax

Obj.dbCustomButtons="(;,#)Button_Text,Button_IconName, HREF; ... repeat"

Parameters

Parameters

Description

(;,#) Group, Field delimiter and MagicWrap wrapper.
ButtonText Button name.
Button_Icon_Name Name of Icon image file. If blank, itíll be set to same as Text. dbImageDir will be used to locate the image file.
HREF Contents of HREF excluding the HREF keyword. Magic Cell macro applies. Use only the appropriate ones.

Example

<%
Set X = Server.CreateObject("ASP.DB")
X.dbDSN = "NWIND"
X.dbUnit = 1
X.DBColor = "4,,lightblue"
X.dbGridTableTag = "border=3"
X.DbMode = "GRID"
X.dbSQL = "Select CompanyName,Fax from Suppliers"
X.dbBlankText="&nbsp;"
X.dbMagicCell = "1,BGColor=yellow,<b>#1#</b>"
X.dbCustomButtons="Expand,,#me#?SQL=#SQL#&DSN=Proj99"
X.ASPDB
%>

Output

Note that this browser screen dump has the cursor over the User button "Expand". The #SQL# has been expanded to the current SQL. The #me# has been expanded to the Request.ServerVariables("SCRIPT_NAME").