• sirishanekkanti06
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 11
    Questions
  • 4
    Replies

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;
}
}

hi firends,

          Error: sregdform Compile Error: Invalid type: Registrations__c at line 5 column 33

        i am writing the code..but i dont know this error..

 

public class sregdform
{
public boolean displyvalue{get;set;}
public boolean displyform{get;set;}
public Registrations__c s=new Registrations__c();
public sregdform()
{
displyvalue=true;
}
public Registration__c gets()
{
return s;
}
public void send()
{
if((s.password__c == s.confirmpassword__c))
{
//insert s;
Database.SaveResult sr=Database.insert(s,false);
if(sr.issuccess())
{
ApexPages.Message myMsg = new ApexPages.Message(ApexPages.Severity.Confirm,'Inserted Successfully');
ApexPages.addMessage(myMsg);
}
else
{
ApexPages.Message myMsg = new ApexPages.Message(ApexPages.Severity.error,'Please check the details');
ApexPages.addMessage(myMsg);
}
}
else
{
ApexPages.Message myMsg = new ApexPages.Message(ApexPages.Severity.error,'Please confirm your password');
ApexPages.addMessage(myMsg);
}
}
public void cancel()
{
s=new Registration__c();
}
public void next()
{
string studentnumber = s.Mobile_Number__c ;
if(studentNumber.length()== 14 )
{
system.debug('IF block');
displyvalue=false;
displyform=true;
}
else
{
system.debug('ELSE block');
displyvalue=true;
displyform=false;
ApexPages.Message myMsg = new ApexPages.Message(ApexPages.Severity.error,'Please enter 10 digits phone number');
ApexPages.addMessage(myMsg);
}
}
public void back()
{
displyvalue=true;
displyform=false;
}
}

hi friends,

 

                one of my frnd asked me is there any difference between trail version of salesforce which is www.salesforce.com or enterprise edition of salesforce which is www.developerforce.com,

                i told one of the difference which is trail version will be expired with in 30 days..enterprise edition will not be expired..

plese tell me is there any other differences regarding limitations of the classes or objects...please give the reply 

 

 

hi friends,

 

    my requirement is when you enter the zip code it automatically populates the details of city,state.

i creating a some data base of records.

and i worked on workflow for field update.

work flow rule criteria is: when ever record is created or edited.

in field update i am entering a formula like this

 

city__c +"," +state__c +"-"+Zip_code_Pin_code__c

 

there is no errors in the formula editor..but execution wil be to display what ever we have to enter the zip code value that will be disply to all remaining fields..

 

will you please suggest where is the mistike i have to done..

i need a trigger for Zip code mapping.

 when u enter a zip code it automatically populates the related list of city state and counrty.

It will also work for the lead comes from Web also (Web to Lead).

hi friends,

 

     i need a help for writing test methods and also i dont know how to get the code coverage.can any one please suggest me how to see the code coverage..

public class sendemailctrl
{
public Email__c e=new Email__c();
public Email__c gete()
{
return e;
}
public void send()
{
database.saveresult sr=new database.insert(e,false);
if(sr.issucess())
ApexPages.Message myMsg = new ApexPages.Message(ApexPages.Severity.Confirm,'Email has been sent');
ApexPages.addMessage(myMsg);
}
else
{
ApexPages.Message myMsg = new ApexPages.Message(ApexPages.Severity.error,'Please check the details');
ApexPages.addMessage(myMsg);
system.assertequals(sr.myMsg,sr.act valu);
}
public void cancel()
{
e=new Email__c;
}
}
}

hi friends,

            how to write trigger for phone number validation

hi..

 

   i need a trigger for sending an mails

i dont know why we are creating static method under apex class using the developer console.what is the purpose of creating static method undre the apex class...please help..

i have some little bit  tension while understanding the requirements please help, how to do the step wise procedues...

hi firends,

          Error: sregdform Compile Error: Invalid type: Registrations__c at line 5 column 33

        i am writing the code..but i dont know this error..

 

public class sregdform
{
public boolean displyvalue{get;set;}
public boolean displyform{get;set;}
public Registrations__c s=new Registrations__c();
public sregdform()
{
displyvalue=true;
}
public Registration__c gets()
{
return s;
}
public void send()
{
if((s.password__c == s.confirmpassword__c))
{
//insert s;
Database.SaveResult sr=Database.insert(s,false);
if(sr.issuccess())
{
ApexPages.Message myMsg = new ApexPages.Message(ApexPages.Severity.Confirm,'Inserted Successfully');
ApexPages.addMessage(myMsg);
}
else
{
ApexPages.Message myMsg = new ApexPages.Message(ApexPages.Severity.error,'Please check the details');
ApexPages.addMessage(myMsg);
}
}
else
{
ApexPages.Message myMsg = new ApexPages.Message(ApexPages.Severity.error,'Please confirm your password');
ApexPages.addMessage(myMsg);
}
}
public void cancel()
{
s=new Registration__c();
}
public void next()
{
string studentnumber = s.Mobile_Number__c ;
if(studentNumber.length()== 14 )
{
system.debug('IF block');
displyvalue=false;
displyform=true;
}
else
{
system.debug('ELSE block');
displyvalue=true;
displyform=false;
ApexPages.Message myMsg = new ApexPages.Message(ApexPages.Severity.error,'Please enter 10 digits phone number');
ApexPages.addMessage(myMsg);
}
}
public void back()
{
displyvalue=true;
displyform=false;
}
}

hi friends,

 

    my requirement is when you enter the zip code it automatically populates the details of city,state.

i creating a some data base of records.

and i worked on workflow for field update.

work flow rule criteria is: when ever record is created or edited.

in field update i am entering a formula like this

 

city__c +"," +state__c +"-"+Zip_code_Pin_code__c

 

there is no errors in the formula editor..but execution wil be to display what ever we have to enter the zip code value that will be disply to all remaining fields..

 

will you please suggest where is the mistike i have to done..

hi everyone,

 

can any one help me sending an email using trigger when a new record is inserted.

 

 

Thanks in advance.
 
 
 
Regards,
Veeru

i dont know why we are creating static method under apex class using the developer console.what is the purpose of creating static method undre the apex class...please help..