⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Custom Model for Dropdown (Set Relation)



Toro

Toro
  • profile picture
  • Member

Posted 23 March 2016 - 09:31 AM

I have a question. I already search the forum for my issues but I don't quite successful in understanding custom model for dropdown.

 

Table Sales --> id, no_so, id_services, id_organization, ..

Table Services --> id, name, ...

Table Organization --> id, name, ...

Table Project --> id, date, id_sales, ...

 

My problem is in table project. In table project, I want to show id_sales as dropdown, but I need not only no_so, but also id_services in name from table services and id_organization in name from table organization. I search the forum and perhaps I need to used custom model. But I don't quite get it. Anyone can help me? Thank you.