The Initialize method customizes the Select Entry Template Java™Server Pages (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.
void spISelectEntryTemplateCmd->Initialize(_bstr_t bstrPageTitle, _bstr_t bstrObjectStoreName, TemplateType enTemplateTypes);
eTemplateTypeDocument
, to only list entry templates for
documents.... // 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);...