The ISelectEntryTemplateCmd interface is used to initialize the data contained in the SelectEntryTemplate command component, which displays the FileNet Workplace Select Entry Template Java™Server Pages (JSP) page. This page enables the user to select an entry template from a filtered list of choices. Using this interface, the client application can filter the list of available entry templates by object store name and template type, as well as specify the page title.
After the SelectEntryTemplate command has been executed by calling IAppIntCmd::Invoke, a SelectEntryTemplate response component is returned. The response component contains specific SelectEntryTemplate command data, such as a pointer to the entry template that was selected by the user, which is accessible through the ISelectEntryTemplateRsp interface.
coclass SelectEntryTemplateCmd {
[default] interface ISelectEntryTemplateCmd;
interface IAppIntCmd;
};
DLL | FnAppIntSelectEntryTemplateCmd.dll |
See Also | ISelectEntryTemplateRsp Interface |
The ISelectEntryTemplateCmd interface defines one method:
Method | Description |
---|---|
Initialize |
Customizes the Select Entry Template JSP page in preparation for use by the SelectEntryTemplate operation, including filtering the list of available entry templates by object store name and template type, as well as specifying the page title. |
The following is a fragment from the complete example for the SelectEntryTemplate command.
... // Instantiate the custom SelectEntryTemplate command component ISelectEntryTemplateCmdPtr spISelectEntryTemplateCmd;
hResult = spISelectEntryTemplateCmd.CreateInstance(__uuidof(SelectEntryTemplateCmd));
if (FAILED(hResult)) {
std::cout << "Could not create the SelectEntryTemplate command component.\n"; _ASSERTE(0);
} // Initialize the custom SelectEntryTemplate command component with the // page title, object store name, and template type(s). _bstr_t bstrPageTitle = (_T("Customized Select Entry Template Operation")); _bstr_t bstrObjectStoreName = (_T("Alaska")); TemplateType enTemplateTypes = eTemplateTypeDocument; std::cout << "Initializing the SelectEntryTemplate command component..." << std::endl; spISelectEntryTemplateCmd->Initialize(bstrPageTitle, bstrObjectStoreName, enTemplateTypes); // Execute the SelectEntryTemplate command and capture the response component std::cout << "Executing the SelectEntryTemplate command..." << std::endl; IAppIntCmdPtr spIAppIntCmd(spISelectEntryTemplateCmd);
IAppIntRspPtr spIAppIntRsp = spIAppIntCmd->Invoke(spIAppIntSession);...