Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
IManBrowseCmd WorkSite Explorer
bfelknor
I have an application that uses the IManExt2Lib.IManBrowseCmd command to perform a folder search.
If you select the WorkSite Explorer from the dialog and browse to a folder with subfolders, the number of subfolders returned in the dialog list box does not appear to be releated to the MaxRowsForSearch setting of the session object.
Case 1:
a) Number of Subfolders extant: 600
b) MaxRowsForSearch: 500
c) Result: 512 folders returned (too many)
Case 2:
a) Number of Subfolders extant: 600
b) MaxRowsForSearch: 600
c) Result: 512 folders returned (too few)
Does anyone have any insight on this ?
Thanks.
Following is code that can be used to duplicate the issue. (My tests done with VB 6.0)
Dim pDMS As IManage.ManDMS
Dim pSession As IManage.IManSession
Dim pNewBrowseCmd As IMANEXT2Lib.IManBrowseCmd
Dim iContext As ContextItems
Dim arrSelectableItems() As imObjectType
Dim varOverflow As Variant
Dim i As Integer
Set pDMS = New ManDMS
Set pSession = pDMS.Sessions.Add("<>")
pSession.Login "<>", "<>"
ReDim arrSess(pDMS.Sessions.Count - 1) As NRTSession
For i = 0 To pDMS.Sessions.Count - 1
Set arrSess(i) = pDMS.Sessions.ItemByIndex(i + 1)
Next i
ReDim arrSelectableItems(0 To 2)
arrSelectableItems(0) = imObjectType.imTypeDocumentFolder
arrSelectableItems(1) = imObjectType.imTypeDatabase
arrSelectableItems(2) = imObjectType.imTypeDocumentSearchFolder
Set pNewBrowseCmd = New IManBrowseCmd
Set iContext = New ContextItems
' Add required values
iContext.Add "NRTDMS", pDMS
iContext.Add "SelectedNRTSessions", arrSess
iContext.Add "ParentWindow", Me.hWnd
iContext.Add "IManExt2.BrowseCmd.SelectableObjectTypes", arrrSelectableItems
iContext.Add "Overflow", varOverflow
pNewBrowseCmd.Initialize iContext
pNewBrowseCmd.Update
pNewBrowseCmd.Execute
...
Find more posts tagged with
Comments
jny
Since this is an implicit search -- that is, a search that is done by the source code and not by calling the search methods directly by you -- try setting the MaxRowsNonSearch Property instead.
TestReport.rptdesign
bfelknor
So for any implicit search, the max row (search or nonsearch as required) must be explicitly set ?
jny
Correct. They both are default to 512.
bfelknor
Thank you.
Do you have an example (VB) that documents context items for the NewProfileCmd ? From scanning other code snippets (for C++) I've tried to deduce the context items I need, but no luck.
I want to call the dialog from code, have the user complete the dialog and get the dialog properties.
Thanks again.
jny
Going back to limiting the number of display results off of the browse dialog, it has turned out that the IManExt2.dll source does not respect the server api setting, the MaxRowNonSearch Property.
It looks like it should be an enhancement request.
The NewProfileDlg should be used instead if you're attempting to only collect profile info.
This could be addressed in more detail through DevSupport if you have the SDK.
bfelknor
Ok.
Thanks for your help on this.
Bruce