You need to sign in to do that
Don't have an account?
![Kumar Santosh 17 Kumar Santosh 17](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
Output not Appearing
Input search text given but output was not displaying
Lightning Component
![Component](/forums/servlet/rtaImage?eid=9062I000000QyxM&feoid=Body&refid=0EM2I000001C1BV)
Controller
Apex Class
Output Preview
![Output](/forums/servlet/rtaImage?eid=9062I000000QyxM&feoid=Body&refid=0EM2I000001C1Bp)
Lightning Component
Controller
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
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);