jitsobullet - 2013-11-20

Hi All,

Ive added the following code under the class Organization to display all Customer Contracts linked to a particular Organization:

MetaModel::Init_AddAttribute(new AttributeLinkedSet("contract_list", array("linked_class"=>'CustomerContract', "ext_key_to_me"=>'org_id', "allowed_values"=>null, "count_min"=>0, "count_max"=>0, "edit_mode"=>LINKSET_EDITMODE_ACTIONS, "depends_on"=>array())));

In addition to this, ive added code to display the children of a parent Org in another tab as follow:

MetaModel::Init_AddAttribute(new AttributeLinkedSet("childlist", array("linked_class"=>'Organization', "ext_key_to_me"=>'parent_id', "allowed_values"=>null, "count_min"=>0, "count_max"=>0, "edit_mode"=>LINKSET_EDITMODE_ACTIONS, "depends_on"=>array())));

My Question is, can the Contract list be changed so that is displays all the customers contracts located within this Organization aswell as the Children Organization?

Kind Regards