IsReportAvailable

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 IsReportAvailable( SalString sReportId )

The IsReportAvailable method tells if a report is available (granted) to the user.

Parameters

Name Description
SalString sReportId Name of view. This parameter is not case sensitive.

Returns

The return value is TRUE if the report is available, FALSE otherwise.

Example

Set sViews = 'CUSTOMER_ORDER_REP'
If Security.IsReportAvailable( sViews )
   Return TRUE
C# code
case Const.NAVIGATOR_TypeReport:
if (Int.PalStrSplit(URL.GetProgId(), ".", ref sLeft, ref sRight)) 
{
	return (sLeft.ToUpper() == "REP") && Var.Security.IsReportAvailable(sRight);
}