• sli
  • NEWBIE
  • 0 Points
  • Member since 2011

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

Hello,

I have a Problem with the postcallback of an Visualforce Page.  

I have a Opportunity to edit which could be edit. The following issue only occur once afterwards everthing work fine.

The controller should take the Object o_edit which is a wrapper around the Opportunity and save it. But it never reach the save Method and returns the following Error
   
j_id0:sf42_FormOppEdit:callbackRerenderOppEdit:j_id492:0:j_id520:j_id521:0:j_id522:j_id525: An error occurred when processing your submitted information.
j_id0:sf42_FormOppEdit:callbackRerenderOppEdit:j_id492:0:j_id520:j_id521:1:j_id522:j_id525: An error occurred when processing your submitted information.
j_id0:sf42_FormOppEdit:callbackRerenderOppEdit:j_id492:0:j_id520:j_id521:5:j_id522:j_id525: An error occurred when processing your submitted information.
j_id0:sf42_FormOppEdit:callbackRerenderOppEdit:j_id492:0:j_id520:j_id521:8:j_id522:j_id525: An error occurred when processing your submitted information.
j_id0:sf42_FormOppEdit:callbackRerenderOppEdit:j_id492:0:j_id520:j_id521:11:j_id522:j_id525: An error occurred when processing your submitted information.
j_id0:sf42_FormOppEdit:callbackRerenderOppEdit:j_id492:1:j_id520:j_id521:0:j_id522:j_id525: An error occurred when processing your submitted information.
j_id0:sf42_FormOppEdit:callbackRerenderOppEdit:j_id492:1:j_id520:j_id521:4:j_id522:j_id525: An error occurred when processing your submitted information.
j_id0:sf42_FormOppEdit:callbackRerenderOppEdit:j_id492:1:j_id520:j_id521:5:j_id522:j_id525: An error occurred when processing your submitted information.
j_id0:sf42_FormOppEdit:callbackRerenderOppEdit:j_id492:1:j_id520:j_id521:6:j_id522:j_id525: An error occurred when processing your submitted information.
j_id0:sf42_FormOppEdit:callbackRerenderOppEdit:j_id492:1:j_id520:j_id521:7:j_id522:j_id525: An error occurred when processing your submitted information.
j_id0:sf42_FormOppEdit:callbackRerenderOppEdit:j_id492:2:j_id520:j_id521:1:j_id522:j_id525: An error occurred when processing your submitted information.
j_id0:sf42_FormOppEdit:callbackRerenderOppEdit:j_id492:3:j_id520:j_id521:0:j_id522:j_id525: An error occurred when processing your submitted information.
j_id0:sf42_FormOppEdit:callbackRerenderOppEdit:j_id492:3:j_id520:j_id521:1:j_id522:j_id525: An error occurred when processing your submitted information.

The part auf the vsualforce page:

<apex:form id="sf42_FormOppEdit" >
    <div class="overlay_content">
        <apex:pageBlock id="callbackRerenderOppEdit">
            <apex:repeat value="{!mObject.OppLayoutDefaultSections}" var="ols">
                <apex:pageMessages />
                <apex:pageBlockSection columns="2" collapsible="false">
                    <apex:repeat value="{!ols.fieldlist}" var="f">
                        <apex:pageBlockSectionItem DataStyleClass="{!ols.DataStyleClass}" LabelStyleClass="{!ols.LabelStyleClass}"
                        rendered="{!AND(f != '_blank_' , IF (CONTAINS(o_edit.OppLayoutVariable, f) , CONTAINS(o_edit.OppLayoutVisible, f) , true ))}">
                            <apex:outputLabel value="{!IF( CONTAINS(f,'Account.') , $ObjectType.Account.Fields[SUBSTITUTE(f,'Account.','')].Label , $ObjectType.Opportunity.Fields[f].Label)}" />
                            <apex:outputPanel >
                                <apex:inputField value="{!o_edit.Opp[f]}" rendered="{!NOT(CONTAINS(f,'Account.'))}"/>
                                <apex:outputField value="{!o_edit.Opp[f]}" rendered="{!CONTAINS(f,'Account.')}"/>
                            </apex:outputPanel>
                        </apex:pageBlockSectionItem>
    
                        <apex:pageBlockSectionItem DataStyleClass="{!ols.DataStyleClass}" LabelStyleClass="{!ols.LabelStyleClass}"
                        rendered="{!IF (f == '_blank_' , true , false)}">&nbsp;</apex:pageBlockSectionItem>
                        
                    </apex:repeat>
                    <apex:pageBlockSectionItem />
                    <apex:pageBlockSectionItem />
                </apex:pageBlockSection>
            </apex:repeat>
            <apex:pageBlockSection columns="1">
                <apex:inputField value="{!o_edit.Opp.Zus_tzliche_Vertragsinformationen__c}" />
            </apex:pageBlockSection>
        </apex:pageBlock>
    </div>
    <div class="sf42_btns clearfix">
        <apex:commandButton value="{!$Label.MC_Save} {!$ObjectType.Opportunity.Label}" onclick="saveOpportunityFunction(this);" action="{!null}" reRender="''"/>
        <apex:commandButton value="{!$Label.MC_Cancel}" onclick="resetPopupOpp(this);" action="{!null}" reRender="''"/>
    </div>
                 <apex:actionFunction name="resetPopupOpportunity" action="{!resetPopup1}" immediate="true" />
    <apex:actionRegion >
        <apex:actionFunction name="saveOpportunity" action="{!saveOpportunity}"  />
    </apex:actionRegion>
    
    <!-- <apex:actionFunction name="resetPopupOpportunity" action="{!resetPopup1}" immediate="true" />
    <apex:actionFunction name="saveOpportunity" action="{!saveOpportunity}" reRender="msg" oncomplete="resetPopupOpportunity"/> -->
</apex:form>

the method "saveOpportunityFunction" disables  the save button and calls the "saveOpportunity" method.

I tried also to encapsulate the opportunity in a own object but the Error still exist.

I know this code is not very nice but i have to deal with it.

  • August 22, 2012
  • Like
  • 0