Depends on the execution user's profile I am creating a page that will change the layout of the VF page. There are five layouts.
I prepared a Visualforce page for 5 patterns of layout
Depending on the profile of the executing user, I was thinking about how to include one from that five pattern layout with
However, since this page uses standardController, If the SObject field is not described on the main unit side (the side which is included), it will result in an error.
So, by adding the field to be referenced with the addFields method of standardcontroller, we can avoid it, but adding it to addFields for each layout is also a little troublesome.
If you implement the layout of the main VF page 8 with apex: outputPanel renderd, a huge VF will be created and the source will become tiresome, Do you take a method to addFields,