Results 1 to 1 of 1

Thread: New Module

  1. #1
    revanth is offline Junior Member
    Join Date
    Mar 2011
    Posts
    2

    Default New Module

    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.
    Last edited by revanth; 2011-03-02 at 06:14 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •