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
phanikumarphanikumar 

Error: Compile Error: Invalid identifier: Employe1__c at line 1 column 14

Dear Salesforce Experts,

 

 

   I created a custom object with name Employe1__c.

 

I created  fields for this object like...

  EmployeID

 EmpName

 

 

after that in UI,Using VF.......I written some Code...............

 

 

<apex:page standardcontroller="Employe1__c">
<apex:form >
<apex:pageBlock >
<apex:pageBlockSection >
<apex:inputField value="{!Employe1__c.EmployeId__c}"/>
<br/>
<apex:inputField value="{!Employe1__c.EmpName__c }"/>

<br/>
<apex:commandButton value="Insert" action="{!save}"/>

 

</apex:pageBlockSection>

 

</apex:pageBlock>

</apex:form>
</apex:page>

 

After that i want to   create an Apex class like..

 

public class Employe1__c

{


}

 

For this one line of code i am unable to save Apexclass...

I am geting an error like this

 

ErrorError: Compile Error: Invalid identifier: Employe1__c at line 1 column 14


For this i want to do Insert,update,delete...But i am unable to create the Class....


I need some help from Experts...

 

Thanks in advance.:)

 

 

 

 

 

phanikumarphanikumar

Hi,

 

I solved this problem,by using in VF Code

 

<apex:page standardcontroller="Employe__c" extensions="Employ">

 

 

 

I need some Code Example For Insert,Update,Delete..  Using Triggers..........

 

 

Can you please send some code Samples......

 

I am New to the Salesforce...as well as codeing in Apex......

 

Thanks in advance..

 

 

Regards,

Phani..