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
pdopdo 

Visualforce Page No Longer Working

For some reason, my Save on my Visualforce Page is no longer working with the release of Spring 2012.  Below is my very simple class and page, but it has recently stopped working.  Can anyone help?

 

Class

 

public class updateProductSales {
    public updateProductSales(ApexPages.StandardSetController controller){
    }
}

 Page

 

<apex:page showHeader="false" standardController="Product_Sales__c" recordSetVar="productsales" tabStyle="Product_Sales__c" extensions="updateProductSales">
    <apex:form >
        <apex:pageBlock title="Update Product Sales" mode="edit">
        <apex:pageBlockButtons location="top">
            <apex:commandButton value="Save" action="{!save}"/>
            <apex:commandButton value="Cancel" action="{!cancel}"/>
        </apex:pageBlockButtons>
        <apex:pageBlockTable var="ps" value="{!selected}">
            <apex:column value="{!ps.Product_Category__c}"/>
            <apex:column value="{!ps.Product__c}"/>
            <apex:column value="{!ps.Product_Purchases_from_Sales_Rep__c}"/>
            <apex:column headerValue="{!$ObjectType.Product_Sales__c.Fields.Total_Customer_Wallet__c.Label}">
                <apex:inputField value="{!ps.Total_Customer_Wallet__c}"/>
            </apex:column>
            <apex:column headerValue="{!$ObjectType.Product_Sales__c.Fields.Estimated_Percentage_of_Wallet__c.Label}">
                <apex:inputField value="{!ps.Estimated_Percentage_of_Wallet__c}"/>
            </apex:column>
            <apex:column value="{!ps.Purchase_Potential_Growth__c}"/>
        </apex:pageBlockTable>
        </apex:pageBlock>
    </apex:form>
</apex:page>

 

bvramkumarbvramkumar

You are having both standardcontroller and extension. Is "save" method written in your extension class? If yes, try changing the name of the method to something else. It might be conflicting with the standard controller's default "save" action.

yvk431yvk431

If that is the page and controller you are actually working with, then there is no need for an extension in here. Isitn't ?

pdopdo

So I made this change and it still does not work.  Strange thing is that this used to work prior to Spring '12.  To be more specific, this is not working in my Customer Portal.  It works fine in the normal environment, but not in the Customer Portal.  Can you think of anything here?

pdopdo

By the way, that is my exact conroller, nothing fancy about it, was used just to invoke a new page with the list of records for editing.  Here is my new page, but it is still not saving in my Customer Portal:

 

<apex:page showHeader="false" standardController="Product_Sales__c" recordSetVar="productsales" tabStyle="Product_Sales__c">
    <apex:form >
        <apex:pageBlock title="Update Product Sales" mode="edit">
        <apex:pageBlockButtons location="top">
            <apex:commandButton value="Save" action="{!save}"/>
            <apex:commandButton value="Cancel" action="{!cancel}"/>
        </apex:pageBlockButtons>
        <apex:pageBlockTable var="ps" value="{!selected}">
            <apex:column value="{!ps.Product_Category__c}"/>
            <apex:column value="{!ps.Product__c}"/>
            <apex:column value="{!ps.Product_Purchases_from_Sales_Rep__c}"/>
            <apex:column headerValue="{!$ObjectType.Product_Sales__c.Fields.Total_Customer_Wallet__c.Label}">
                <apex:inputField value="{!ps.Total_Customer_Wallet__c}"/>
            </apex:column>
            <apex:column headerValue="{!$ObjectType.Product_Sales__c.Fields.Estimated_Percentage_of_Wallet__c.Label}">
                <apex:inputField value="{!ps.Estimated_Percentage_of_Wallet__c}"/>
            </apex:column>
            <apex:column value="{!ps.Purchase_Potential_Growth__c}"/>
        </apex:pageBlockTable>
        </apex:pageBlock>
    </apex:form>
</apex:page>

 

pdopdo

Hi Ramkumar,

I still am not able to save my records.  Even with the suggested chnges it is not working.