Results 1 to 7 of 7

Thread: clickable field in ListView

  1. #1
    zaska's Avatar
    zaska is offline Senior Member
    Join Date
    Sep 2008
    Posts
    99

    Thumbs up clickable field in ListView

    Hi

    Can anyone give me some help to customize a template? For refference I'm using the "basic" template with removed "name" field in vardefs.php. In Edit and Detail view I have 2 fields - month (dropdown) and description. In ListView only "month". But that "month" in ListView is not clickable. How to make it a link to that record?

    Thanks

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

    Default Re: clickable field in ListView

    In the metadata of ListView (modules/<module_name>/metadata/listviewdefs.php or custom/modules/<module_name>/metadata/listviewdefs.php) put this field as link.

    'link' => true,


    I hope it helps
    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.

  3. #3
    zaska's Avatar
    zaska is offline Senior Member
    Join Date
    Sep 2008
    Posts
    99

    Default Re: clickable field in ListView

    It works
    Thanks

  4. #4
    xmvcnr is offline Junior Member
    Join Date
    Feb 2009
    Posts
    2

    Default Re: clickable field in ListView

    thank you that is making the field clickable within the Leads section (index.php?module=Leads&action=index)

    however it is NOT making the field clickable within the Dashlet (/index.php?module=Home&action=index)

    is there a different thing that needs to be done to make it clickable within a Dashlet?

    thanks.

  5. #5
    povd is offline Member
    Join Date
    Feb 2009
    Posts
    5

    Default Re: clickable field in ListView

    my guess you would need to do the same somwhere like
    modules/Leads/Dashlets/MyLeadsDashlet/MyLeadsDashlet.data.php
    or
    custom/modules/Leads/Dashlets/MyLeadsDashlet/MyLeadsDashlet.data.php

    good luck

  6. #6
    djmorton is offline Member
    Join Date
    Mar 2009
    Posts
    14

    Default Re: clickable field in ListView

    Thanks for this tip.

    I have this working now in the List View for the custom module - however in the subpanel that appears under Opportunities because of the 1 to Many relationship I configured - the field is not clickable.

    I tried to make the same change in the default.php file under

    \modules\obsrr_OBSResourceRequests\metadata\subpan els\default.php

    but that does not appear to work.

    Any advice would be appreciated. Thanks.

  7. #7
    djmorton is offline Member
    Join Date
    Mar 2009
    Posts
    14

    Default Re: clickable field in ListView

    Found some help in another thread with a reply from kbrill --

    I was able to put this into the /modules/MODULENAME/metadata/subpanels/default.php under the field I want linked.

    'widget_class' => 'SubPanelDetailViewLink',

    It works.

    e.g.

    'list_fields' =>
    array (
    'obs_rr_competency_dd' =>
    array (
    'width' => '10%',
    'vname' => 'LBL_OBS_RR_COMPETENCY_DD',
    'sortable' => false,
    'default' => true,
    'link' => true,
    'widget_class' => 'SubPanelDetailViewLink',
    ),

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Custom field in listview and subpanel
    By SanderMarechal in forum Developer Help
    Replies: 0
    Last Post: 2008-10-17, 02:03 PM
  2. Custom Module Relate Field doesn't show on ListView
    By fxbrandon in forum Developer Help
    Replies: 5
    Last Post: 2008-10-04, 10:05 AM
  3. Search by 'Relate To' field in ListView screen
    By Superman in forum Developer Help
    Replies: 4
    Last Post: 2008-03-09, 03:54 PM
  4. ListView 'Contact' field is linked to wrong record
    By leenwebb in forum Developer Help
    Replies: 4
    Last Post: 2007-02-19, 05:41 PM
  5. Adding field to Listview that lives in another table
    By leigh in forum Developer Help
    Replies: 5
    Last Post: 2006-10-01, 11:05 PM

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
  •