function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Srinivas AnnamSrinivas Annam 

whenever we visit a page,update the record in database.

whenever we visit a page,update the record in database (increment the value) without click any button,how to implement this through coding?and which database we can use?which database give the support in saleforce?
Srinivas SSrinivas S
<apex:page controller="YourContrl" action="updateCount">
</apex:page>

Note:
1. On load of the page constructor will invoke but in constructors we cann keep DML stmts.
2. On load you can call an apex method with action attribute and implement your logic to update the view count.
------------
Thanks,
Srinivas
- Please mark as solution if your problem is resolved.