Skip to main content
I'm working to build a custom application that allow me to get the price, on different levels, but my problem begins when I try to show the values on the formula fields (5 differents criteria to calculate the price) before save the record, because I have to fill some other fields, after to see what price level is attached to the customer, and keep this record saved according out process manual.

Currently I'm using "outputField", but doesn't work, because is not a dynamic binding in visualforce. I can show the label of each one of my fields but I cannot show the results. 

Any idea how can I resolve my issue?...

 

Show dynamically formula fields before save the record
2 Antworten
  1. 21. Apr. 2015, 16:55
    Formula fields are only populated when you retrieve a record from the database - they aren't fields that contain a value, instead they contain the formula and this is executed on the record that has been retrieved. Thus you can't dispaly these without saving a record to the database.  The best that you can do is to replicate the formulas in apex, which is a rather fragile solution.
0/9000