Dear All,
I created a new module called cuspk_grants such that it would have a many to one relationship with projects. -- One project could have many grants.
I've managed to get the corresponding project name in the listing of the grant module's records. Now, the listing of the grants records look like this: http://www.sugarcrm.com/forums/attac...tid=3523&stc=1
When I click on the "project name" hyperlink, I expect to be taken to the details of the corresponding project, but instead, I get this error:
Error: File [modules/Home/metadata/detailviewdefs.php] is missing. Unable to create because no corresponding HTML file was found.
Any ideas would be appreciated. Right now, There is a file called $SUGAR_HOME/modules/cuspk_Grants/metadata/detailviewdefs.php which goes like this:
PHP Code:<?php
$module_name = 'cuspk_Grants';
$viewdefs = array (
$module_name =>
array (
'DetailView' =>
array (
'templateMeta' =>
array (
'form' =>
array (
'buttons' =>
array (
0 => 'EDIT',
1 => 'DUPLICATE',
2 => 'DELETE',
),
),
'maxColumns' => '2',
'widths' =>
array (
0 =>
array (
'label' => '10',
'field' => '30',
),
1 =>
array (
'label' => '10',
'field' => '30',
),
),
),
'panels' =>
array (
'' =>
array (
0 =>
array (
0 =>
array (
'name' => 'project_name',
'label' => 'LBL_PROJECT_NAME',
),
1 =>
array (
'name' => 'grant_date',
'label' => 'LBL_GRANT_DATE',
),
),
1 =>
array (
0 =>
array (
'name' => 'grant_amount',
'label' => 'LBL_GRANT_AMOUNT',
),
),
2 =>
array (
0 =>
array (
'name' => 'description',
'label' => 'LBL_DESCRIPTION',
),
),
),
),
),
)
);
?>


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks