I'm working on pretty much the same thing... but without your 18
months' rails experience :-)

afaik table-plus sort only works for columns of the model that's in
context - so for example in mine...

      <table-plus fields="user, contact.company.name, this,
probability, created_at, start_date, state">

i can sort all the lead fields, but not contact.company.name

I can suggest a couple of workarounds...

1 - make a table-plus of the taskassignments rather than the leads,
and then you can sort that by due date
2 - add a due_date column to your leads model and put in logic to
update it with due date from the task (but i guess this could get
messy)

i hope this helps
paul

On 3 May, 17:29, Joe Clark <[email protected]> wrote:
> Hello HoboUsers!
>
> I've got about 18 months of Rails experience under my belt and I was
> recently delighted to discover Hobo! I'm using it to develop a simple
> CRM application to manage a client's sales pipeline. One of their
> feature requests was to include a way to give each task in the
> pipeline a due date and then be able to sort the leads by the next due
> date. I've created a due_date field in the TaskAssignment table and I
> have a function in my Lead model named next_task which returns the
> next task for that lead. Unfortunately, I can't get the Table-Plus
> dryml tag to sort that field.
>
> I believe that at this point Hobo doesn't support sorting with virtual
> attributes. Is that correct? What about the included search
> functionality. Will that work with virtual attributes? More
> importantly, do any of you smarties out there have a suggestion for
> how I could implement this feature differently to achieve my desired
> results?
>
> Thanks guys!
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Hobo Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/hobousers?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to