Results 1 to 4 of 4

Thread: Change users My Pipeline Dashlet

  1. #1
    MJBVrijmoed is offline Sugar Community Member
    Join Date
    Sep 2007
    Posts
    20

    Default Change users My Pipeline Dashlet

    Hi,

    i want to change the configuration of my pipeline dashlet. Now it only looks at the current user. But i want a dashlet where I see the forecast of all the users together, or multiple users.


    Can this be done?

    Thanx

    - a new happy SugerCRM OS user -

  2. #2
    ARads is offline Junior Member
    Join Date
    Jun 2007
    Posts
    3

    Default Re: Change users My Pipeline Dashlet

    Question to the Sugar Team: is there a way in OS edition to be able to see the pipeline displaying all users in the homepage dashlet?

  3. #3
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Change users My Pipeline Dashlet

    To create an own Dashlet PipelineBySalesStage proceed as follows:

    1. Copy modules\Charts\Dashlets\MyPipelineBySalesStageDash let\* to custom\modules\Charts\Dashlets\AllPipelineBySalesS tageDashlet\*

    2. Rename alle files in custom\modules\Charts\Dashlets\PipelineBySalesStag eDashlet\ from MyPipeline* to AllPipeline*

    3. Open all 4 files and change alle words "MyPipeline*" to "AllPipeline*"

    4. In file PipelineBySalesStageDashlet.php change all words "_my_pipeline_" to "_all_pipeline_" and all words "LBL_MY_PIPELINE_FORM_TITLE" to "LBL_ALL_PIPELINE_FORM_TITLE"

    5. In file PipelineBySalesStageDashlet.php change line
    return parent::displayOptions() . $ss->fetch('modules/Charts/Dashlets/AllPipelineBySalesStageDashlet/AllPipelineBySalesStageConfigure.tpl');
    to
    return parent::displayOptions() . $ss->fetch('custom/modules/Charts/Dashlets/AllPipelineBySalesStageDashlet/AllPipelineBySalesStageConfigure.tpl');

    and line
    $this->loadLanguage('AllPipelineBySalesStageDashlet', 'modules/Charts/Dashlets/');
    to
    $this->loadLanguage('AllPipelineBySalesStageDashlet', 'custom/modules/Charts/Dashlets/');

    5. In file PipelineBySalesStageDashlet.php find this block

    PHP Code:
                if ($count>0) {
                    foreach (
    $new_ids as $the_id=>$the_name) {
                        
    $id[] = "'".$the_id."'";
                    }
                    
    $ids join(",",$id);
                    
    $where .= "opportunities.assigned_user_id IN ($ids) ";

                } 
    and comment it out or just delete it.

    PHP Code:
    /****** this should not be done:
                if ($count>0) {
                    foreach ($new_ids as $the_id=>$the_name) {
                        $id[] = "'".$the_id."'";
                    }
                    $ids = join(",",$id);
                    $where .= "opportunities.assigned_user_id IN ($ids) ";

                }
    *****/ 
    6. Create file custom/modules/Home/language/en_us.lang.php and write the following to this file:

    PHP Code:
    <?php
    $mod_strings
    ['LBL_ALL_PIPELINE_FORM_TITLE'] = 'Total Pipeline';
    ?>
    7. Now save all files and call "admin" - "repair" - "Rebuild Dashlets"

    8. Ready - just enyoi your new dashlet (I hope I did not mistype).

    Good luck
    hk
    Last edited by kuske; 2007-11-02 at 10:11 AM.

  4. #4
    MJBVrijmoed is offline Sugar Community Member
    Join Date
    Sep 2007
    Posts
    20

    Default Re: Change users My Pipeline Dashlet

    Thanks Kuske,

    i will try this next week.

    Thank you for your help, really appriciated.

    Martijn

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 2009-10-28, 10:21 AM
  2. Replies: 4
    Last Post: 2008-08-23, 02:20 AM
  3. Replies: 0
    Last Post: 2007-06-18, 08:04 PM
  4. Limiting users view of pipeline and leads
    By TravisUK in forum Installation and Upgrade Help
    Replies: 8
    Last Post: 2007-03-16, 12:18 AM
  5. default users - change time zone?
    By cgchris99 in forum General Discussion
    Replies: 2
    Last Post: 2006-06-01, 09:00 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
  •