function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Dev87Dev87 

Lightning - Error when updating record (Percent Field)

Good Morning, 

In my lightning page , I want to enter a percentage and update the line in the database.
When I insert for exemple 5.99 I have this error in my log:

User-added image

<div class="slds-col slds-size--1-of-8 slds-m-left_small">
                                <span><lightning:input type="number" aura:id="perczone" min="0" formatter="percent-fixed" onchange="{!c.updateZoneValues}"  step="0.01" name="globalObjective" label="" class="slds-p-horizontal_x-small" value="{!item.globalObjective}" onblur="{!c.alertpercent}"/></span>
                            </div>
 
Best Answer chosen by Dev87
Dev87Dev87
Probleme resolved, 

In my apex class, I changed the declaration of the field from Integer to decimal