Get total return count from a folder query without changing setting to unlimited

Previous topic - Next topic

affan

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

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.
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Webinars:  https://CMOD.Training/
IBM CMOD Professional Services: https://CMOD.cloud

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

affan

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

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

+1 for spond...  This is the correct answer.  I clearly need to start reading the CMOD ODWEK manuals some more.  :)

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

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