Results 1 to 4 of 4

Thread: Clicking Links in List View

  1. #1
    kire23 is offline Junior Member
    Join Date
    Jun 2009
    Location
    Heber City, Utah
    Posts
    1

    Default Clicking Links in List View

    I'm trying to make content clickable in the List View of the Accounts module. Basically I want it to perform just like it does when you go to the Detail View and click on the value in the "Website" field - it takes the user to the website. I want to do the same thing but in the List View using my own custom field.

    First I've created a custom field.. does it matter what data type it is? No matter what data type I select, the data that's displayed in the list view is the raw data I've entered - all HTML is parsed out. If I select HTML as the data type, the field doesn't show up as an option to make visible in Studio. Both data types "Link" and "TextArea" do the same thing, show the content but nothing is clickable. I've even tried modifying the "Website" field to contain the data I need but once again, when it's displayed in the List View it's not clickable. However it is clickable in the Detail View.

    What am I doing wrong? It seems like such a simple problem....

    I'm using Sugar Community Edition 5.2

  2. #2
    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: Clicking Links in List View

    You need to implement a customCode on website field at the listviewdefs.php

    Have a look at modules/Notes/metadata/listviewdefs.php

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@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.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    santiagomunez82 is offline Junior Member
    Join Date
    Feb 2009
    Posts
    2

    Default Re: Clicking Links in List View

    1)I created 1 custom field in a module in 5.2 v Community Edition. How can i make link on this custom field in the module's listview?when i clink on this field in module's listview,that record's detailview should open.


    2)In 5.2 where do these custom fields gets saved? Then i created a relation of this new module to Accounts.Trying to edit Account's subpanel for that module the labels of the new custom fields donot change even after editting and clicking to save and deploy.

    Please help............

  4. #4
    cefladental's Avatar
    cefladental is offline Sugar Community Member
    Join Date
    Jan 2010
    Location
    Charlotte, NC
    Posts
    51

    Default Re: Clicking Links in List View

    Sugar Enterprise --

    I have tried the above steps but it doesn't seem to be working. I created a custom module for web site links and I want the links to be clickable in list view.

    I added the following code to listviewdefs.php in my module's metadata folder.

    Code:
      'ADDRESS' =>
      array (
        'type' => 'url',
        'label' => 'LBL_ADDRESS',
        'width' => '10%',
        'default' => true,
        'link' => true,
        'customCode' => '<a href="{$ADDRESS}" >{$ADDRESS}</a>',  <==added this line
      ),
    Are my variables that represent the web address correct, or wrong?

    Thanks,
    Brett

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. edited lead list view -- lost links to lead details
    By pjw28 in forum General Discussion
    Replies: 1
    Last Post: 2009-03-19, 04:14 PM
  2. Replies: 2
    Last Post: 2006-08-19, 12:00 PM
  3. Clicking email links not passing parent ID
    By dakman1 in forum Developer Help
    Replies: 2
    Last Post: 2006-03-15, 10:12 PM
  4. Replies: 0
    Last Post: 2005-10-16, 02:55 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
  •