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



Oct 27, 2011, 3:36 PM
53 Posts

validation in a repeat - inderdepencies

  • Category: Server Side JavaScript
  • Platform: All
  • Release: 8.5.3
  • Role: Developer
  • Tags: validation,Repeat Control
  • Replies: 0
Been having problems getting anywhere with this, so any help would be gratefully received.
 
The basic premise is I have a repeat, bound to a multi-value item on a document, and I want to check that the values entered add up to 100 (it's a percentage).
 
So, I need to write a validator that sums the multi-value item and returns true or false.
 
The premise seems easy, and if I create a document which has values equalling 100 (or not) and then open with the xPage with a validator checking the document values this works fine and returns the error I want, or passes if the values are 100.
 
However if the values are changed the submit button doesn't pick up the fact that the values have been changed at all and will just continue to return the same result for the validation as if it was first opened.
 
I realise this has something to do with the repeat, and also I'm using the tableWalker code from here http://www-10.lotus.com/ldd/ddwiki.nsf/dx/Tutorial-Introduction-to-XPages-Exercise-23 but I don't think has a particular influence (I might be wrong)
 
Anyone got any ideas?
 
Thanks

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