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
Ashmi PatelAshmi Patel 

Variable does not exist: getInput

Thuis is Apex Code

public class loginController {
    public String userName { get; set; }
    public List<Customer__c> customerobjList { get; set; }
    public loginController(){
        getInput = True;
        customerobjList = new List<Customer__c>();
    }    
    public void searchUserName(){
        getInput = False;
        customerobjList = [select Id, UserName__c FROM Customer__c WHERE UserName__c =:userName];
    }
}
Gyanender SinghGyanender Singh
Hi Ashmi,

For this you need to declare getInput variable.

Pleasse try the below code and let me know if you face any other issue.
 
public class loginController {
    public String userName { get; set; }
    public List<Customer__c> customerobjList { get; set; }
    public boolean getInput{get;set;} // declare getInput vaiable
    public loginController(){
        getInput = True;
        customerobjList = new List<Customer__c>();
    }    
    public void searchUserName(){
        getInput = False;
        customerobjList = [select Id, UserName__c FROM Customer__c WHERE UserName__c =:userName];
    }
}

Thank,
Gyani