| Stonefield Query SDK |
| Application.ReportsExplorerReady |
Parameters
A reference to the Stonefield Query Application object.
Return Value
Any value (Stonefield Query ignores the return value).
Example
Suppose you want to disable editing or creating reports if Stonefield Query hasn't been activated. The following script in Application.ReportsExplorerReady does this.
Visual FoxPro
lparameters toApplication as SQApplication if SQApplication.Users.GetLicenseCount() = 0 SQApplication.CanEditReports = .F. endif
VBScript
function Main(Application) if SQApplication.Users.GetLicenseCount() = 0 then SQApplication.CanEditReports = False end if end function
JavaScript
function Main(Application) {
if (SQApplication.Users.GetLicenseCount() = 0)
{ SQApplication.CanEditReports = false ; }
} C#
Please note that the method in this script must be named Application_ReportsExplorerReady.
public static void Application_ReportsExplorerReady(SFQApplication sfqApplication)
{
if (sfqApplication.Users.GetLicenseCount(0) == 0)
{
sfqApplication.CanEditReports = false;
}
return true;
} VB.NET
Please note that the method in this script must be named Application_ReportsExplorerReady.
public shared function Application_ReportsExplorerReady(sfqApplication as SFQApplication) as Boolean
if (sfqApplication.Users.GetLicenseCount(0) = 0)
sfqApplication.CanEditReports = false
end if
Return True
End FunctionSee Also
Application.ReportsExplorerActivated | Scripts
| Last Updated: 06/10/10 |