PeopleCode PreBuild and PostBuild events

What is the main difference between Prebuild and Postbuild events where as both are used to hide or unhide the pages, why two events are needed for the same purpose? Which event is better to write people code to hide or unhide the pages and why?

Questions by Anilchaitu

Showing Answers 1 - 3 of 3 Answers

PreBuild event is the foremost event which triggers at Component Level. If at all there is an error generated at prebuild then the component fails to load before the search itself. Where as PostBuild is triggers after Prebuild and Search of the component. So if at all a error is generated in PostBuild it will stop loading the component after the search of values. postBuild is the right event to use if we want to capture values rather than prebuild.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions