The IAddCmd interface is used to initialize the data contained in the Add command component, which launches the FileNet Workplace Add Wizard to allow the user to add a specified file on their local machine to an object store. Using this interface, the client application can customize the dialog title, as well as identify the item to add, define XML properties for the item, and specify the link relationship to establish between the item being added and other items already in the object store. In addition, when Records Manager is enabled for the Application Engine, this method can be used to specify whether the Declare Record operation should be made available for the specified object store.
After the Add command has been executed by calling IAppIntCmd::Invoke, an Add response component is returned. The response component contains specific Add command data that is accessible through the IAddRsp interface.
coclass AddCmd {
[default] interface IAddCmd;
interface IAppIntCmd;
};
DLL | FnAppIntAddCmd.dll |
See Also | IAddRsp Interface |
The IAddCmd interface defines one method:
Method | Description |
---|---|
Initialize |
Allows the specification of the dialog title, the name and directory location of the file on the local machine, the XML item properties, and the link relationship to establish between the item being added and other items already in the object store. In addition, when Records Manager is enabled for the Application Engine, this method can also be used to specify whether the Declare Record operation should be made available for the specified object store. |
The following is a fragment from the complete example for the Add command.
...
// Instantiate the custom Add command component
IAddCmdPtr spIAddCmd;
hResult = spIAddCmd.CreateInstance(__uuidof(AddCmd));
if (FAILED(hResult)) {
std::cout << "Could not create the Add command component.\n";
_ASSERTE(0);
}
...