Results 1 to 7 of 7

Thread: Blank Rows in My Leads Dashlet

  1. #1
    cramermp is offline Sugar Community Member
    Join Date
    Jan 2011
    Posts
    18

    Default Blank Rows in My Leads Dashlet

    Hey all. I'm working with SugarCRM CE 6.1.0.

    I created a custom dashlet called "aging leads" that displays unconverted leads over 30 days old, sorted descending by age (which is a custom field calculated nightly with a SQL routine). I created the dashlet by copying the MyLeadsDashlet and modifying the values and file names and such.

    The thing works great. Loads up with all the columns I specify and sorts great, filters appropriately by age, everything.

    The problem is, when I add in the "My Leads" dashlet, either one or the other (My Leads or Aging Leads, whichever one comes last) loads up with blank rows. It doesn't behave consistently, though: sometimes, it loads up with no links. Sometimes a column is just missing. If I click the refresh dashlet button in the top right, the dashlet loads properly and displays like it should. Pretty annoying for my users, though.

    Any advice on how to make these two dashlets work in harmony?

  2. #2
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Blank Rows in My Leads Dashlet

    I dont use CE as much as I should so I might be wrong on this but what I would do it to build a module with module builder that matches your module (fields, layouts and such) and then deploy it and then copy in your custom code. It should create a dashlet for you that should work.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  3. #3
    cramermp is offline Sugar Community Member
    Join Date
    Jan 2011
    Posts
    18

    Default Re: Blank Rows in My Leads Dashlet

    Forgive me for being ignorant, but isn't what you're describing essentially what I'm doing by copying and modifying the copy of the existing MyLeads dashlet?

    To be more clear, I'm not using a custom module at all, just a custom dashlet for a default module that comes packaged with the product: "Leads."

    I'll give it a try anyway; I have a module I built into the system a while back; I could grab its dashlet, but the idea is to use the information in the Leads module.

  4. #4
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Blank Rows in My Leads Dashlet

    Not as much as you might think. It should like somehow your two dashlets are getting confused as they think they are the same dashlet (it might be something else, without looking its just an educated guess). If you use a dashlet created for a custom module this can't happen.

    I could probably go into the code and figure it out if you want to send me your code, I am sure its something easy but hard to find, it always is.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  5. #5
    cramermp is offline Sugar Community Member
    Join Date
    Jan 2011
    Posts
    18

    Default Re: Blank Rows in My Leads Dashlet

    After futzing with this stuff for hours...

    I discovered that this problem is not limited to my custom code. In fact, it seems I have a bigger problem: Multiple dashlets of the same type break each other!

    I added two "My Accounts" dashlets, two "My Leads" dashlets, etc. The error is consistent, but it's different for each dashlet. If I have two My Accounts dashlets, there are no columns displayed at all on the second dashlet. If I use my "aging leads" dashlet I get a couple of custom columns to display.

    So one of the pieces of base functionality broke. I have no idea how. Any idea on where I can start looking for where this error is? I have another install of the same version and the problem does not occur there.
    Last edited by cramermp; 2011-06-13 at 07:01 AM. Reason: Unclear / inaccurate information

  6. #6
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,113

    Default Re: Blank Rows in My Leads Dashlet

    Hello,

    Let me know the SugarCRM version you are using.

    If it is <= 6.1 version, change following line in include/Dashlets/DashletGeneric.php in function loadCustomMetadata

    PHP Code:
    //require_once($customMetadate);
    require($customMetadate); 
    Thumbs up.

    Skype ID - david__boris

    SugarForge Projects:

    WYSIWYG now in studio!(Version 1.1 is out now!)

    Sugar Feeds on your personalized home pages like iGoogle, My Yahoo!, etc.

    Fab Tools! > Dashlet Not Followed Opportunities for past six Months

  7. #7
    cramermp is offline Sugar Community Member
    Join Date
    Jan 2011
    Posts
    18

    Default Re: Blank Rows in My Leads Dashlet

    I'm running 6.1 CE.

    Amazing! This works great! Thanks for the help! That's a huge monkey off my back.

    I can't believe it was that simple. And then again, I can.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Dashlet: show rows only if field has certain values
    By best_kobe_beef in forum Developer Help
    Replies: 1
    Last Post: 2010-11-04, 01:23 PM
  2. Add a Rows and Columns Report to a Dashlet
    By chrislynch8 in forum General Discussion
    Replies: 0
    Last Post: 2010-06-22, 12:58 PM
  3. Blank rows in ListView
    By jezz in forum Help
    Replies: 2
    Last Post: 2008-01-24, 11:15 PM
  4. Subpanel data blank rows?
    By kheald in forum Developer Help
    Replies: 1
    Last Post: 2007-09-14, 12:19 AM
  5. Dashlet - My Opportunities - More than 10 rows
    By simonburgoyne in forum General Discussion
    Replies: 0
    Last Post: 2007-03-29, 06:13 AM

Tags for this Thread

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
  •