TaBliz Actions


Knowing What TaBliz Did

Actions could be used in ASP code to execute code as TaBliz did something. For example suppose you want to to send an e-mail every time a record is added with TaBliz web interface. Here is the code you should use.

dim TBLZ
set TBLZ = Server.CreateObject("Tabliz.adminrecordset")
%>
<!--#include file="customtabliz.asp"-->
<% 
TBLZ.DatabasePath = "C:\www_odbc\october28\tabliz2000.mdb"
TBLZ.Recordset = "Main Table"
TBLZ.AddNew
If TBLZ.ActionPerformed = tblzRecordAdded then
	'Write here the code to send the e-mail with your favorite
	'server-side e-mail component.
End If

Yes!! the trick is the ActionPerformed property. The values are set by TaBliz every time he did something. Constants like tblzRecordAdded are defined in customtabliz.inc . The following is a list of the constants, their value and their meaning.

  • Constant Name(value) Brief description
  • tblzNothingWasDone (1) This is the default value of ActionPerformed
  • tblzErrorsFound (2) If TaBliz encounter an error, ActionPerformed is set to this
  • tblzEditFormGenerated (4)Once an Edit Form is generated
  • tblzRecordAdded (8)Once a record is added
  • tblzRecordModified (16)Once a record is modified
  • tblzRecordDeleted (32) Once a record is deleted
  • tblzEditingListGenerated (64)Once an editing list is generated
  • tblzSearchFormGenerated (128)Once a Search Form is generated
  • tblzReportGenerated (256)Once a report is generated