ad_scope_sql

EveAndersson.com : API Browser : ad_scope_sql

ad_scope_sql

ad_scope_sql [ table_name ]
Defined in tcl/ad-scope.tcl

if scope is not set in the topmost environment then public scope is assumed. if scope=group it assumes group_id is set in the topmost environment, if scope=user it assumes that user_id is set in topmost environment and if scope=table it assumes on_which_table and on_what_id are set in topmost environment. ad_scope_sql returns portion of sql query resolving scope. e.g. if scope=group this proc will return scope=group and group_id=. to avoid naming conflicts you may specify a table name (or table alias name) of the table for which we are checking the scope. (e.g if table_name=news, then nnews.scope will be used instead of just scope)

Parameters:
table_name (optional)
[ show source ]

Show another procedure:

eve@eveandersson.com