We have been using this code for several years without issue however we have suddenly come across an issue this week. Here is the code:
<aura:attribute name="objectFields"
type="Object"
access="private"
description="Used to reference a record fields in component markup."/>
<force:recordData aura:id="fieldUpdate"
layoutType="FULL"
recordId="{!v.recordId}"
targetFields="{!v.objectFields}"
targetError="{!v.fieldUpdateError}"
recordUpdated="{!c.recordUpdated}"
mode="EDIT"/>
In the Javascript I have tested many fields, some are updateable and some aren't. What is causing the ones to not be updateable?
Here is a sample of what I have found:
component.set('v.objectFields.Min_Decision_Days__c', 123)
- undefined
component.get('v.objectFields.Min_Decision_Days__c')
- undefined
component.set('v.objectFields.Geolocation__Latitude__s', 51)
- undefined
component.get('v.objectFields.Geolocation__Latitude__s')
- undefined
component.set('v.objectFields.Source_Percentage__c', 23)
- undefined
component.get('v.objectFields.Source_Percentage__c')
- 23
component.set("v.objectFields.Name", 'TEST/123')
- undefined
component.get("v.objectFields.Name")
- TEST/123