Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 11, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  Filter on Table Lookup

phpMyEdit General     Filter on Table Lookup
Post new topic   Reply to topic    
 
zucarino     Joined: 29 Dec 2005   Posts: 44   Location: Rio de Janeiro - Brazil
Post Posted: 2006-07-31 14:49
Back to top  Reply with quote     

Hi all,

I have this table lookup with column joining :

Code:
$opts['fdd']['name'] = array(
  'name'     => 'Product Name',
  'select'   => 'D',
  'maxlen'   => 11,
  'required' => true,
  'sort'     => true
);
$opts['fdd']['name']['values']['table']  = 'Products';
$opts['fdd']['name']['values']['column'] = 'ID';
$opts['fdd']['name']['values']['description']['columns'][0] = 'prod_name';


Ok, it works very well. But How can I filter this to show just Products.prod_owner = 123 for example?

Filtering columns at the current table (defined at $opts['tb'] ) works very well, like this example:

Code:
$opts['filters'] = "local = '123'";
or
$opts['filters'] = "PMEtable0.local = '123'";


But I tried this without success:

Code:
$opts['filters'] = "PMEjoin2.prod_owner = '123'";


Thanks!

 
zucarino     Joined: 29 Dec 2005   Posts: 44   Location: Rio de Janeiro - Brazil
Post Posted: 2006-07-31 17:20
Back to top  Reply with quote     

Sorry... I can use:

Code:
$opts['fdd']['name']['values']['filters'] = "owner = '123'";


Thanks! :P

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy