Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.
SalBoolean AreAllViewsAvailable( SalString sView )
The AreAllViewsAvailable method tells if all views in a comma-separated list are available (granted) to the user.
Name | Description |
---|---|
SalString sView | Comma-separated list of view names. This parameter is not case sensitive. |
The return value is TRUE if all of the views are available, FALSE otherwise.
Set sViews = c_sDbPrefix || 'ORDERS O, ' || c_sDbPrefix || 'ORDER_LINES L' If Security.AreAllViewsAvailable( sViews ) Call DbImmediate( 'select count(*) from ' || sViews ' into :nOrderLineCount where O.ORDER_NO = L.ORDER_NO and O.ORDER_NO = :nOrder ' )// Populate this data source Sal.WaitCursor(true); bOk = true; i_nRecordState = 0; if ((p_sViewName != Const.strNULL) && Var.Security.AreAllViewsAvailable(p_sViewName)) { // Populate all record selection combo boxes ..................