This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Apr 21, 2011, 2:41 PM
1 Posts

categoryFilter for views categorized by date values

  • Category: Server Side JavaScript
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags: View Control,categoryFilter
  • Replies: 2
How can I set the filter "categoryFilter" of a datasource <xp:dominoView> if this view is categorized by a date value.
 
I tried "everything" e.g.
- @Date(@TextToTime(...))
- var ret:NotesDataTime = session.createDateTime(...;
  ret.setAnyTime()

but none of these tries brought me success.
 
Or do I have to use the property "keys"?
 
 
May 3, 2011, 6:01 PM
11 Posts
Re: categoryFilter for views categorized by date values
It's far from a solution but I always convert my dates to plain text in the views because of this problem.
If you convert your date in the xpage to text too, then it will work for the category filter... but, I know...
If anyone has a better solution... 
May 16, 2011, 10:28 AM
29 Posts
Re: categoryFilter for views categorized by date values
 Werner,
 
I also had such kind of issue. The idea is that what type of date are being sorted? NotesDateTime or Java dateTime? The problem may be that you use java DateTime values to sort NotesDateTime values in documents, and this will not work. Converting dates to text will result in wrong sorting. I managed to solve the problem by converting dates to long and sorting(comparing in my case) them. 
Hope this may be of help for you 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal