You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var action = component.get("c.appCustomWrapListMthd");
action.setCallback(this, function(response){
var state = response.getState();
if(state=='SUCCESS'){
var result = response.getReturnValue();
component.set('v.wrapListItems',result);
}
});
$A.enqueueAction(action);
},
})`
action.setCallback(this, function(response){
var state = response.getState();
if(state=='SUCCESS'){
var result = response.getReturnValue();
component.set('v.wrapListItems',result);
}
});
$A.enqueueAction(action);
}
In this post we are going to learn about that how to Wrapper class Retrieve all the Values in Salesforce lightning component.
→ Get source code live demo link:-
Step 1:- Create Lightning Application : wrapperClassCustomObjApp.app
<aura:application extends="force:slds"> <c:wrapperClassCustomObjCmp/> </aura:application>
Step 2:- Create Lightning Component : wrapperClassCustomObjCmp.cmp
` <aura:component controller="wrapperCustomObjCtrCmp" implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction,lightning:isUrlAddressable" access="global" >
</aura:component>`
Step 3:- Create Lightning Component : wrapperClassCustomObjCmpConroller.js
` ({
doInit : function(component, event, helper) {
Step 4:- Create Lightning Component : wrapperClassCustomObjCmpConrollerHelper.js
` ({
refreshView : function(component, event, helper) {
var action = component.get("c.appCustomWrapListMthd");
})`
Step 5:- Create Lightning Application : wrapperCustomObjCtrCmp.apxc
` public class wrapperCustomObjCtrCmp {
}`
→ Get source code live demo link:-
The text was updated successfully, but these errors were encountered: