Results 1 to 4 of 4

Thread: customize ListView

  1. #1
    biggie_mac is offline Junior Member
    Join Date
    Apr 2011
    Posts
    2

    Default customize ListView

    I'm having some problems overwriting/customizing the list view of a subpanel. Long story short, I'm trying to populate a subpanel with data from a webservice instead of from mysql. So instead of performing a query on mysql database I need to perform a web service call and list that data instead. I've tried several ways of achieving this in an 'upgrade safe' manner but haven't succeeded. Eventually I had to overwrite the process_dynamic_listview_rows method in ListView.php and replace the $data variable with the data from the web service. Obviously this is not the best solution but at this point I found no other way of doing this. Is there an alternative solution that can be achieved without overwriting ListView.php?

    Thanks in advance.

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

    Default Re: customize ListView

    I used the logic_hook "process_record" for such a task.
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


  3. #3
    biggie_mac is offline Junior Member
    Join Date
    Apr 2011
    Posts
    2

    Default Re: customize ListView

    If I'm not mistaken, the process_record hook 'affects' the rows retrieved from the query. In my case, the query returns nothing as I have no data in the database for that specific subpanel, that's why I'm trying to get the data from the web service. Though I am not entirely sure about this as I am relatively new to Sugar. So if no data is retrieved from the database, can this still be done using the process_record hook?

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

    Default Re: customize ListView

    oh, if all the bean data is coming from a webservice then you should write own retrieve functions in your bean file.
    I supposed you have only some fields from the webservice.
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Customize in the listview
    By nanduruchi in forum Developer Help
    Replies: 4
    Last Post: 2011-01-17, 12:03 PM
  2. Replies: 2
    Last Post: 2010-06-07, 09:13 AM
  3. customize listview of module
    By akkimca in forum Help
    Replies: 1
    Last Post: 2009-08-01, 09:08 AM
  4. Customize Activities ListView SubPanel
    By mswaim1 in forum Help
    Replies: 4
    Last Post: 2008-06-05, 07:46 PM
  5. Replies: 3
    Last Post: 2008-06-03, 02:31 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
  •