How to Access a Data with Standard Controller in VisualForce?
A getter method is included in every standard controller and returns the record indicated by the id query string variable in the website Url. Using the! object syntax, the related page markup can reference attributes on the context record, where the item is the lowercase name of the item connected with the controller. A page that uses the Account standard controller, for example, can use an account. name to get the value of the name field for the user that is currently in context. You can retrieve data from linked records using merge field syntax, much like you do with queries in the Lightning Platform API:
* Up to five tiers of child-parent interactions are possible. For example, if you're working with the Contact standard controller, you may use! contact.Account.Owner.FirstName (a three-level child-to-parent connection) to get the name of the account record's owner.
* One level of parent-child relationships can be explored. If you're using the Account standard controller, for example, you can use your account. Click on Contacts to get an array of all the contacts linked with the account now in use.