We have created a custom object where we store our Product Pricing. We want our users to change the prices of our products (through in-line editing) in list views. However for our users to make a good decision on a price increase we need to show the average price of all the records in each List View.
Is it possible to calculate this in a controller? I've already created the view but I can't find anywhere how I can fetch records depicted in a list view to do any calculations on.
Because we have 100+ List views (and we need this view to be flexible) I don't want to hard code any queries in the controller outside the List View dropdown.
Hope anyone can help!