Skip to Content.
Sympa Menu

comanage-users - Re: [comanage-users] Trouble with Paginator sort in view

Subject: COmanage Users List

List archive

Re: [comanage-users] Trouble with Paginator sort in view


Chronological Thread 
  • From: Benn Oshrin <>
  • To:
  • Cc:
  • Subject: Re: [comanage-users] Trouble with Paginator sort in view
  • Date: Wed, 24 Jun 2020 17:02:01 -0400

Hi Mike,

I seem to recall running into a similar problem where I couldn't get paginator to sort on a related model, no matter what I tried. I'll have to dig around to find it again, but it seemed to be some sort of issue with the framework.

Thanks,

-Benn-

On 6/22/20 1:47 PM, wrote:
I am writing a Plugin (against branch develop) and cannot get the Paginator
sort to work on some fields in my index view.

My schema has an fk reference to cm_co_person_roles, my model specifies a
'belongs to' relationship to CoPersonRole, and my controller specifies a
"view_contains". In my view, I can display and sort by ['CoPersonRole']
['affiliation']. However, when I try the same with ['CoPersonRole']['Cou']
['name'], I can display it, but not sort.

I have a similar situation with CoPerson Primary Name. Again, my schema has an
fk to cm_co_people, the model specifies a 'belongs to' relationship to
CoPerson, and my controller specifies a "view_contains". I can display
['CoPerson']['PrimaryName'] but not sort by it (or family name, more
specifically).

Any tips would be helpful. Much off the display logic eludes me.

MikeM




Archive powered by MHonArc 2.6.19.

Top of Page