Template - createEmptyTemplate

Template - createEmptyTemplate

Description :

This command creates an empty template. This command automatically sets the signature evaluation flag to "match any". (If you want to create an empty template whose signature evaluation flag is set to "match all," use the createEmptyTemplate command.)

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

templateName

String

Name of the template.

groupId

Integer

ID of the template group.

bExplicit

Boolean

True to create an explicit template, false to create an implicit template. (An implicit template is one that does not appear in the GUI.)

Example

The following example shows how to create a new empty template whose signature evaluation flag is automatically set to "match any".

Script


# Name of the new template. 

TEMPLATE_NAME="template1" 

# Group in which template is to be stored. 

TEMPLATE_GROUP="/parent/group1" 

TEMPLATE_GROUP_ID=`blcli TemplateGroup groupNameToId $TEMPLATE_GROUP` 

# Template type. Set to false if     you want to create an implicit template. (An implicit template is one that does not appear in the GUI.) 

bExplicit="true" 

TEMPLATE_DBKEY=`blcli Template createEmptyTemplate $TEMPLATE_NAME $TEMPLATE_GROUP_ID $bExplicit ` 

# Use the returned DBKey to add more items to the template. 



Was this page helpful? Yes No Submitting... Thank you

Comments