Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Filtering an FK Select List 30 Aug 2019 14:42 #15761

  • MorganL
  • MorganL's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
So one of my views (film) has an FK select table which pulls in data from another table (mediafiles) and I see this in the prepareQuery function
$this->orm->relation('mediafiles', array(
                    'select' => 'filename'
                ));
However this field needs to be filtered. I need this dropdown to ONLY show values from mediafiles where
associated_film IS NULL
created_by = logged in user

Ideally, this field will pull in data from context
mediafiles.choosemedia

in the mediafiles model which has the correct data, but it just seems to pull from the all context

I have tried adding filters, contexts, nothing works

Can someone put my out my ORM misery please
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.093 seconds

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started