You need to sign in to do that
Don't have an account?
Geetha sai
How to display the page view count in vf page
Hi,
I have one custom object called AddsViewList.In that i have 2 custom fields i.e,AddsName,Count..in custom object i have 10 sample records.First req is i have to get the record name py passing id in vf page..Second one is i have to display the page view count whenever the user refresh the page and the count should be updated...
Can anyone pls provide the code..
I have one custom object called AddsViewList.In that i have 2 custom fields i.e,AddsName,Count..in custom object i have 10 sample records.First req is i have to get the record name py passing id in vf page..Second one is i have to display the page view count whenever the user refresh the page and the count should be updated...
Can anyone pls provide the code..
Note: Please add a valid record id as parameter for the page as mentioned below -
https://c.ap2.visual.force.com/apex/PageViewCount?id=
0012800000atO6JPlease find the following solution which is tested and working -
Helper Class: Controller Class:
Visualforce Page:
-----------
Thanks,
Srinivas
- Please mark as solution if your problem is resolved.