AnsweredAssumed Answered

Custom View list

Question asked by Tea Santoro on Jan 12, 2017

Hello, I have a particular configuration of sugar, I have the relationship User -> many -> Agencies . I have to show the list Agencies only those connected to current_user.

I have create a view.list.php



$module = "Users";
$bean = BeanFactory::getBean($module,$current_user->id);
//Load relationship
$lista_agenzie = $bean->users_pt_agenzia_1->getBeans();


how can I show this list of agencies "$lista_agenzie" in view list??