Skip to content

Instantly share code, notes, and snippets.

@Naveendhanaraj
Created June 18, 2018 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Naveendhanaraj/ffd30013256738aa5f234c16a7ba51ca to your computer and use it in GitHub Desktop.
Save Naveendhanaraj/ffd30013256738aa5f234c16a7ba51ca to your computer and use it in GitHub Desktop.
({
doInit : function(component) {
var action = component.get("c.getPickListValuesIntoList");
action.setParams({
objectType: component.get("v.sObjectName"),
selectedField: component.get("v.fieldName")
});
action.setCallback(this, function(response) {
var list = response.getReturnValue();
component.set("v.picklistValues", list);
})
$A.enqueueAction(action);
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment