I suppose it depends on how the record is being viewed -- do you already 
have code that displays the record? Generally, you might add something like 
a "views" field to the table (defaulting to 0) and increment the value 
every time a record is displayed.

Anthony

On Friday, April 19, 2013 1:19:19 PM UTC-4, Alex Glaros wrote:
>
> I want to count how many web users have looked at a record.
>
> If a user uses a web2py form (sqlform, factory, crud, etc.) to search for 
> a record, and then opens and views that record, how can I keep track of 
> that view?
>
> I'd like to keep a total count of the number of times the record was 
> viewed.
>
> Thanks,
>
> Alex Glaros
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to