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 6, 2011, 10:11 PM
29 Posts

using the date format option on a computed field

  • Category: Debugging
  • Platform: All
  • Release: 8.5.2
  • Role:
  • Tags:
  • Replies: 2
I have a repeat control that I want to display a date on.
 
The following value for a computed string displays a long horriblly formatted date, but it does display.

var doc:NotesDocument = rowdata.getDocument();
doc.getItemValue("startDate")
 
When I change the display type to Date/Time on the property panel it does not display a date anymore.
 
Any ideas?
Apr 6, 2011, 10:26 PM
122 Posts
Re: using the date format option on a computed field
I suspect the formatter is expecting a string, whereas getItemValue doesn't necessarily return a string.
One option I've used is @Text(myDoc.getItemValue("Date"),"D0S0");
Using a date converter on @Text(myDoc.getItemValue("Date")) doesn't seem to work though.
Jun 11, 2011, 4:27 PM
45 Posts
Re: using the date format option on a computed field
I share your frustration, I have wasted hours and hours on this. A java.util.Vector is returned and as you say the Convertor won't work on it.
 
There must be 100's of samples out there on how to create basic XPages and the like far more than what is needed, but so little info when you get bogged down with trying to do simple things that you can do in Notes without thinking about it. All the learning resources seem to jump from the basics to the advanced with massive holes in the middle. Sorry, not helpful I know, guess I am just venting some frustration.
 
Mark. 

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