Look data/SugarBean.php for:
PHP Code:
/**
* Constructs a query to fetch data for supanels and list views
*
* It constructs union queries for activities subpanel.
*
* @param Object $parentbean constructing queries for link attributes in this bean
* @param string $order_by Optional, order by clause
* @param string $sort_order Optional, sort order
* @param string $where Optional, additional where clause
*
* Internal Function, do not overide.
*/
function get_union_related_list($parentbean, $order_by = "", $sort_order='', $where = "",
$row_offset = 0, $limit=-1, $max=-1, $show_deleted = 0, $subpanel_def)
{
If you follow the code of this function, you may understand that you're able to set your custom queries for fetching information in subpanels!
One more time we see how Sugar is flexible.
Bookmarks