Results 1 to 6 of 6

Thread: Auto-refresh my pipeline dashlet

  1. #1
    jacekskowron is offline Sugar Community Member
    Join Date
    Dec 2007
    Posts
    27

    Default Auto-refresh my pipeline dashlet

    Hello.

    Could you help me and tell how can I make My PIpeline Dashlet on Home Tab to refresh automatically?

    Thanks for help in advance.



    Jacek Skowron

    Sugar CRM 4.5.1h

  2. #2
    sanjaykatiyar1's Avatar
    sanjaykatiyar1 is offline Sugar Community Member
    Join Date
    Feb 2006
    Location
    Bangalore
    Posts
    600

    Default Re: Auto-refresh my pipeline dashlet

    I have not checked but you can try the scheduler (available in the admin control panel)
    Sanjay Katiyar
    iPhone and Android solutions http://www.apptility.com

  3. #3
    amitshah is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    Ahmedabad, India
    Posts
    12

    Default Re: Auto-refresh my pipeline dashlet

    Hi

    I want same functionality in my CRM to auto refresh my alerts on dashlet. I have added following code in my dashlet file and works fine.

    PHP Code:
     /**
         * Displays the javascript for the dashlet
         * 
         * @return string javascript to use with this dashlet
         */
        
    function displayScript() {
            echo 
    '<script>
                setInterval(\'SUGAR.mySugar.retrieveDashlet("'
    .$this->id.'");\', 20000); 
                </script> '
    ;
        } 
    Cheers,

  4. #4
    amitshah is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    Ahmedabad, India
    Posts
    12

    Default Re: Auto-refresh my pipeline dashlet

    Hi All,

    I have added above code in my two dashlets. but in homepage both sections are overlapped and shown data in different dashlet. Means when contact dashlet reloaded than it is showing me first email data and after that showing me contact data.
    and vice versa.

    Any help would be highly appreciated.

  5. #5
    amitshah is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    Ahmedabad, India
    Posts
    12

    Default Re: Auto-refresh my pipeline dashlet

    I have fixed my below problem. This problem is related to Ajax. When Ajax got multiple request as same time it is giving output to wrong dashlet. Please add following code in retrieveDashlet function to avoid this problem.

    Code:
    	if(YAHOO.util.Connect.isCallInProgress(cObjGlobal)) 
    	{
    		ajaxStatus.hideStatus();
                    YAHOO.util.Connect.abort(cObjGlobal);
    		}
    	}
    Thanks

    Quote Originally Posted by amitshah
    Hi All,

    I have added above code in my two dashlets. but in homepage both sections are overlapped and shown data in different dashlet. Means when contact dashlet reloaded than it is showing me first email data and after that showing me contact data.
    and vice versa.

    Any help would be highly appreciated.

  6. #6
    livreiro is offline Junior Member
    Join Date
    May 2008
    Posts
    1

    Default Re: Auto-refresh my pipeline dashlet

    HI

    Could you be more especific on where to put the code, what files and position.

    another thing, is it possible to auto refresh every dashlet?

    Best Regards

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. My Pipeline - Auto Refresh
    By sarkle in forum Help
    Replies: 6
    Last Post: 2008-04-24, 06:10 AM
  2. Change users My Pipeline Dashlet
    By MJBVrijmoed in forum Help
    Replies: 3
    Last Post: 2007-11-18, 03:07 PM
  3. Auto refresh home
    By korazy in forum Developer Help
    Replies: 2
    Last Post: 2007-06-11, 02:56 AM
  4. Pipeline doesn't refresh
    By jayskersonic in forum Help
    Replies: 0
    Last Post: 2006-03-31, 03:38 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
  •