I have created a module in module builder (skills) and linked it to contacts. I then added a rating field to the link by adding it to the metadata file and rebuilding. The field is created correctly in the table hr_skills_contacts_c and the subpanels are shown correctly in both modules.
How do I get to show this field in the skills subpanel of contacts? I have tried adding the following (in analogy with the opportunities_contacts link) to /modules/HR_skills/vardefs.php :
And in the subpanel file (ForContacts.php) I added this :Code:'contact_rating_fields' => array ( 'name' => 'contact_rating_fields', 'rname' => 'id', 'relationship_fields'=>array('id' => 'contact_rating_id', 'rating' => 'contact_rating'), 'vname' => 'LBL_ACCOUNT_NAME', 'type' => 'relate', 'link' => 'Contacts', 'link_type' => 'relationship_info', 'join_link_name' => 'hr_skills_contacts', 'source' => 'non-db', 'importable' => 'false', 'duplicate_merge'=> 'disabled', ), 'contact_rating_id' => array( 'name' => 'contact_rating_id', 'type' => 'varchar', 'source' => 'non-db', 'vname' => 'LBL_CONTACT_RATING_ID', ), 'contact_rating' => array( 'name' => 'contact_rating', 'type' => 'int', 'source' => 'non-db', 'vname' => 'LBL_CONTACT_RATING', ),
The field is added to the subpanel but remains empty...Code:'contact_rating'=> array( 'name' => 'contact_rating', 'vname' => 'LBL_CONTACT_RATING', 'width' => '10%', ),
Any help?
Version 5.2.0j (Build 5804)


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks