How can a developer display data from the related Supplier__c records on a Visualforce page that has a standard controller for the Buyer__c object?

An org has a data model with a Buyer__c object that has a lookup relationship to Region__c and a Supplier__c object has a lookup relationship to Region___c.
How can a developer display data from the related Supplier__c records on a Visualforce page that has a standard controller for the Buyer__c object?
A. Use rollup formula fields on the Buyer__c object to reference the related Supplier__c records through the Region__c.
B. Use SOQL in a controller extension to query for related Supplier__c records.
C. Use a second standard controller for the Region__c object on a page to display the related Supplier__c records.
D. Use merge field syntax to retrieve the Supplier__c records related to the Buyer__c record through the Region__c.

CRT-450: Salesforce Certified Platform Developer I

Free dumps for CRT-450 in PDF format.

High quality CRT-450 PDF and software. VALID exam to help you pass.

Download Printable PDF. VALID exam to help you PASS.

5 thoughts on “How can a developer display data from the related Supplier__c records on a Visualforce page that has a standard controller for the Buyer__c object?

  1. The correct answer is B. This is because of the following reason –

    A. – Rollup formula go upwards – for example, the parent (region) will count the child records (buyers). Therefore a rollup formula on the buyer is not possible in this schema.
    C. Use a second standard controller – no such animal exists – there is one Standard controller per object, or a Custom controller or an extension to a standard controller.
    D. Merge fields. Merge fields cannot go up and down (in a single path) a relationship – they either go up or they go down. You cannot go up from Buyer to Region and then back down to Supplier with a merge field.

    By default winner is B.

    39

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.