You need to sign in to do that
Don't have an account?
once you please verify this code.
Error: wantedrecord Compile Error: sObject type 'registration__c' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names. at line 12 column 7
public class wantedrecord
{
public string bname{get;set;}
public string aname{get;set;}
list<registration__c> alist;
public list<registration__c> getinfo()
{
return alist;
}
public pagereference show()
{
alist=[select bookid__c,userid__c,dateoflend__c,dateofreturn__c from registration__c where
bookname__c=:bname and authorname__c=:aname];
return null;
}
}
Also,
Please make sure that the API name of custom object is registration__c.You can verify the same in :
Setup > Create > Custom Object > <select that custom object> .Check the API name field