~Elizabeth Umvelusteretsi commented on Jul 24, 2010

Numeric parameters to Domino Objects in XPages JavaScript

Parseint should default to radix 10 - I just like to be explicit. Thanks for the @Integer tip! I added it to the article. Also corrected a few errors in the work-arounds.

~Karl Kigerosterikle commented on Jul 22, 2010

Numeric parameters to Domino Objects in XPages JavaScript

Am I right in thinking from your code that the javascript parseInt function in XPages default to base 8 instead of base 10? (I think that's the case with normal javascript, I've been bitten by it on several occasions, both in my own and in inherited code).

Another alternative is @Integer. Where possible I tend to use @Formulas for data manipulation, but that's because I'm more comfortable with them than javascript or java.