You need to sign in to do that
Don't have an account?
Ashmi 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];
}
}
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];
}
}
For this you need to declare getInput variable.
Pleasse try the below code and let me know if you face any other issue.
Thank,
Gyani