Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Custom Module List View

  1. #1
    cagatay is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    Turkiye
    Posts
    72

    Default Custom Module List View

    Hi all

    Below picture is from my custom module's list view

    I cant solve that; items/titles of this modüle in list view are not ACTIVE ?

    I mean they are not clickable (not a link)

    Any idea?

    Regards


  2. #2
    cagatay is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    Turkiye
    Posts
    72

    Unhappy Re: Custom Module List View

    No Idea ?


  3. #3
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Custom Module List View

    Hi, cagatay.

    How did you customize the ListView of your module?
    Perhaps I can help you knowing exactly what did you do.

    --
    André Lopes
    Lâmpada Global Services
    Rua Bela Cintra, 299 conjunto. 51
    São Paulo, SP 01415-000
    tel1. 55 11 3237-3110
    cel. 55 11 7636-5859
    e-mail: info@lampadacrm.com.br

  4. #4
    dlorenzetti's Avatar
    dlorenzetti is offline Sugar Community Member
    Join Date
    Jan 2008
    Location
    São Paulo, Brasil
    Posts
    189

    Default Re: Custom Module List View

    Hi cagatay,

    In this file:
    modules/<MODULE_NAME>/metadata/ listviewdefs.php
    you can find the fields that should be display in ListView, and in the array have a parameter: 'link' => true/false, for each field. is just you put true.

    i.e.:

    'NAME' => array(
    'width' => '40',
    'label' => 'LBL_NAME',
    'link' => true,
    'default' => true,
    ),


    For Studio I think don't is possible change this.

    I Hold help you.
    Diego Lorenzetti
    Lampada Global Services - Open Source Solutions
    Phone: +55 11 3237-3110
    Email: equipe@lampadaglobal.com
    Site: www.lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

  5. #5
    cagatay is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    Turkiye
    Posts
    72

    Default Re: Custom Module List View

    For andopes:

    I built my modüle in MODULE BUILDER

    And then added field and developed layouts (edit+list+searc etc.) in STUDIO

    Then entered to my module and filled all required fields..

    Thats all...


    For dlorenzetti:
    I have opened modules/<MODULE_NAME>/metadata/ listviewdefs.php

    and it is TRUE what you pointed out....

    'NAME' => array(
    'width' => '40',
    'label' => 'LBL_NAME',
    'link' => true,
    'default' => true,
    ),

    Below is my listviewdefs.php


    Nothing changed yet

    Code:
    $module_name = 'GF_gorusmeformu';
    $OBJECT_NAME = 'GF_GORUSMEFORMU';
    $listViewDefs[$module_name] = array(
    	'NAME' => array(
    		'width' => '40', 
    		'label' => 'LBL_ACCOUNT_NAME', 
    		'link' => true,
            'default' => true), 
    	'BILLING_ADDRESS_CITY' => array(
    		'width' => '10', 
    		'label' => 'LBL_CITY',
            'default' => true 
    		),
    	'PHONE_OFFICE' => array(
    		'width' => '10', 
    		'label' => 'LBL_PHONE',
            'default' => true),
        $OBJECT_NAME . '_TYPE' => array(
            'width' => '10', 
            'label' => 'LBL_TYPE'),
        'INDUSTRY' => array(
            'width' => '10', 
            'label' => 'LBL_INDUSTRY'),
        'ANNUAL_REVENUE' => array(
            'width' => '10', 
            'label' => 'LBL_ANNUAL_REVENUE'),
        'PHONE_FAX' => array(
            'width' => '10', 
            'label' => 'LBL_PHONE_FAX'),
        'BILLING_ADDRESS_STREET' => array(
            'width' => '15', 
            'label' => 'LBL_BILLING_ADDRESS_STREET'),
        'BILLING_ADDRESS_STATE' => array(
            'width' => '7', 
            'label' => 'LBL_BILLING_ADDRESS_STATE'),
        'BILLING_ADDRESS_POSTALCODE' => array(
            'width' => '10', 
            'label' => 'LBL_BILLING_ADDRESS_POSTALCODE'),
        'BILLING_ADDRESS_COUNTRY' => array(
            'width' => '10', 
            'label' => 'LBL_BILLING_ADDRESS_COUNTRY'),
        'SHIPPING_ADDRESS_STREET' => array(
            'width' => '15', 
            'label' => 'LBL_SHIPPING_ADDRESS_STREET'),
        'SHIPPING_ADDRESS_CITY' => array(
            'width' => '10', 
            'label' => 'LBL_SHIPPING_ADDRESS_CITY'),
        'SHIPPING_ADDRESS_STATE' => array(
            'width' => '7', 
            'label' => 'LBL_SHIPPING_ADDRESS_STATE'),
        'SHIPPING_ADDRESS_POSTALCODE' => array(
            'width' => '10', 
            'label' => 'LBL_SHIPPING_ADDRESS_POSTALCODE'),
        'SHIPPING_ADDRESS_COUNTRY' => array(
            'width' => '10', 
            'label' => 'LBL_SHIPPING_ADDRESS_COUNTRY'),
        'PHONE_ALTERNATE' => array(
            'width' => '10', 
            'label' => 'LBL_PHONE_ALT'),
        'WEBSITE' => array(
            'width' => '10', 
            'label' => 'LBL_WEBSITE'),
        'OWNERSHIP' => array(
            'width' => '10', 
            'label' => 'LBL_OWNERSHIP'),
        'EMPLOYEES' => array(
            'width' => '10', 
            'label' => 'LBL_EMPLOYEES'),
        'TICKER_SYMBOL' => array(
            'width' => '10', 
            'label' => 'LBL_TICKER_SYMBOL'),
       
    
    
    
    
    
    
        'ASSIGNED_USER_NAME' => array(
            'width' => '2', 
            'label' => 'LBL_ASSIGNED_USER',
            'default' => true),
       
    );
    ?>

  6. #6
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Custom Module List View

    Hi, cagatay.

    try to configure your sugar as developer mode:
    Go to admin guide, System Settings, and check the developer mode.

    Cheers

    --
    André Lopes
    Lâmpada Global Services
    Rua Bela Cintra, 299 conjunto. 51
    São Paulo, SP 01415-000
    tel1. 55 11 3237-3110
    cel. 55 11 7636-5859
    e-mail: info@lampadacrm.com.br

  7. #7
    cagatay is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    Turkiye
    Posts
    72

    Default Re: Custom Module List View

    Dear andopes

    I did what you said...(checked developer mode)

    Then clear all caches.

    List view is still same as my picture above

  8. #8
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Custom Module List View

    Hi, cagatay.

    Can you provide us the vardefs and listviewdefs from your custom module?

    --
    André Lopes
    Lâmpada Global Services
    Rua Bela Cintra, 299 conjunto. 51
    São Paulo, SP 01415-000
    tel1. 55 11 3237-3110
    cel. 55 11 7636-5859
    e-mail: info@lampadacrm.com.br

  9. #9
    cagatay is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    Turkiye
    Posts
    72

    Default Re: Custom Module List View

    Here they are
    Attached Files Attached Files

  10. #10
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Custom Module List View

    Hi, cagatay.

    The field without link shouldn't be the kurumadi?

    --
    André Lopes
    Lâmpada Global Services
    Rua Bela Cintra, 299 conjunto. 51
    São Paulo, SP 01415-000
    tel1. 55 11 3237-3110
    cel. 55 11 7636-5859
    e-mail: info@lampadacrm.com.br

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Do not Delete a Custom Module from the file system..
    By cjohnston in forum General Discussion
    Replies: 0
    Last Post: 2008-01-11, 04:40 PM
  2. Replies: 2
    Last Post: 2007-08-14, 08:41 PM
  3. Replies: 0
    Last Post: 2007-08-09, 06:34 PM
  4. Replies: 7
    Last Post: 2006-09-25, 08:17 AM

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
  •