+ Start a Discussion

Auto update a record using visualforce

I want to create an Inline Visualforce that auto update the record when the page is viewed.

So I created a page that calls a component controlled by a custom controller.


It's possible to include an action in this component that calls a function to update the record when the page is visualized for the user?

Can someone help me?


Can you be a little more specific?  What is changing the values of the records that would require them to be updated when someone is viewing the page.  When you say updated, do you just want the values to reload when they view the page or actual update to the database?