Forums

Count in front list

livingwebstudio 06 Dec, 2015
hi,
I would like to know how it's possible to display in a specific column in front list the count of objects in DB table.
I set my connection with 2 models:
articolo MAIN MODEL
autori

in autori I set up:
relation: hasMany
Accociated Model: articolo
Foreign key: record_id
fields: id,record_id,autoriemail,count(id)
primary key: id

I put this code in frontlist settings
autori.count(id):Autori

where am I wrong?
GreyHead 06 Dec, 2015
Hi livingwebstudio,

I'm not sure of the answer for joined tables - there have been a couple of other very similar threads in the last couple of weeks, have you checked them?

Bob
This topic is locked and no more replies can be posted.