table_exec

Executes the window's table trigger.

Available in:

Apps (win) Apps (char) Reportwriter RPC Standalone PL
X        

Syntax

ret_value table_exec([parm[0][,parm[1][,...]]])

Description

A window can have a table trigger where table-oriented activities can be centralized. For example, deleting a record may require foreign key actions that are best handled in one central trigger for this table.

The function can return any data type, or it can return void, depending on how the record trigger has been coded.

parm[n] (optional) paramaters.

Example

If the record trigger indicates that there are no dependents on the record, then call the table trigger.
if (!record_exec(PEV_DELETE)) {	/* check for dependants           */
table_exec(PEV_DELETE);
edit_win(p.wl,edt_delete,p.dl);  	 /* delete a record                */
}