Results 1 to 3 of 3

Thread: Where on pop-up

  1. #1
    kinshibuya's Avatar
    kinshibuya is offline A Sugar Hero
    Join Date
    Jul 2008
    Location
    brasil
    Posts
    521

    Default Where on pop-up

    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

  2. #2
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Where on pop-up

    In the popupMeta array you'd define a whereStatement index like:

    PHP Code:
    'whereStatement' => "account_type='Customer'" 
    Which would limit the accounts shown in a popup to those that are only customers.

  3. #3
    kinshibuya's Avatar
    kinshibuya is offline A Sugar Hero
    Join Date
    Jul 2008
    Location
    brasil
    Posts
    521

    Default Re: Where on pop-up

    ok. I tryed but it didnt work
    here what i got:

    Code:
    $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',
    							
    						);
    ?>
    where sw is my ckeck box field
    Priscila Kin Yamamoto Joranhezon
    Phone: +55 61 32010000
    priscila.joranhezon@nct.com.br
    NCT Informática Ltda

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •