You can handle it a couple ways.  Cleanest if the calculated value is
useful anywhere else is to make a method in your model that returns
that value, then you can just add the method as a column.  Otherwise
you can add a column, then override the view for it (and probably the
label too so you don't get the link appearance for sorting).
parameters go like columnname-view and columnname-label IIRC

On Apr 7, 10:58 am, Chris <[email protected]> wrote:
> Hello,
>
> I am building a table plus table that has the following code:
>
>   <table-plus with="&@events" fields="this, location, req_staffing,
> ambassadors.count">
>     <empty-message:>No events match your criteria</empty-message:>
>   </table-plus>
>
> I would like to add an additional column that subtracts the
> ambassadors.count column from the req-staffing column.  Can anyone
> help me figure out how to do this?
>
> By the way, Events have many Ambassadors and Ambassadors have many
> Events, both through an event_assignments table, if that helps.
>
> Thanks!
> -Chris

-- 
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