OnDemand Users Group

Support Forums => ODWEK, Java and REST APIs => Topic started by: Karthikkumark on November 06, 2013, 06:42:33 AM

Title: How to search date field
Post by: Karthikkumark on November 06, 2013, 06:42:33 AM
Hi All,
I need help how we can search date. In any data base we will set/search the date as by Java Date object. But in ODwek search we are having only option to set the String object . even for setting the between search we can set only string object.

Shall i know how to proceed?

Thanks,
karthik k  
Title: Re: How to search date field
Post by: kbsiva on November 06, 2013, 04:09:33 PM
Hi - You can search as string. Please refer this redbook

http://www.redbooks.ibm.com/redbooks/SG247646/wwhelp/wwhimpl/js/html/wwhelp.htm


Thanks,
Siva
Title: Re: How to search date field
Post by: Karthikkumark on November 07, 2013, 07:12:27 AM
Hi Siva,

I search for an example of how they set the date. But i didn't found. But i tried to get the date format.by using the following method

System.out.println(odCrit.getName() + " : " + odCrit.getDisplayFmt());

This my result.

ReportID : null
CreationDate : null
CreationTime : null
PageCount : null
Description : null
LoadDate : null
JobName : null

I think this due to the version 8.4.X


If you have any example please post it.

Thanks,
Karthik k
Title: Re: How to search date field
Post by: kbsiva on November 07, 2013, 01:46:27 PM
Karthik - It is hard to find out what's wrong with only one print statement, paste your code snippet here.

Siva

Title: Re: How to search date field
Post by: Alessandro Perucchi on November 08, 2013, 09:40:18 AM
Hello Karthik,

What is the version of ODWEK and CMOD Server that you are using for your tests?

I'm asking that, because depending on the different version that you might have, then you won't be able to see what you are expecting to see!!!

Sincerely yours,
Alessandro
Title: Re: How to search date field
Post by: Karthikkumark on November 11, 2013, 07:30:06 AM
Hi Alessandro,

odwek - 8.4.1.0
CMOD - 9.0.0.1

Thanks,
karthik k
Title: Re: How to search date field
Post by: Alessandro Perucchi on November 12, 2013, 10:00:13 AM
Hello karthik,

Well then it is resolved.

you simply cannot access the new date field with ODWEK 8.4.1 with CMOD Server 9.

If you want to do that, then you MUST upgrade ODWEK to V9 too... and then it will work.

Sincerely yours,
Alessandro