Results 1 to 5 of 5

Thread: Tracker bar - how to set name of module

  1. #1
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Tracker bar - how to set name of module

    Hi,

    I created a custom module of a Contact type because I needed hte address information, but I do not need the name fieldI have another field which is a number. When I create a record in the last viewed/tracker it only shows an icon and no name.

    In the tracker table the name it shows in item_summary how can I say use this field for the item_summary??

    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  2. #2
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Tracker bar - how to set name of module

    Hey Chris,

    In your module bean add the following function:
    PHP Code:
        function get_summary_text()
        {
            return 
    "$this->name";
        } 
    Simply change the return string to what you want displayed on the tracker bar.

    Good luck!
    Jason

  3. #3
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Re: Tracker bar - how to set name of module

    This might be a stupid question but what is my module bean for a custom module, I do not have any files that extend the sugarbean????

    Do I have to create this file?

    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  4. #4
    eescribano's Avatar
    eescribano is offline Senior Member
    Join Date
    Mar 2009
    Location
    Netherlands
    Posts
    85

    Default Re: Tracker bar - how to set name of module

    {name_module}.php in the case of Accounts would be Accounts.php

    You might find that there is also a php called {name_module}_sugar.php

    You have to put your code inside the firs one.

    This is the example code:
    PHP Code:
    require_once('modules/{module_name}/{module_name}_sugar.php');
    class {
    module_name} extends {module_name}_sugar {
        
        function {
    module_name}(){    
            
    parent::{module_name}_sugar();
        }
        function 
    get_summary_text(){
            return 
    $this->{field_name_you_want_the_title};
        }

    Elisabeth Escribano
    Webdeveloper

    MADCAP verademing in ict

    e.escribano@madcap.nl

    Schapedrift 89
    3371 JJ Hardinxveld-Giessendam
    Netherlands
    Tel 088 99 088 99
    Fax 088 99 088 98

    www.madcap.nl

  5. #5
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Re: Tracker bar - how to set name of module

    Hi Thats perfect, I have it working now.

    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 2009-07-02, 01:57 PM
  2. Modification to bug tracker module
    By yoyosupercat in forum General Discussion
    Replies: 1
    Last Post: 2009-06-25, 09:45 AM
  3. Replies: 2
    Last Post: 2007-08-02, 04:54 PM
  4. Tracker module?
    By SekShunAte in forum Developer Help
    Replies: 0
    Last Post: 2007-07-25, 03:05 PM
  5. problem reporting a bug in Bug Tracker module
    By roysterphil in forum Help
    Replies: 1
    Last Post: 2006-11-28, 07:41 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
  •