Hi!
How can i build a custom where clause on poupupdefs?
Hi!
How can i build a custom where clause on poupupdefs?
Priscila Kin Yamamoto Joranhezon
Phone: +55 61 32010000
priscila.joranhezon@nct.com.br
NCT Informática Ltda
In the popupMeta array you'd define a whereStatement index like:
Which would limit the accounts shown in a popup to those that are only customers.PHP Code:'whereStatement' => "account_type='Customer'"
Co-Founder of: SugarOutfitters
Modules:
SecuritySuite (Teams)
Photo Module
Follow me on Twitter:eggsurplus
Your Personal Developer
ok. I tryed but it didnt work
here what i got:
where sw is my ckeck box fieldCode:$module_name = 'Sup_ContratoSuporte'; $_module_name = 'sup_contratosuporte'; $popupMeta = array('moduleMain' => $module_name, 'varName' => $module_name, 'orderBy' => $_module_name.'.name', 'whereStatement' => "sw=1", 'whereClauses' => array('name' => $_module_name . '.name', ), 'searchInputs'=> array($_module_name. '_number', 'name', 'priority','status','vencido_com_aditivo_c'), 'listview' => 'modules/' . $module_name. '/metadata/listviewdefs.php', 'search' => 'modules/' . $module_name . '/metadata/searchdefs.php', ); ?>
Priscila Kin Yamamoto Joranhezon
Phone: +55 61 32010000
priscila.joranhezon@nct.com.br
NCT Informática Ltda
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks