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 IFree dumps for CRT-450 in PDF format.High quality CRT-450 PDF and software. VALID exam to help you pass. |
I really want to who is the person gives A for the correct answer,it is apparently uncorrect
Answer:B
https://www.forcetalks.com/blog/displaying-data-from-the-related-supplier__c-records-on-a-visualforce-page-that-has-a-custom-controller-for-the-buyer__c-object/
Never heard of ‘rollup formula fields’
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.
Why Ans is A please explain?
it should be D.