You need to sign in to do that
Don't have an account?
Kumar Santosh 17
Output not Appearing
Input search text given but output was not displaying
Lightning Component
Controller
Apex Class
Output Preview
Lightning Component
Controller
Apex Class
Output Preview
1. Please put debug log in apex class (It's returning list of accounts or not ?)
2. Check with alert / console in controller.js (Are you getting a return response or not) ?
3. Everything is fine from Component, So you should check in Controller.JS and Apex class only.
Please Refer the following code for accurate result.
Component
Controller.JS
Helper.JS
Apex Class
Please Mark this one as best answer if it's resolved your query.
Regards,
Soundar.
You can execute something like this in the anonymous window. Use as System.debug and console.log(in js controller) to check if the records are being returned.
String search_text = '%' + contactName + '%';
String query_string = 'SELECT Id, Name, Email, Phone, Birthdate FROM Contact where name Like : search_text ';
return database.query(query_string);