TaBliz customtabliz.inc


Managing the look and Feel of TaBliz

You manage TaBliz’s Layout and TaBliz’s behaviour with properties and methods. It is very useful to centralize in one file the code you need to set most of the properties. You can then include the file in each page that uses tabliz in order to have a common look and feel. We call that file customtabliz.inc and we can include them in our pages using the following syntax:


dim TBLZ
set TBLZ= Server.CreateObject("Tabliz.AdminRecordset")
%>
<!--#include file="customtabliz.inc"-->
<%
TBLZ.DatabasePath = "C:\www_odbc\october28\tabliz2000.mdb"
TBLZ.Recordset = "MainTable"
TBLZ.SearchForm.SubmitCaption = "Search Now!"
TBLZ.DoSearchForm

In line 1 and 2 we are building the main TaBliz object. It is important to use the same name(TBLZ) we are using in customtabliz.inc otherwise errors will occur.

In line 3,4,5 we are including customtabliz.inc.

What happens in lines after 6 hardly depends on what you want to get out from tabliz. In this case we are building a search form. Please note that the SubmitCaption property of the SearchForm object was already set in customtabliz.inc but we can easily override properties if we need some other values.

The latest version of customtabliz is allways included in the latest distribution of TaBliz.

You can also use the file as a reference document since if you read carefully the code and the comments you’ll easily know how TaBliz works.