Author Topic: Get total return count from a folder query without changing setting to unlimited  (Read 2371 times)

affan

  • Newbie
  • *
  • Posts: 2
    • View Profile
Hi,

With ODWEK Api, are there ways to get total return count from a folder query without changing the folder properties setting to return unlimited?

Thanks.

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2229
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
The setting is there for a reason -- you don't want someone to be able to turn it off.

Best bet is to do the queries on the individual application groups yourself to get around the Folder limitations for regular users.

-JD.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

affan

  • Newbie
  • *
  • Posts: 2
    • View Profile
Thanks for the reply. Can you please elaborate on querying application groups? How can that be done and will that give the desired result? Currently we have MaxHits setting at 200. If a search for a given folder has 350 results, how can we find that out without changing the MaxHits setting?

spond

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
You could use the ODFolder.searchCountHits() to get the count back. You wouldn't need to change anything in the folder setting or maxHits setting.

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2229
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
+1 for spond...  This is the correct answer.  I clearly need to start reading the CMOD ODWEK manuals some more.  :)

-JD.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR