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 26, 2012, 3:59 PM
4 Posts
topic has been resolvedResolved

Using startKeys property in a ViewPanel with a categorized date field

  • Category: APIs
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags: starkKeys,viewpanel
  • Replies: 1
Does anyone know the correct way to use startKeys in a ViewPanel against a view categorized with a date field?  I'm trying to have the view open up to category for the current date.
 
The code below was added to the startKeys property:
var v:java.util.Vector = new java.util.Vector();
var dt = session.createDateTime("Today");
v.addElement(dt);
return v;


A serialization error was raised when run:
java.io.IOException: Error while serializing Domino view container
Error while serializing Domino view container
lotus.domino.local.DateTime


The code above works when added to the Keys property of the ViewPanel.  Also, the code works in startKeys if the view has the categorized column value set to a text field and the object added to the vector is a String.  The documentation says startKeys is consistent with the getEntryByKey method in the java api so I ran similar code in a java agent against the same view and the entry was returned.
Vector v = new Vector();
v.addElement(session.createDateTime("Today"));
ViewEntry ve = view.getEntryByKey(v, true);

 
Anyone else run into this before or have suggestions on how to solve this?
Jun 19, 2012, 7:21 PM
4 Posts
Re: Using startKeys property in a ViewPanel with a categorized date field
It's a bug. 
SPR # RDJS8VDU9S - Xpages Startkeys Property Does Not Work With Date Time Values
SPR # RDJS8VENUN - Xpages Startkeys Property Java.Io.Ioexception: Error While Serializing Domino View Container 

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