You need to sign in to do that
Don't have an account?
pdo
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>
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.
If that is the page and controller you are actually working with, then there is no need for an extension in here. Isitn't ?
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?
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:
Hi Ramkumar,
I still am not able to save my records. Even with the suggested chnges it is not working.