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
jojoforcejojoforce 

Same Controller to Pass Data between Multiple VisualForce Page - Governor Limit

If I create 2 visualforce page VF1 and VF2 using the same Controller "MyController" would the "Total number of executed code statements" limit be contained in its own VF page? meaning, if VF1 calls VF2, then does the Script Execution Statements of VF1 count towards the "Total number of executed code statements" of VF2 as well? or are they counted seperately? 

 

 

vishal@forcevishal@force

The limits that you have are for each call to the server and not for a visualforce page. So when you will call an action that will redirect you to the other VF, it will be counted as a separate call and hence it will have its own limits.

jojoforcejojoforce
So if I click a button in VF1 {!SubmitButton} that has 1000 statements and calls VF2 that has another 1000 statements, then will that be 2000 executed code statements since they belong to the same "click" transaction? or 1000 for the button, and then 1000 for VF2.