IOpenCmd Interface

The Open interface is used to initialize the data contained in the Open command component, which displays the FileNet Workplace Select Item (Open) Java™Server Pages (JSP) page. This page enables the user to select a single item from a list of openable items. Using this interface, the client application can filter the list of openable items based on MIME type, as well as specify the page title.

After the Open command has been executed by calling IAppIntCmd::Invoke, an Open response component is returned. The response component contains specific Open command data, which is accessible through the IOpenRsp and IOpenRsp2 interfaces.

COM Class ID

coclass OpenCmd {
[default] interface IOpenCmd;
interface IAppIntCmd;
};

Reference

DLL FnAppIntOpenCmd.dll
See Also IOpenRsp and IOpenRsp2 Interfaces

Methods

The IOpenCmd interface uses the following interfaces:

Method Description
Initialize

Customizes the Select Item (Open) JSP page in preparation for use by the Open operation, including filtering the list of openable items based on MIME type, as well as specifying the page title.

Example

The following is a fragment from the complete example for the Open command.

   ...
   // Instantiate the custom Open command component
   IOpenCmdPtr spIOpenCmd;
hResult = spIOpenCmd.CreateInstance(__uuidof(OpenCmd));
if (FAILED(hResult)) {
std::cout << "Could not create the Open command component.\n"; _ASSERTE(0);
}
...