Welcome, Guest
Username: Password: Remember me

TOPIC: Filtering form List from Foreign Table

Filtering form List from Foreign Table 20 Nov 2012 20:46 #5520

  • gdpodesta
  • gdpodesta's Avatar
  • Offline
  • Senior Member
  • Posts: 75
  • Thank you received: 8
  • Karma: -42
I have a form that use a list of values from one of the other tables. For reasons discussed elsewhere, all records in that table are unpublished, and will always remain so, however, I need a list of them on the form I'm working on.
  1. Where in the generated code can I specify to list UNpublished records in the list?
  2. Where in the generated code can I add an additional WHERE clause to further filter that list?
With Cook V2,
My Source config is: jQuery, Condensed, Maximum, No
My "Advanced Custom" is Table, 20 seconds
The administrator has disabled public write access.

Re: Filtering form List from Foreign Table 03 Jan 2013 20:29 #6347

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
You need to target the prepareQuery() function in the concerned model to add both where clauses. You'll be able to see exactly how by looking at the existing code.

Hope it helps,

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.
Time to create page: 0.079 seconds

Get Started