We use campaigns to build letters that go out annually, and the members of that campaign represent the "main" address and the "CC" contacts. As a result, we have hundreds of campaigns, each with 2-5 members assigned. Managing the order in which the CCs display is a concern of the business.
I was attempting to create a visualforce popup, that displays the CampaignMembers related to campaign, and allow the user to adjust the picklists that drive the CC order. I can get the page to load and display the appropriate inputsFields and outputFields, but the records won't save when the button is clicked. What am I missing?
<apex:page standardController="Campaign">
<apex:form>
<apex:pageblock title="{!Campaign.name}">
<apex:pageBlockSection >
<apex:outputField value="{!Campaign.name}"/>
<apex:outputField value="{!Campaign.Type}"/>
</apex:pageblocksection>
</apex:pageblock>
</apex:form>
<apex:form>
<apex:pageblock title="Edit Related Members">
<apex:pageBlocktable value="{!Campaign.CampaignMembers}" var="cm">
<apex:column><apex:outputField value="{!cm.name}"/></apex:column>
<apex:column><apex:outputField value="{!cm.CC_Order__c}"/></apex:column>
<apex:column><apex:inputField value="{!cm.CC_Order__c}"/></apex:column>
</apex:pageBlocktable>
<apex:commandButton action="{!save}" value="Save Changes"/>
</apex:pageblock>
</apex:form>
</apex:page>