function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
You can do this in the constructor of controller class or in action property of apex:page tage you can call your any controller function which will contain the logic to insert records and it will execute before the page renders.
Go through the given link to understand the order of execution for VF Page:
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_get_request.htm
Let me know, if it helps.
Regards,
Chandra Prakash