Consultor Eletrônico



Kbase 16207: How to add field level triggers in a freefrom browse widget
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/10/1998
How to add field level triggers in a freefrom browse widget

INTRODUCTION:
=============
This Knowledgebase entry describes a technique for adding field
level triggers in a freeform browse.

WHY YOU NEED TO KNOW THIS:
===========================
You need to know this because once you have designated a browse to be
a "freeform" browse, the fields being displayed in the browse are no
longer available within the UIB Section Editor for you to attach
triggers to.

PROCEDURAL APPROACH:
====================
Within the Section Editor for the browse, add a new trigger which you
may (or may not) use. After the DO/END block for that trigger, you
can add as many ON statements as are required for all of your field
level triggers.

A sample using the DEFAULT-ACTION trigger is shown below:

DO: /* This is the DO/END block for the DEFAULT-ACTION trigger */
/* which shows up in the Section Editor when you add this */
END. /* new trigger. */

ON ENTRY OF Customer.Cust-Num IN BROWSE br_table
DO:
MESSAGE "Here is an entry trigger" VIEW-AS ASLERT-BOX.
END.

Please note that you can put as many of these "manual" triggers within
this code section as you require.

Progress Software Technical Support Note # 16207