Author Topic: Number of criteria returned is 0!!  (Read 3073 times)

pankaj.puranik

  • Sr. Member
  • ****
  • Posts: 374
    • View Profile
Number of criteria returned is 0!!
« on: September 30, 2010, 12:09:47 AM »
Hi

Here's my code.

System.out.println("No. of criteria: "+odf.getNumCriteria());

Is there anything that I have to do on the CMOD admin tool on the Folder?

Here's what I get on the console.

-----------------
Name: TestF
Description: Test Folder
MaxHits: 0
No. of criteria: 0
NumApplGroups: 0
SearchMessage: null

-----------------

pankaj.puranik

  • Sr. Member
  • ****
  • Posts: 374
    • View Profile
Re: Number of criteria returned is 0!!
« Reply #1 on: October 06, 2010, 09:44:11 PM »
I am sorry!!
This was actually a silly mistake of mine.
I didn't do a odfolder.open() before calling odf.getNumCriteria().

My appologies.

Thanks
Pankaj.