Results 1 to 2 of 2

Thread: Custom data for a SubPanel without using Hooks?

  1. #1
    JasonDavisFL Guest

    Default Custom data for a SubPanel without using Hooks?

    Is there anyway to modify the content shown in a Subpanel without relying on Action Hooks?

    Right now to edit content for a Subpanel field I have to use the hooks like this...

    And in the Class method that I assign the Hook to call I can then change a field in the Subpanel like this...

    $bean->name = '<a href="/index.php?action=ajaxui#ajaxUILoc=index.php%3Fmodule%3Dproje_Web_Project_Tasks%26action%3DDetailView%26record%3D'.$bean->id.'" rel="popover" data-content="'.$bean->description.'" data-original-title="">'.$bean->name.'</a>';
    The main and major problem we have with this method is it works great until you do either of these....

    1) Add an item using the Quick Create form
    2) Change a page using the Subpanel paging buttons

    In either case, it reloads the Subpanel data without running this hook code on the data, so the result is pretty major as the Subpanel fields that you have edited are no longer edited and show up as normal.

    I know that
    has a much more reliable and flexible method for editing it's content using the

    So I am hoping there is a similar method to edit Subpanel data and have it always apply the edits to that data? From what I have seen in my research so far, the only solution that will work as expected all the time, is to make a completely new
    Custom Field Type

    I am really hoping that is not the ONLY way as that is a major pain to do and just doesn't feel right when there are easy ways to edit everything else.

    Does anyone have any ideas, suggestions, tips, help, please do share with me on this matter?

  2. #2
    ashdwi1's Avatar
    ashdwi1 is offline Sugar Community Member
    Join Date
    May 2008

    Default Re: Custom data for a SubPanel without using Hooks?

    can you try view.quickcreate.php or set forsubpanel to true in view.edit.php?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Custom Data In Subpanel Quick Create
    By kebabman in forum Developer Help
    Replies: 4
    Last Post: 2013-01-29, 03:00 PM
  2. History Subpanel Custom Field Data Missing
    By lmsservices in forum Developer Help
    Replies: 13
    Last Post: 2012-10-23, 02:44 AM
  3. Subpanel showing incomplete data for custom module.
    By psabbate in forum Developer Help
    Replies: 0
    Last Post: 2012-03-20, 03:13 PM
  4. Passing Data To Custom Field in SubPanel
    By banning in forum Help
    Replies: 1
    Last Post: 2010-07-23, 02:03 PM
  5. SubPanel Data with Custom Module
    By waqarsheikh in forum Developer Help
    Replies: 2
    Last Post: 2010-01-26, 04:54 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts