Results 1 to 3 of 3

Thread: Where is custom ListView.html?

  1. #1
    manish.joshi is offline Sugar Community Member
    Join Date
    Mar 2007
    Posts
    33

    Default Where is custom ListView.html?

    Dear team,

    I added few custom field columns in the list view of Cases using studio and it worked absolutely fine. Now I need to edit something which I can do in the source html file only (setting up a link for the detail view on one of the custom fields). But when I open the modules/Cases/ListView.html I see no reference to the fields I added from the Studio. In fact its as original as it was before the changes. Also there isn't any corresponding file in custom/working/modules/Cases folder.

    Where can I see the ListView.html with my changes?

    Regards,
    Manish

    My environment is:
    Linux 2.6.19.2-grsec-sg5
    Sugar OpenSource Version 4.5.1e (Build 1049)
    MySQL Server version: 5.0.27
    Apache 1.3.37 (Unix)
    PHP 5.0.5
    Last edited by manish.joshi; 2011-04-30 at 11:18 PM.

  2. #2
    dreverri is offline Advanced Support Engineer
    Join Date
    Jul 2007
    Posts
    11

    Default Re: Where is custom ListView.html?

    Changes to ListViews are saved as an array in the file;
    "<sugar_root>/custom/modules/<module_name>/metadata/listviewdefs.php

    You can create a link in the ListView using the 'link' element. For example to add a link to the assigned user of an Account you can make the following changes to listviewdefs.php:

    'ASSIGNED_USER_NAME' =>
    array (
    'width' => '2',
    'label' => 'LBL_LIST_ASSIGNED_USER',
    'id' => 'ASSIGNED_USER_ID',
    'module' => 'Employees',
    'link' => true,
    'default' => true,
    'related_fields' =>
    array (
    0 => 'assigned_user_id',
    ),
    ),

  3. #3
    manish.joshi is offline Sugar Community Member
    Join Date
    Mar 2007
    Posts
    33

    Default Re: Where is custom ListView.html?

    Thankyou so much. It works like a charm.

    Thanks again!
    ________
    Motorcycle Tires
    Last edited by manish.joshi; 2011-04-30 at 11:18 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Saving and updating custom fields data
    By jones70 in forum Developer Help
    Replies: 2
    Last Post: 2011-10-05, 06:10 AM
  2. upgraded to 4.5.1e, received "Metadata for table tracker does not exist"
    By sfgeorge in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-09-03, 02:24 PM
  3. Replies: 0
    Last Post: 2006-12-20, 11:39 PM
  4. Asterisk Patch 1.1.0 Crash on logon
    By skyracer in forum Help
    Replies: 6
    Last Post: 2006-07-08, 06:30 AM
  5. Replies: 7
    Last Post: 2006-06-06, 07:56 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
  •