Results 1 to 6 of 6

Thread: Add a field in subpanel listview

  1. #1
    fjhuerte is offline Senior Member
    Join Date
    Jun 2008
    Posts
    38

    Default Add a field in subpanel listview

    Hi everyone,

    I need to add a column in the subpanel listview for a custom module..
    The value of the field is taken from the concatenated values of other fields in db.
    However what I would like is that the field won't be added in the db.
    Is this possible?

    any help will be greatly appreciated

    thanks!
    fjhuerte
    Last edited by fjhuerte; 2008-08-26 at 09:39 AM.

  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: Add a field in subpanel listview

    Hi fjhuerte

    Is this field saved on database?
    If yes so there is no necessary trick to make it work in SubPanel ListView, just add it through Studio.
    If not you can use the logic_hook process_record to concatenate the two fields creating the value for this new one.

    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
    fjhuerte is offline Senior Member
    Join Date
    Jun 2008
    Posts
    38

    Default Re: Add a field in subpanel listview

    Hi Andopes,

    thanks for the reply.
    Can you please elaborate more on your suggestion?
    Anyways the field is not saved in database.
    Just a computed field that concatenates other fields and be displayed in subpanel listview.


    Thanks!
    fjhuerte

  4. #4
    salimmohd82 is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    39

    Default Re: Add a field in subpanel listview

    Hi fjhuerte

    Chk this, this may help u,

    http://www.sugarcrm.com/forums/showthread.php?t=31490

    salim

  5. #5
    fjhuerte is offline Senior Member
    Join Date
    Jun 2008
    Posts
    38

    Default Re: Add a field in subpanel listview

    Hi everyone,

    thanks for the replies..
    I have added the field in subpanel listview by editing the default.php file in subpanel..
    the column with concatenated values from other fields have been displayed.
    but the source fields also are displayed in the subpanel listview..
    any idea how to hide columns in subpanel listview?
    I have done 'usage' => 'query-only' but still appears

    thanks!
    fjhuerte

  6. #6
    fjhuerte is offline Senior Member
    Join Date
    Jun 2008
    Posts
    38

    Default Re: Add a field in subpanel listview

    problem solved..
    thanks everyone!

    fjhuerte

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Custom Notes Field and History Subpanel Issues
    By hunger in forum Developer Help
    Replies: 7
    Last Post: 2009-07-04, 12:23 AM
  2. HOWTO - Hack Sugar to support related module info in subpanel (one-many)
    By kenneth.thorman in forum Developer Tutorials
    Replies: 35
    Last Post: 2008-06-10, 07:51 AM
  3. No email field for Account & Cases listview
    By jason.bazalar in forum Help
    Replies: 2
    Last Post: 2008-05-16, 01:52 AM
  4. Replies: 5
    Last Post: 2008-02-11, 02:50 PM
  5. Replies: 0
    Last Post: 2007-04-25, 06:16 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
  •