Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- doInit : function(component, event, helper) {
- if (this is true) {
- var action = component.get("c.getPickListValuesFromSubjects");
- action.setCallback(this, function(response) {
- var state = response.getState();
- if (state === "SUCCESS") {
- var pickListValues = response.getReturnValue();
- component.set("v.optionsForSubject", pickListValues);
- }
- else {
- console.log(state);
- }
- });
- $A.enqueueAction(action);}
- exit;
- },
Add Comment
Please, Sign In to add comment