multiple models one table

  • 1
  • Question
  • Updated 4 years ago
How do I format multiple models within one table? 

Model 1 within current table: Account Name; Request Summary; Request Detail. All from Accounts. These display as I would like in single rows.

I would like to add a column for Next Event Date, presumably from another model based from Events.

Thanks,
PSB
Photo of Cabot

Cabot

  • 180 Points 100 badge 2x thumb

Posted 4 years ago

  • 1
Photo of Emily Davis

Emily Davis, Employee

  • 3,502 Points 3k badge 2x thumb
Cabot,
Right now, it is not possible to include multiple models in a table. You can view fields from related objects (e.g. parent objects), but everything must come directly from a single model. How are you planning to tie records from these two models together (i.e. which event fits with which account)? Are you using a Javascript resource? If you are not able to access the event directly through the account model, I would recommend a row action in the account table with a popup that allows the user to view information about the next event. You can then include a field editor tied to your event model in this popup. However, you might still need some custom Javascript to connect the event with the account (view our Javascript API reference here). Hope this meets your needs!
Emily