function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Lightning Parameter Search Attempt

I'm trying to pass a string parameter to an Apex Controller then do a fuzzy SoQL search (% like % ) to find accounts with similar names.  Here's the code so far...

Lightning Controller:
buttonSearch : function(component, event, helper){
        var companyName = component.find("CompanyName").get("v.value");

Apex Controller: 
Public Static void nameToSearch(String companyName){

How do I:
1) Bind the js controller parameter to apex?
2) execute the search in apex?  record ids should be the result.