• Nicholas Dall
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
I have created a visualforce page for my team to enter new opportunities. It is my first visualforce page. I can't get it, though, to "save"; it always looks like it is being edited. Here's what my code looks like:

<apex:page standardController="Opportunity">
  
  <h1><center>Hello {!$User.FirstName}</center></h1>
  <center>Please enter the following information</center>
  
  <br></br><br></br>
  
  <apex:form >
      <apex:pageBlock >
        <center><h1>Current Stage</h1></center>
            <i><center>Please leave boxes checked once a project has completed a stage<hr></hr></center></i>
          <br></br>
                  <div align="center" draggable="false" >
                    <apex:commandButton value="Save" action="{!save}"/>
                    <apex:commandButton value="Edit" action="{!edit}"/>
                  <hr></hr></div>   
            <apex:pageblocksection columns="1">
          
              <apex:pageblocksectionitem >
                  Information Sharing    <apex:inputCheckbox value="{!opportunity.Information_Sharing__c}"/>          
              </apex:pageblocksectionitem>
                       
              <apex:pageblocksectionitem >
                  Project Specific RFI    <apex:inputCheckbox value="{!opportunity.Project_Specific_RFI__c}"/>          
              </apex:pageblocksectionitem>
                       
              <apex:pageblocksectionitem >
                  EDCUtah Site/Data RFI    <apex:inputCheckbox value="{!opportunity.EDCUtah_Site_Data_RFI__c}"/>          
              </apex:pageblocksectionitem>
                       
              <apex:pageblocksectionitem >
                  Site Visit    <apex:inputCheckbox value="{!opportunity.Site_Visit__c}"/>          
              </apex:pageblocksectionitem>
                       
              <apex:pageblocksectionitem >
                  Incentive Process    <apex:inputCheckbox value="{!opportunity.Incentive_Process__c}"/>          
              </apex:pageblocksectionitem>
                                                                             
            </apex:pageblocksection>  
      </apex:pageBlock>
  </apex:form>  
      
  <apex:form >
      <apex:pageBlock >
        <center><h1>Contact Information</h1></center>
          <br></br>
          <apex:pageblocksection >
              
              <apex:pageblocksectionitem >
                  Project Name    <apex:inputfield value="{!Opportunity.Name}"/>
              </apex:pageblocksectionitem>
              
              <apex:pageblocksectionitem >
                  Company Name    <apex:inputfield value="{!opportunity.accountid}" required="True"/>
              </apex:pageblocksectionitem>
              
              <apex:pageblocksectionitem >
                  Open Date        <apex:inputfield value="{!opportunity.Open_Date__c}" required="True"/>
              </apex:pageblocksectionitem>
              
              <apex:pageblocksectionitem >
                  Projected Close Date    <apex:inputfield value="{!opportunity.CloseDate}" required="True"/>
              </apex:pageblocksectionitem>
              
                                <apex:outputfield value="{!Opportunity.ownerID}"/>
              <apex:pageblocksectionitem >
                  Secondary Project Owner    <apex:inputfield value="{!opportunity.Secondary_Project_Owner__c}" required="True"/>
              </apex:pageblocksectionitem>
              
              <apex:pageblocksectionitem >
                  Contact    <apex:inputfield value="{!Opportunity.Contact__c}" required="True"/>
              </apex:pageblocksectionitem>
              
              <apex:pageblocksectionitem >
                  Lead Source    <apex:inputfield value="{!opportunity.leadsource}" required="true"/>
              </apex:pageblocksectionitem>
                  
          </apex:pageblocksection>   
      </apex:pageBlock>
  </apex:form>  



  <apex:form >
     <apex:pageBlock >
        <center><h1>Reportable Numbers</h1></center>
            <br></br>
            <apex:pageblocksection >
              
              <apex:pageblocksectionitem >
                  New Jobs Created    <apex:inputfield value="{!opportunity.New_Jobs_Created__c}" required="True"/>
              </apex:pageblocksectionitem> 
              
              <apex:pageblocksectionitem >
                  Existing Jobs Retained    <apex:inputfield value="{!opportunity.Existing_Jobs_Retained__c}" required="True"/>
              </apex:pageblocksectionitem>
              
              <apex:pageblocksectionitem >
                  Capital Investment    <apex:inputfield value="{!opportunity.Capital_Investment__c}" required="True"/>
              </apex:pageblocksectionitem>
              
              <apex:pageblocksectionitem >
                  Acreage        <apex:inputfield value="{!opportunity.Acreage__c}" required="True"/>
              </apex:pageblocksectionitem>
              
              <apex:pageblocksectionitem >
                  Square Footage    <apex:inputfield value="{!opportunity.Square_Footage__c}" required="True"/>
              </apex:pageblocksectionitem>
              
               <apex:pageblocksectionitem >
                  Power Requirements    <apex:inputfield value="{!opportunity.Power_Requirements__c}" required="True"/>
              </apex:pageblocksectionitem>
                             
          </apex:pageblocksection>   
      </apex:pageBlock>
  </apex:form>
  
  
  <apex:form >
     <apex:pageBlock >
        <center><h1>Other Reportable Information</h1></center>
            <br></br>
            <apex:pageblocksection >
              
              <apex:pageblocksectionitem >
                  Facility Function/Type    <apex:inputfield value="{!opportunity.Facility_Function_Type__c}" required="True"/>
              </apex:pageblocksectionitem>
               
              <apex:pageblocksectionitem >
                  Decision Drivers    <apex:inputfield value="{!opportunity.Decision_Drivers__c}" required="True"/>
              </apex:pageblocksectionitem>
               
              <apex:pageblocksectionitem >
                  Project Timeline    <apex:inputfield value="{!opportunity.Project_Timeline__c}" required="True"/>
              </apex:pageblocksectionitem>
              
              <apex:pageblocksectionitem >
                  Real Estate Considered    <apex:inputfield value="{!opportunity.Real_Estate_Considered__c}" required="True"/>
              </apex:pageblocksectionitem>
              
              <apex:pageblocksectionitem >
                  Location(s) Considering    <apex:inputfield value="{!opportunity.Locations_Considering__c}" required="True"/>
              </apex:pageblocksectionitem>
               
              <apex:pageblocksectionitem >
                  Competition    <apex:inputfield value="{!opportunity.ND_Competition__c}" required="True"/>
              </apex:pageblocksectionitem>
              
              <apex:pageblocksectionitem >
                  Strategic Benefit    <apex:inputfield value="{!opportunity.Strategic_Benefit__c}" required="True"/>
              </apex:pageblocksectionitem>
              
      </apex:pageblocksection>   
    </apex:pageBlock>
  </apex:form>  
    
  
  <apex:form >
      <apex:pageblock > 
          <apex:pageblocksection >
              <apex:commandbutton >
                  <center><apex:commandButton title="New Event or Task" value="New Task" onclick="window.open('/00T/e?','_blank','width=600,height=600,location=no,resizable=yes,toolbar=no,status=no,menubar=no,scrollbars=1', 1)"/></center>
              </apex:commandbutton>
          </apex:pageblocksection>
      </apex:pageblock>
  </apex:form>
             
</apex:page> 
I installed Java and Eclipse 3.6 but it looks like they must have changed the location of the Force.com IDE install.  The address it says to install the plugin from is http://www.adnsandbox.com/tools/ide/install/ but it appears that the address is wrong.  Eclipse says ‘Could not find http://www.adnsandbox.com/tools/ide/install/’ and if you try to connect to that in the browser it is redirected to the SalesForce Developer site.
I have created a visualforce page for my team to enter new opportunities. It is my first visualforce page. I can't get it, though, to "save"; it always looks like it is being edited. Here's what my code looks like:

<apex:page standardController="Opportunity">
  
  <h1><center>Hello {!$User.FirstName}</center></h1>
  <center>Please enter the following information</center>
  
  <br></br><br></br>
  
  <apex:form >
      <apex:pageBlock >
        <center><h1>Current Stage</h1></center>
            <i><center>Please leave boxes checked once a project has completed a stage<hr></hr></center></i>
          <br></br>
                  <div align="center" draggable="false" >
                    <apex:commandButton value="Save" action="{!save}"/>
                    <apex:commandButton value="Edit" action="{!edit}"/>
                  <hr></hr></div>   
            <apex:pageblocksection columns="1">
          
              <apex:pageblocksectionitem >
                  Information Sharing    <apex:inputCheckbox value="{!opportunity.Information_Sharing__c}"/>          
              </apex:pageblocksectionitem>
                       
              <apex:pageblocksectionitem >
                  Project Specific RFI    <apex:inputCheckbox value="{!opportunity.Project_Specific_RFI__c}"/>          
              </apex:pageblocksectionitem>
                       
              <apex:pageblocksectionitem >
                  EDCUtah Site/Data RFI    <apex:inputCheckbox value="{!opportunity.EDCUtah_Site_Data_RFI__c}"/>          
              </apex:pageblocksectionitem>
                       
              <apex:pageblocksectionitem >
                  Site Visit    <apex:inputCheckbox value="{!opportunity.Site_Visit__c}"/>          
              </apex:pageblocksectionitem>
                       
              <apex:pageblocksectionitem >
                  Incentive Process    <apex:inputCheckbox value="{!opportunity.Incentive_Process__c}"/>          
              </apex:pageblocksectionitem>
                                                                             
            </apex:pageblocksection>  
      </apex:pageBlock>
  </apex:form>  
      
  <apex:form >
      <apex:pageBlock >
        <center><h1>Contact Information</h1></center>
          <br></br>
          <apex:pageblocksection >
              
              <apex:pageblocksectionitem >
                  Project Name    <apex:inputfield value="{!Opportunity.Name}"/>
              </apex:pageblocksectionitem>
              
              <apex:pageblocksectionitem >
                  Company Name    <apex:inputfield value="{!opportunity.accountid}" required="True"/>
              </apex:pageblocksectionitem>
              
              <apex:pageblocksectionitem >
                  Open Date        <apex:inputfield value="{!opportunity.Open_Date__c}" required="True"/>
              </apex:pageblocksectionitem>
              
              <apex:pageblocksectionitem >
                  Projected Close Date    <apex:inputfield value="{!opportunity.CloseDate}" required="True"/>
              </apex:pageblocksectionitem>
              
                                <apex:outputfield value="{!Opportunity.ownerID}"/>
              <apex:pageblocksectionitem >
                  Secondary Project Owner    <apex:inputfield value="{!opportunity.Secondary_Project_Owner__c}" required="True"/>
              </apex:pageblocksectionitem>
              
              <apex:pageblocksectionitem >
                  Contact    <apex:inputfield value="{!Opportunity.Contact__c}" required="True"/>
              </apex:pageblocksectionitem>
              
              <apex:pageblocksectionitem >
                  Lead Source    <apex:inputfield value="{!opportunity.leadsource}" required="true"/>
              </apex:pageblocksectionitem>
                  
          </apex:pageblocksection>   
      </apex:pageBlock>
  </apex:form>  



  <apex:form >
     <apex:pageBlock >
        <center><h1>Reportable Numbers</h1></center>
            <br></br>
            <apex:pageblocksection >
              
              <apex:pageblocksectionitem >
                  New Jobs Created    <apex:inputfield value="{!opportunity.New_Jobs_Created__c}" required="True"/>
              </apex:pageblocksectionitem> 
              
              <apex:pageblocksectionitem >
                  Existing Jobs Retained    <apex:inputfield value="{!opportunity.Existing_Jobs_Retained__c}" required="True"/>
              </apex:pageblocksectionitem>
              
              <apex:pageblocksectionitem >
                  Capital Investment    <apex:inputfield value="{!opportunity.Capital_Investment__c}" required="True"/>
              </apex:pageblocksectionitem>
              
              <apex:pageblocksectionitem >
                  Acreage        <apex:inputfield value="{!opportunity.Acreage__c}" required="True"/>
              </apex:pageblocksectionitem>
              
              <apex:pageblocksectionitem >
                  Square Footage    <apex:inputfield value="{!opportunity.Square_Footage__c}" required="True"/>
              </apex:pageblocksectionitem>
              
               <apex:pageblocksectionitem >
                  Power Requirements    <apex:inputfield value="{!opportunity.Power_Requirements__c}" required="True"/>
              </apex:pageblocksectionitem>
                             
          </apex:pageblocksection>   
      </apex:pageBlock>
  </apex:form>
  
  
  <apex:form >
     <apex:pageBlock >
        <center><h1>Other Reportable Information</h1></center>
            <br></br>
            <apex:pageblocksection >
              
              <apex:pageblocksectionitem >
                  Facility Function/Type    <apex:inputfield value="{!opportunity.Facility_Function_Type__c}" required="True"/>
              </apex:pageblocksectionitem>
               
              <apex:pageblocksectionitem >
                  Decision Drivers    <apex:inputfield value="{!opportunity.Decision_Drivers__c}" required="True"/>
              </apex:pageblocksectionitem>
               
              <apex:pageblocksectionitem >
                  Project Timeline    <apex:inputfield value="{!opportunity.Project_Timeline__c}" required="True"/>
              </apex:pageblocksectionitem>
              
              <apex:pageblocksectionitem >
                  Real Estate Considered    <apex:inputfield value="{!opportunity.Real_Estate_Considered__c}" required="True"/>
              </apex:pageblocksectionitem>
              
              <apex:pageblocksectionitem >
                  Location(s) Considering    <apex:inputfield value="{!opportunity.Locations_Considering__c}" required="True"/>
              </apex:pageblocksectionitem>
               
              <apex:pageblocksectionitem >
                  Competition    <apex:inputfield value="{!opportunity.ND_Competition__c}" required="True"/>
              </apex:pageblocksectionitem>
              
              <apex:pageblocksectionitem >
                  Strategic Benefit    <apex:inputfield value="{!opportunity.Strategic_Benefit__c}" required="True"/>
              </apex:pageblocksectionitem>
              
      </apex:pageblocksection>   
    </apex:pageBlock>
  </apex:form>  
    
  
  <apex:form >
      <apex:pageblock > 
          <apex:pageblocksection >
              <apex:commandbutton >
                  <center><apex:commandButton title="New Event or Task" value="New Task" onclick="window.open('/00T/e?','_blank','width=600,height=600,location=no,resizable=yes,toolbar=no,status=no,menubar=no,scrollbars=1', 1)"/></center>
              </apex:commandbutton>
          </apex:pageblocksection>
      </apex:pageblock>
  </apex:form>
             
</apex:page>