Author Topic: How to search date field  (Read 4017 times)

Karthikkumark

  • Guest
How to search date field
« on: November 05, 2013, 11:42:33 PM »
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  
« Last Edit: November 06, 2013, 02:37:01 AM by Karthikkumark »

kbsiva

  • Guest
Re: How to search date field
« Reply #1 on: November 06, 2013, 09:09:33 AM »
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

Karthikkumark

  • Guest
Re: How to search date field
« Reply #2 on: November 07, 2013, 12: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

kbsiva

  • Guest
Re: How to search date field
« Reply #3 on: November 07, 2013, 06:46:27 AM »
Karthik - It is hard to find out what's wrong with only one print statement, paste your code snippet here.

Siva


Alessandro Perucchi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1002
    • View Profile
Re: How to search date field
« Reply #4 on: November 08, 2013, 02: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
Alessandro Perucchi

#Install #Migrations #Conversion #Educate #Repair #Upgrade #Migrate #Enhance #Optimize #AIX #Linux #Multiplatforms #DB2 #Windows #Oracle #TSM #Tivoli #Performance #Audits #Customizing #Availability #HA #DR #JavaApi #ContentNavigator #ICN #WEBi #ODWEK #Services #PDF #AFP #XML

Karthikkumark

  • Guest
Re: How to search date field
« Reply #5 on: November 11, 2013, 12:30:06 AM »
Hi Alessandro,

odwek - 8.4.1.0
CMOD - 9.0.0.1

Thanks,
karthik k

Alessandro Perucchi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1002
    • View Profile
Re: How to search date field
« Reply #6 on: November 12, 2013, 03: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
Alessandro Perucchi

#Install #Migrations #Conversion #Educate #Repair #Upgrade #Migrate #Enhance #Optimize #AIX #Linux #Multiplatforms #DB2 #Windows #Oracle #TSM #Tivoli #Performance #Audits #Customizing #Availability #HA #DR #JavaApi #ContentNavigator #ICN #WEBi #ODWEK #Services #PDF #AFP #XML