OnDemand Users Group

Support Forums => ODWEK, Java and REST APIs => Topic started by: pankaj.puranik on September 30, 2010, 07:09:47 AM

Title: Number of criteria returned is 0!!
Post by: pankaj.puranik on September 30, 2010, 07: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

-----------------
Title: Re: Number of criteria returned is 0!!
Post by: pankaj.puranik on October 07, 2010, 04:44:11 AM
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.