This repository has been archived by the owner on Sep 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
outputField.cmp now shows picklist translations instead of the raw value
This works for picklists & multi-select picklists
- Loading branch information
Showing
3 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
({ | ||
doInit : function(component, event, helper) { | ||
helper.handleFieldValueChanged(component, event); | ||
helper.getPicklistLabels(component, event); | ||
}, | ||
handleFieldMetadataChanged : function(component, event, helper) { | ||
helper.setFieldMetadataAttributes(component, event); | ||
helper.getPicklistLabels(component, event); | ||
}, | ||
handleRecordChanged : function(component, event, helper) { | ||
var record = component.get('v.record'); | ||
var fieldApiName = component.get('v.fieldApiName'); | ||
|
||
component.set('v.fieldValue', record[fieldApiName]); | ||
helper.getPicklistLabels(component, event); | ||
}, | ||
handleFieldValueChanged : function(component, event, helper) { | ||
helper.handleFieldValueChanged(component, event); | ||
helper.getPicklistLabels(component, event); | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters