• Julija Klimeca
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

Hello everyone,

 

I'm building a VF page where I have custom object related to an Opportunity. I've got everything built but can not get the edits to to save from the VF page to the actual record. Code is below, any help would be much appriciated. 

 

<apex:page standardController="Opportunity" sidebar="false" >
<apex:form >
<apex:sectionHeader title="{!Opportunity.name}"/>
<apex:pageBlock mode="inlineEdit" title="Equipment">
<apex:pageMessages />
<apex:pageBlockButtons >
<apex:commandButton value="Save" action="{!quicksave}"/>
<apex:commandButton value="Close" onClick="window.top.close();"/>
</apex:pageBlockButtons>
<apex:pageBlocktable value="{!Opportunity.Equipment__r}" var="equipment" >
<apex:column headerValue="Remove">
<apex:inputCheckbox value="{!equipment.Remove_Equipment__c}" />
</apex:column>
<apex:column headerValue="Reciever R#">
<apex:outputField value="{!equipment.Name}"/>
</apex:column>
<apex:column headerValue="Receiver S#">
<apex:outputField value="{!equipment.Receiver_S__c}"/>
</apex:column>
<apex:column headerValue="Receiver Model">
<apex:outputField value="{!equipment.Receiver_Model__c}"/>
</apex:column>
<apex:column headerValue="Programming">
<apex:outputField value="{!equipment.Programming__c}">
<apex:inlineEditSupport event="ondblclick"/>
</apex:outputField>
</apex:column>
<apex:column headerValue="Status">
<apex:outputText value="{!equipment.Statis__c}"/>
</apex:column>
</apex:pageBlocktable>
</apex:pageBlock>
<center>
<apex:commandButton action="{!quicksave}" value="Save"/>
<apex:commandButton onClick="window.top.close();" value="Close" />
</center>
</apex:form>
</apex:page>