Product: TIBCO Spotfire®
Custom licenses not working on the local Spotfire Analyst.
Even if the custom license license is disabled in the Administration Manager, the user can still access the extension.
There a number of possible causes.
1). The custom license have not been initialized correctly in the code.
There are two ways a license can be added. This is fixed and depends on the extension type.
From the AddIn registrar:
registrar.Register(MyTypeIdentifiers.MyDataSourceIdentifier,
Licenses.Functions.MyDataSourceLicense);
In the constructor (see NavigateToPage in the SDK CustomToolsExample):
public NavigateToPageTool() : base(NavigateToPageResource,
DeveloperLicense.Functions.NavigateToPage)
A standard license class:
public sealed class DeveloperLicense : CustomLicense {
public new sealed class Functions : CustomLicense.Functions {
public static LicensedFunction NavigateToPage = CreateLicensedFunction("navigateToPage", "Navigate to Page", "Description of Navigate To Page");
}
}
}
2). Extension are not deployed to the Spotfire server.
Licenses only work when the extension is deployed on the Spotfire Server. That means that this cannot be tested when running the extension locally (debugging mode). The license itself also needs to be set on the groups that the logged in is a member of and have the relevant license set. One confusing thing is that the license will still be visible from the Administration Manager and can be enabled/disabled but will have no effect until the extension is deployed on the server.
3). The licenses are not enabled for the correct user or group.
Setting the custom license.
1). Open "Administration Manager".
2). Search for the user on the first tab.
3). Select the user on the list and click on the "Licenses" tab on the right side.
4). Expand the "TIBCO Spotfire Extensions" item.
5). Examine "Set for Group" to see where the user gets the license from if needed.
6). Change the license on all groups that appear in step 5.
7). Restart Spotfire.
Comments
0 comments
Article is closed for comments.