sntl_lg_apply_template Screen

Description

Applies a license definition to the license state associated with the handle. The license definition that you specify with this function is added to any license definition that already exists for the current handle.

For example: You can define a Product in an initial license definition and then call sntl_lg_apply_template as many times as necessary to add Features, Feature attributes, other Products, or protection key memory to the license state.

The sntl_lg_apply_template screen contains the following fields:

License Templates

Select the template that most closely matches the license definition you want to create. An asterisk ("*") is displayed if you modify the license definition after selecting the license template.

License Definition

Definition of the license to be applied.

For more information on XML tags for license definition, see License Definition Input XML Templates.

You can manually modify the XML code for the license definition in this field. You can also use the provided graphical interface to modify or replace the license definition. To access the graphical interface or for additional functions, use any of the following buttons:

New Definition

Displays a dialog box to enter a complete license definition. The XML code generated from this dialog box completely replaces the content of the License Definition field.

Delete Current Block

Deletes the block of XML code that contains the cursor. The XML code to be deleted is displayed in a dialog box and is deleted only after you confirm the action.

Edit Current Block

Displays parameters from the XML code that contains the cursor in a dialog box. This enables you to easily set or change parameter values. When you click OK in the dialog box, the XML code in the License Definition field is automatically modified as required.

Check XML Code

Validates the XML code that you specified in the License Definition field.

Save As

Exports the XML code in the license definition to an external file.

Select a template and click Manage Templates to display the License Template Manager dialog box.

Click Save Template to open the Save Template dialog box. You can overwrite an existing template, or save a modified template with a new name.

Click OK to save, or Cancel to close the dialog box without saving.

Click Execute to transfer the function and field definitions to the Sentinel License Generation API. After the function is executed, corresponding values are displayed in the status fields and the executed function call is logged in the API Call History.

Call this function after sntl_lg_start. You can call this function as many times as needed in order to introduce changes in the license state through license definition parameters. (For more information, see License Definition Example).

Related Topics

sntl_lg_apply_template()

License Definition Example

License Definition Input XML Templates

Generated Code Pane

API Call History

Function Pane