⚠ 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

where



tanvir_csesus
  • profile picture
  • Member

Posted 19 May 2012 - 12:35 PM

I have 2 tables.
1.Login: id , user_type , name
2.agent: id, login_id

I have used relation for these two tables.A drop down is created containing all names of login table.Now I want to use where clause for login table.How can I do this?


Thanks
Tanvir

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 19 May 2012 - 16:27 PM

You can add a 4th parameter at the set_relation. You can see an example at: http://www.grocerycr...ns/set_relation (it is the last example)