You need to sign in to do that
Don't have an account?
VSK98
How to get the values from apex controller to lightning controller
Hi All,
I am getting the response from the apex class using with response.getvalue() and also I need list size from apex controller.
I have declared the list & stored some value. This list size irrespective of response.getvalue().length...I want to pass the list of records & size.
Below is Snippet:
Adv Thanks,
VSK98
I am getting the response from the apex class using with response.getvalue() and also I need list size from apex controller.
I have declared the list & stored some value. This list size irrespective of response.getvalue().length...I want to pass the list of records & size.
Below is Snippet:
for(integer i=0;i<customernames.size();i++ ){ if(i < 1){ objWI = new value(); objWI.customer = customernames[i]; objWI.city = cities[i]; objWI.country = countries[i]; lstWI.add(objWI); system.debug('LIST SIZE******'+lstWI.size()); system.debug('LIST******'+lstWI); } } totalassests = customernames.size(); //// In above code i am adding customer names into customernames list system.debug('LIST SIZE******'+totalassests); return lstWI;
Adv Thanks,
VSK98
Hi Ravi,
Thank you for your response!!
Pls find the snippet code:
JS Controller:
How can i get the totalassests value from apex class to JS Controller.
Adv Thanks,
VSK98