ISelectObjectCmd2 Interface

NOTE Customers should only use the ISelectObjectCmd2 interface in new development, as well as replace existing implementations of the ISelectObjectCmd interface with ISelectObjectCmd2. The only difference between these interfaces is that a parameter has been added to the command component initialization method.

The SelectObject2 interface is used to initialize the data contained in the SelectObject command component, which displays the FileNet Workplace Select Item Java™Server Pages (JSP) page. Using this interface, the client application can filter the list of selectable items based on object type and MIME type, as well as specify the visible tabs and title for the page.

After the SelectObject command has been executed by calling IAppIntCmd::Invoke, a SelectObject response component is returned. The response component contains specific SelectObject command data, which is accessible through the ISelectObjectRsp and ISelectObjectRsp2 interfaces.

COM Class ID

coclass SelectObjectCmd {
[default] interface ISelectObjectCmd2;
interface IAppIntCmd;
};

Reference

DLL FnAppIntSelectObjectCmd.dll
See Also ISelectObjectRsp and ISelectObjectRsp2 Interfaces

Methods

The ISelectObjectCmd2 interface defines one method:

Method Description
Initialize2

Customizes the Select Item JSP page in preparation for use by the SelectObject operation, including filtering the list of selectable items based on object type and MIME type, as well as specifying the visible tabs and page title.

Example

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

   ...
   // Instantiate the custom SelectObject command component
   ISelectObjectCmd2Ptr spISelectObjectCmd2;
hResult = spISelectObjectCmd2.CreateInstance(__uuidof(SelectObjectCmd));
if (FAILED(hResult)) {
std::cout << "Could not create the SelectObject command component.\n"; _ASSERTE(0);
}
...