dbButtonImages

Allow user to customize the SUBMIT and RESET button in TEMPLATES ONLY. The button text is the string after SRC='xxxxx'. Do not include quotes. If this property is blank, then ugly system gray buttons will be used. Note that in Templates ONLY, Reset button is controlled separately via [[Reset]] and do not stick to the apply buttons. If "\" exists in buttonImages text, it implies that user is specifying the path. Otherwise the button text will append to dbImageDir.

Property Syntax

Obj.dbButtonImages="FilterSubmit,AddSubmit,UpdateSubmit,DeleteSubmit,RESET,Return"
 

Parameters

Parameters

Default

Description

FilterSubmit Apply Filter Filter screen submit button
AddSubmit Add New Record Edit Add screen submit button
UpdateSubmit Update Current Record Update Submit button
DeleteSubmit Delete Current Record Delete Submit button
Reset Reset Reset button
Return Cancel Cancel button

Example

<%
Set X= Server.CreateObject("ASP.DB")
X.dbUnit = 1
X.dbMode="grid"
X.dbDSN = "NWIND"
X.dbSQL = "SELECT EmployeeID, LastName, FirstName, Title, ReportsTo from employees"
X.dbDisplayLookUpList="(;|)ReportsTo|mdb=e:\vdata\nwind\Nwind2000.mdb|SELECT EmployeeID, FirstName & ' ' & Lastname as Name FROM Employees"
X.dbFilterDropFlds="(;|)ReportsTo||||SELECT EmployeeID, FirstName & ' ' & Lastname as Name FROM Employees ORDER BY FirstName"
X.dbNavigationItem="top,bottom,prev,next,reload,filter"
X.dbFilterTemplate="e:\vdata\EmployeesFilter.htm"
X.dbButtonImages="../images/go.gif,../images/go.gif,../images/go.gif,../images/go.gif,../images/reset.gif,../images/cancel.gif"
X.aspdb
%>

The above code generates the button icons in the Filter template. Observe the location of the directory in relation to the image directory and specify the button images path accordingly. In case of the standard setup, the asp files are located in the datafile directory. It then would be one step up to the ASPDB directory and then one step down to the images directory.

Output