+ Start a Discussion

Functionality of insert filed option in Formula fields

I need the apex code for insert field option that applies in a formula field ...the same functionality on select a value it has to show be the fields in it and at final using insert button it should be inserted 


I don't understand the question exactly but you seem to be asking how you can update a formula field. Simple answer - you can't. You can, however, update the fields that make up a formula field, and SFDC will handle the calculations automatically and display the result in the formula field after any insert or update operation succeeds. (You may have to re-retrieve the record to see the results in the formula field, if you want to use the database to do the calculation rather than manage it yourself.)


Hope this helps,