Hi
i am new to sugarcrm, I have created a new module and i installed it. when i go through the module i am displaying all the fields which are in the database but i need to display only some fields in that and i have created some array variables in metadata/listviewdefs.php as
$module_name = 'ACM_Accounting';
$listViewDefs[$module_name] = array(
'ARTICLEID' =>
array (
'width' => '10%',
'label' => 'LBL_ARTICLEID',
'default' => true,
'customCode'=> '<a href="#" >{$ARTICLEID} </a>',
),
'ARTICLENAME' =>
array (
'width' => '10%',
'label' => 'LBL_ARTICLENAME',
'default' => true,
'customCode'=> '<a href="#" >{$ARTICLENAME} </a>',
),
'QUOTENAME' =>
array (
'width' => '10%',
'label' => 'LBL_QUOTENAME',
'default' => true,
'link' => false,
'customCode'=> '<a href="#" >{$QUOTENAME} </a>',
),
'PROJECTNAME' =>
array (
'width' => '10%',
'label' => 'LBL_PROJECTNAME',
'default' => true,
'link' => false,
'customCode'=> '<a href="#" >{$PROJECTNAME} </a>',
),
'SUPPLIER_NAME' =>
array (
'width' => '10%',
'label' => 'LBL_SUPPLIER_NAME',
'default' => true,
'link' => false,
'customCode'=> '<a href="#" >{$SUPPLIER_NAME} </a>',
),
'SUPPLIER_DOCUMENT' =>
array (
'width' => '10%',
'label' => 'LBL_SUPPLIER_DOCUMENT',
'default' => true,
'link' => false,
),
'BACKBASECOST' =>
array (
'width' => '10%',
'label' => 'LBL_BACKBASECOST',
'default' => true,
'link' => false,
),
'NEGOTIATEDCOST' =>
array (
'width' => '10%',
'label' => 'LBL_NEGOTIATEDCOST',
'default' => true,
'link' => false,
),
'FINALCOST' =>
array (
'width' => '10%',
'label' => 'LBL_FINALCOST',
'default' => true,
'link' => false,
),
'TAX_PERC' =>
array (
'width' => '10%',
'label' => 'LBL_TAX_PERC',
'default' => true,
'link' => false,
),
'BACKPACKSALEPRICE' =>
array (
'width' => '10%',
'label' => 'LBL_BACKPACKSALEPRICE',
'default' => true,
'link' => false,
),
'FINALSALE_PRICE' =>
array (
'width' => '10%',
'label' => 'LBL_FINALSALE_PRICE',
'default' => true,
'link' => false,
),
'IMPORTDATE_ACCOUNTING' =>
array (
'width' => '10%',
'label' => 'LBL_IMPORTDATE_ACCOUNTING',
'default' => true,
'link' => false,
),
'IMPORT_STATUS' =>
array (
'width' => '10%',
'label' => 'LBL_IMPORT_STATUS',
'default' => true,
'link' => false,
),
'PRODUCTID' =>
array (
'width' => '10%',
'label' => 'LBL_PRODUCTID',
'default' => true,
),
);
and according to that i am getting the fields. Here i don't need to show the PRODUCTID in the file so i did default=>false but the relevant values are not coming but the table header i am getting in the top, i don't want that one also
can any one plz help me in that issue.
can any one help in this matter.


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks