Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Problems searching on Checkoutdates
killerclown
Hi all!
I need to do a search against our dbs based on checkoutdates.
For this, I create a daterange, and add it as a parameter.
But when I do the search, I get this:
"[NRTSearchParameters ][Add ]Search is not allowed for AttributeID 109"
Does anyone know a way to get around this restriction?
Here's the code, _server is an IMANDMS object.
IManProfileSearchParameters SearchParams = _Server.CreateProfileSearchParameters();
IManDateRange SrchDateRange = _Server.CreateDateRange();
IManContents DocSearchResult = null;
IManDocuments docs = (IManDocuments)DocSearchResult;
SrchDateRange.DateRangeType = imDateRangeType.imRelativeDateRangeType;
SrchDateRange.RelativeGranularity = imGranularity.eMonth;
SrchDateRange.RelativeStartDate.Value = -1;
SrchDateRange.RelativeEndDate.Value = 0;
SearchParams.Add(imProfileAttributeID.imProfileCheckedOut, "Y");
SearchParams.Add(imProfileAttributeID.imProfileCheckoutWhen, SrchDateRange.Value);
DocSearchResult = _Database.SearchDocuments(SearchParams,true);
MessageBox.Show(Convert.ToString(docs.Count));
Best Regards,
Morten
Find more posts tagged with
Comments
There are no comments yet