When automating IManage I create a Open File dialog for the user to select a file using IManFileOpenCmd. The dialog created shows a item limit of 512. Is it possible to set this limit?
Using WorkSite Server 8.2/DeskSite 8.2
I have a Document Folder inside My WorkSpaces that containts 640 documents. By default IManage DeskSite will only display the first 500 items in the folder and from inside MS Word, the Open file dialog will display the same 500 item limit. This limit match the value of the [MaxRowsNonSearch] property in registry [HKCU\Software\Interwoven\WorkSite\Common\General\Display Defaults]. The value can be changed inside DeskSite from the menu option Tools > Options > Defaults > Maximum number of documents per folder. Changing this option will update the value in the registry and allow the folder to display any number of items up to the new limit either from DeskSite or MS Word Open file dialog.
When automating IManage I create a Open File dialog for the user to select a file using IManFileOpenCmd. The dialog created shows a item limit of 512. Is it possible to set this limit?
Here's the IManFileOpenDialog interface:
================================================================
IIManFileOpenDlg : IDispatch
{
__declspec(property(put=PutSessions)) _variant_t Sessions;
__declspec(property(get=GetSelectedObjects)) _variant_t SelectedObjects;
__declspec(property(get=GetWindow)) long Window;
__declspec(property(put=PutCommandList)) _variant_t CommandList;
__declspec(property(get=GetCommandSelected,put=PutCommandSelected)) long CommandSelected;
__declspec(property(put=PutFilterAppType)) _bstr_t FilterAppType;
__declspec(property(get=GetAdvancedOptions,put=PutAdvancedOptions)) _variant_t AdvancedOptions;
__declspec(property(get=GetDocOpenLocation)) _bstr_t DocOpenLocation;
__declspec(property(get=GetCloseOnOK,put=PutCloseOnOK)) VARIANT_BOOL CloseOnOK;
__declspec(property(get=GetMultiSelection,put=PutMultiSelection)) VARIANT_BOOL MultiSelection;
__declspec(property(put=PutForcedReturnCommandList)) _variant_t ForcedReturnCommandList;
__declspec(property(get=GetWindowTitle,put=PutWindowTitle)) _bstr_t WindowTitle;
}
================================================================
And my code to create the dialog (all works OK except for the item limit)
================================================================
IContextItemsPtr objContext( __uuidof(ContextItems) );
ICommandPtr pCmd( __uuidof(IManFileOpenCmd) );
_bstr_t bstrParentWindow = L"ParentWindow";
_bstr_t bstrNRTDMS = L"NRTDMS";
_bstr_t bstrSelectedNRTSessions = L"SelectedNRTSessions";
_bstr_t bstrCommandListName = L"IManExt2.CommandList";
CSDSafeArray cmdList;
cmdList.Create(VT_BSTR, 2, 1);
cmdList.PutElement(1, _bstr_t(L"
@1@&Select").Detach());
cmdList.PutElement(2, _bstr_t(L"
@2@&Connect Server").Detach());
objContext->Add(bstrParentWindow, lHWnd);
objContext->Add(bstrNRTDMS, pDMSDisp.Detach());
objContext->Add(bstrSelectedNRTSessions, pSessionDisp.Detach());
objContext->Add(bstrCommandListName, cmdList.AsVariant());
hrInit = objContext->Add(_bstr_t(L"IManExt2.ForcedReturnCommand"), _bstr_t(L"
@2@&Connect Server"));
pCmd->Initialize(objContext);
pCmd->Update();
pCmd->raw_Execute();
================================================================
As the interface does not have a property to set for the limit I tried using the Advance Options property without any success.
================================================================
_bstr_t bstrAdvancedOptions = L"AdvancedOptions";
CSDSafeArray advList;
advList.Create(VT_BSTR, 2, 1);
advList.PutElement(1, _bstr_t(L"
@1@Maximum Rows@999").Detach());
advList.PutElement(2, _bstr_t(L"
@2@MaxRowsNonSearch@999").Detach());
objContext->Add(bstrAdvancedOptions, advList.AsVariant());
================================================================
So, my question is is it possible to set the limit of items being displayed in my dialog or is this not supported by Interwoven? Will this be supported in new releases?
Many Thanks