forked from ssharan199/sfdcAmplifiedDemo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Demo3Controller
35 lines (29 loc) · 1.17 KB
/
Demo3Controller
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
({
doInit: function(component, event, helper) {
helper.getAccountList(component,event,helper);
},getrecord: function(component, event, helper) {
helper.getrecordlist(component,event,helper);
},
View : function(component, event, helper){
component.set("v.showFilter",true);
component.set("v.Likedisable",true);
},
setFilterResult : function(component, event, helper){
var selectfield = event.getParam('selectfield');
var selectcondition = event.getParam('selectcondition');
var Enteredvalue = event.getParam('Enteredvalue');
var action = component.get('c.filteredAccount');
action.setParams({
selectfield :selectfield,
selectcondition :selectcondition,
value:Enteredvalue
});
action.setCallback(this, function(actionResult) {
var state = actionResult.getState();
if(state ==="SUCCESS"){
component.set('v.accounts', actionResult.getReturnValue());
}
});
$A.enqueueAction(action);
}
})