You need to sign in to do that
Don't have an account?
Reddy SreeDevi
public void searchRecord() { soql=''; soql=soql+'select id,First_Name__c,Country__c from Candidate__c'; soql = soql+'where City__c =' + '\''+selectedcity +'\''; lstc =database.query(soql);
public void searchRecord()
{
soql='';
soql=soql+'select id,First_Name__c,Country__c from Candidate__c';
soql = soql+'where City__c =' + '\''+selectedcity +'\'';
lstc =database.query(soql);
}
Visualforce Error
Help for this Page
System.QueryException: unexpected token: =
Error is in expression '{!searchRecord}' in component <apex:commandButton> in page v29searchcandidate: Class.candidatecitysearch.searchRecord: line 19, column 1
Class.candidatecitysearch.searchRecord: line 19, column 1
{
soql='';
soql=soql+'select id,First_Name__c,Country__c from Candidate__c';
soql = soql+'where City__c =' + '\''+selectedcity +'\'';
lstc =database.query(soql);
}
Visualforce Error
Help for this Page
System.QueryException: unexpected token: =
Error is in expression '{!searchRecord}' in component <apex:commandButton> in page v29searchcandidate: Class.candidatecitysearch.searchRecord: line 19, column 1
Class.candidatecitysearch.searchRecord: line 19, column 1
Check below code..
Mark this as the best answer if you are able to solve your problem and help the community grow.
--
Thanks,
Prashant