• Yash Rathod
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies
Hi, 

I've created a Visualforce page which shows a basic Contact record using standard controller. Below is the code:
 
<apex:page standardController="Contact">
    <apex:pageBlock title="COntact Summary">
        <apex:pageBlockSection>
            $A.get("e.force:navigateToURL").setParams(
    {"url": "/apex/pageName?&id=0037F000007xdK4QAI"}).fire();
            First Name: {! Contact.FirstName} <br/>
            Last Name: {! Contact.LastName} <br/>
            Contact Owner's Email: {! Contact.Owner.Email} <br/>
        </apex:pageBlockSection>
    </apex:pageBlock >
</apex:page>

But, when preview it after saving, everytime it prompts " PAGE NOT SAVED. You have uncommitted changes to this VisualForce page. This preview will show the most recently committed version of this page, not your current changes." Also the preview page is blank. 

I would like to know what is missing here. I am not able to solve it.
 
Hi, 

I've created a Visualforce page which shows a basic Contact record using standard controller. Below is the code:


<
<apex:page standardController="Contact">
    <apex:pageBlock title="COntact Summary">
        <apex:pageBlockSection>
            $A.get("e.force:navigateToURL").setParams(
    {"url": "/apex/pageName?&id=0037F000007xdK4QAI"}).fire();
            First Name: {! Contact.FirstName} <br/>
            Last Name: {! Contact.LastName} <br/>
            Contact Owner's Email: {! Contact.Owner.Email} <br/>
        </apex:pageBlockSection>
    </apex:pageBlock >
</apex:page>



But, when preview it after saving, everytime it prompts " PAGE NOT SAVED. You have uncommitted changes to this VisualForce page. This preview will show the most recently committed version of this page, not your current changes." Also the preview page is blank. 

I would like to know what is missing here. I am not able to solve it.
Hi, 

I've created a Visualforce page which shows a basic Contact record using standard controller. Below is the code:
 
<apex:page standardController="Contact">
    <apex:pageBlock title="COntact Summary">
        <apex:pageBlockSection>
            $A.get("e.force:navigateToURL").setParams(
    {"url": "/apex/pageName?&id=0037F000007xdK4QAI"}).fire();
            First Name: {! Contact.FirstName} <br/>
            Last Name: {! Contact.LastName} <br/>
            Contact Owner's Email: {! Contact.Owner.Email} <br/>
        </apex:pageBlockSection>
    </apex:pageBlock >
</apex:page>

But, when preview it after saving, everytime it prompts " PAGE NOT SAVED. You have uncommitted changes to this VisualForce page. This preview will show the most recently committed version of this page, not your current changes." Also the preview page is blank. 

I would like to know what is missing here. I am not able to solve it.
 
Hello Team,
Greetings,
I've created a class Employee with (empName,Salary,exp) and was trying to get the result in the VF page. 

public class ClassEmployee
{
    public string EmpName {set; get;}
    public Integer EmpSalary {set; get;}
    public Integer EmpExperience {set; get;} 
    public ClassEmployee()
    {
        EmpName = 'John';
        EmpSalary= 10000;
        EmpExperience = 2;
    }

}

<apex:page controller='ClassEmployee'>
    {!.EmpName}
    {!.EmpSalary}
    {!.EmpExperience}    
</apex:page>


As soon as i save and hit preview, i get the error 
"You have uncommitted changes to this VisualForce page. This preview will show the most recently committed version of this page, not your current changes." and the result of the preview is 

User-added image

User-added image

I would like suggestions on hot to get rid of the error. Not sure why the error keeps popping up even though the page is saved