7 Replies Latest reply: Jun 28, 2012 3:48 AM by Peddi RSS

    System removes 0's after decimal while page submission


      My requirement is :
      i got one multirecord table...where there is a field amount...my requirement is to make sure user enters cents(ie they simply cant enter 10 rather they should enter 10.00)..this field is mapped to a database column whose type is Number(13,2). There is Add another row button also...I am validating whether user has entered cents or not with the below line : Amount.indexOf(".") < 0

      Issue : Issue if the user enters 10.00 and clicks on Add another row...system removes those .00 and simply retain 10 and hence my validation fails...It works perfectly if user enters say 10.24... Any suggestion pls....