JavaScript Editor js editor     Web development 



Main Page

Occurs after SQL view is created. There are two versions of the syntax.

PROCEDURE dbc_AfterCreateView(cViewName, lRemote) 
PROCEDURE dbc_AfterCreateView
LPARAMETERS cViewName, lRemote

Parameters

cViewName


Specifies the name of the view that was created.
lRemote


Specifies whether the view is remote.

Remarks

You can use the dbc_AfterCreateView event to track access to the database after a view is created.

Example

В Copy Code
* Reports to the screen Event name, where it is called from and ;
* the parameter passed.
PROCEDURE dbc_AfterCreateView ;
         (cViewName, ;
          lRemote)
 ? '>>   ' + PROGRAM()
 ?? ' in ' + SUBSTR(SYS(16),RAT('\',SYS(16))+1)
 ? '     cViewName  = ' + TRANSFORM(cViewName) + ' - ' ;
                    + TYPE('cViewName ')
 ? '     lRemote    = ' + TRANSFORM(lRemote)   + ' - ' ;
                    + TYPE('lRemote')+' /end/ '
ENDPROC

See Also



JavaScript Editor js editor     Web development