World Languages, asked by Mridulpatel7143, 1 year ago

A developer working on a time management application wants to make total hours for each timecard available to application user. A timecard entry has a Master- Detail relationship to a timecard. Which approach should the developer use to accomplish this declaratively?

a) A roll-up Summary field on the Timecard Object that calculates the total hours from timecard entries for that timecard
b) A process builder process that updates a field on the timecard when a timecard entry is created
c) An apex trigger that sues an aggregate query to calculate the hours for a given timecard and stores it in a custom field.
d) A visualforce page that calculates the total number of hours for a timecard and displays it on the page.

Answers

Answered by AzeemAhmedKhan
0
Comment upon the statement Energy consumption is a measure of quality of life.
Answered by Arslankincsem
1

Answer is a)A roll-up Summary field on the Timecard Object that calculates the total hours from timecard entries for that timecard.


In order to make total hours for each time card available to application user the developer should apply the following technique:


He should use a Roll-Up Summary field on the Timecard Object that estimates the total hours from the entries in timecard  for that specific timecard.


The roll-up summary fields calculate values from a set of important  records, such as those in a related list and can only be defined on the main major object.

Similar questions