Results 1 to 6 of 6

Thread: How to change the fields displayed in Additional Details window of ListView?

  1. #1
    sagarladdha is offline Sugar Community Member
    Join Date
    Oct 2006
    Posts
    70

    Default How to change the fields displayed in Additional Details window of ListView?

    Hi,

    I want to change the fields displayed in the "additional details" window of ListView. When we are viewing the listview, then, before the name of every entry, there is a small arrow pointing downwards. When we take the mouse over this arrow, we get a small window titled "Additional Details". I want to change the fields that are displayed in this window.

    Can anyone help in this regard.

    Thanks in advance.

    Sagar Laddha
    India

  2. #2
    sagarladdha is offline Sugar Community Member
    Join Date
    Oct 2006
    Posts
    70

    Default Re: How to change the fields displayed in Additional Details window of ListView?

    Quote Originally Posted by sagarladdha
    Hi,

    I want to change the fields displayed in the "additional details" window of ListView. When we are viewing the listview, then, before the name of every entry, there is a small arrow pointing downwards. When we take the mouse over this arrow, we get a small window titled "Additional Details". I want to change the fields that are displayed in this window.

    Can anyone help in this regard.

    Thanks in advance.

    Sagar Laddha
    India

    OK. I have got the answer.

  3. #3
    tomkerswill is offline Sugar Community Member
    Join Date
    Jul 2006
    Posts
    58

    Default Re: How to change the fields displayed in Additional Details window of ListView?

    Can you share the answer with us please? :-)
    Tom

  4. #4
    sagarladdha is offline Sugar Community Member
    Join Date
    Oct 2006
    Posts
    70

    Default Re: How to change the fields displayed in Additional Details window of ListView?

    Quote Originally Posted by tomkerswill
    Can you share the answer with us please? :-)
    Tom

    Sure.


    1. Go to the folder of the module whose “Additional Details” window fields are to be changed.

    2. Go to the metadata folder in this module.

    3. Open the file named “additionalDetails.php”.
    Here, we can see the list of fields displayed in the “Additional Details” window of that module.

    4. Add the following line of code in this file.

    if(!empty($fields['XYZ'])) $overlib_string .= '<b>'. $mod_strings['LBL_XYZ'] . '</b> ' . $fields['XYZ'] . '<br>';


    Here, XYZ is the field name (not the label name). The condition in the IF loop checks if the field is filled or not. If it is filled then, its value will be displayed with the field label. In this example, LBL_XYZ is the field label.

    5. Save the file and run the code.

    This worked for me. Try it out.

  5. #5
    tomkerswill is offline Sugar Community Member
    Join Date
    Jul 2006
    Posts
    58

    Default Re: How to change the fields displayed in Additional Details window of ListView?

    Hey Sagar! Thanks so much for this - that's perfect,

    Tom :-)

  6. #6
    fabiotpr is offline Sugar Community Member
    Join Date
    Jan 2008
    Posts
    13

    Default Re: How to change the fields displayed in Additional Details window of ListView?

    Sorry for reopening this old thread, but what if I have to add into Additional Detail popup fields in table opportunities_cstm instead opportunities?

    Thanks.

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
  •