Page 4 of 4 FirstFirst 1234
Results 31 to 36 of 36

Thread: HOWTO - Hack Sugar to support related module info in subpanel (one-many)

  1. #31
    kenneth.thorman is offline Sugar Community Member
    Join Date
    Oct 2007
    Posts
    191

    Default Re: HOWTO - Hack Sugar to support related module info in subpanel (one-many)

    Updating main post with new infomation due to release 5.0.0a

  2. #32
    vvanio's Avatar
    vvanio is offline Sugar Community Member
    Join Date
    Mar 2007
    Location
    São Paulo - Brasil
    Posts
    17

    Default Re: HOWTO - Hack Sugar to support related module info in subpanel (one-many)

    Hello...

    Assuming that your vardefs is defined this way:

    ...
    'fields'=>array (
    'assigned_case_name' =>
    array (
    'required' => '1',
    'source' => 'non-db',
    'name' => 'assigned_case_name',
    'vname' => 'LBL_ASSIGNED_CASE_NAME',
    'type' => 'relate',
    'massupdate' => 0,
    'comments' => '',
    'help' => '',
    'duplicate_merge' => 'disabled',
    'duplicate_merge_dom_value' => 0,
    'audited' => 1,
    'reportable' => 0,
    'len' => '255',
    'id_name' => 'assigned_case_id',
    'ext2' => 'Cases',
    'module' => 'Cases',
    'studio' => 'visible',
    ),
    'assigned_case_id' =>
    array (
    'required' => false,
    'name' => 'assigned_case_id',
    'vname' => '',
    'type' => 'id',
    'massupdate' => 0,
    'comments' => '',
    'help' => '',
    'duplicate_merge' => 'disabled',
    'duplicate_merge_dom_value' => 0,
    'audited' => 0,
    'reportable' => 0,
    'len' => 36,
    ),
    ),
    ...

    modify module/metadata/subpanels/default.php, like the example below:

    ...
    'list_fields' =>
    array (
    'assigned_tema_name' =>
    array (
    'name' => 'assigned_case_name',
    'vname' => 'LBL_ASSIGNED_CASE_NAME',
    'width' => '15%',
    'module' => 'Cases',
    'target_record_key' => 'assigned_case_id',
    'target_module' => 'Cases',
    'widget_class' => 'SubPanelDetailViewLink',
    'sortable'=>false,
    ),
    'assigned_case_id' =>
    array (
    'name' => 'assigned_case_id',
    'usage'=>'query_only',
    ),
    ...
    ),
    ...


    That's all folks...
    Last edited by vvanio; 2011-08-22 at 08:42 PM.
    Vânio Vieira
    Cálix - Sistemas de Informação
    www.calixnet.com.br
    (+55 11) 4221-8715
    (+55 11) 3323-6156
    (+55 11) 8019-2477
    vanio.vieira@calixnet.com.br


  3. #33
    Kalendrinn is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    200

    Default Re: HOWTO - Hack Sugar to support related module info in subpanel (one-many)

    Thank you for that post, I think that's exactly what I was talking about with modifying the subpanel instead of the core code. You should be able to make it upgrade-safe by moving the modifications to the /custom directory (under the appropriate subdirectories of course). I just haven't had time to work it out.
    Win2k3
    SugarCE v5b
    IIS 6
    PHP 5.2.3
    MySQL 5.0.27-community

  4. #34
    kenneth.thorman is offline Sugar Community Member
    Join Date
    Oct 2007
    Posts
    191

    Default Re: HOWTO - Hack Sugar to support related module info in subpanel (one-many)

    Thank you very much for the input.

    I have attempted using the supplied code, I have not yet been able to achieve the results I would like but I will keep on trying. I will post an update when I get there.

    Regards
    Ken

  5. #35
    kenneth.thorman is offline Sugar Community Member
    Join Date
    Oct 2007
    Posts
    191

    Default Re: HOWTO - Hack Sugar to support related module info in subpanel (one-many)

    I have been unable to get the other suggested ways to work so I have been using the hack fix that I outlines in this thread for different modules. If anyone need an installable modules that does this for you from SugarCrm 5.0.0, 5.0.0a, 5.0.0b, 5.0.0c and 5.0.0e they can be found here (https://sourceforge.net/project/show...roup_id=210096). There are also some other modules that might be of interest.

  6. #36
    kenneth.thorman is offline Sugar Community Member
    Join Date
    Oct 2007
    Posts
    191

    Default Re: HOWTO - Hack Sugar to support related module info in subpanel (one-many)

    This can now be downloaded as an installable SugarCrm module from sourceforge. Please note that this module contains 5 different hacks to the Sugar core. So please read the release notes first.

    https://sourceforge.net/project/show...kage_id=261293

Page 4 of 4 FirstFirst 1234

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Probleme Subpanel lors duplication d'un module
    By holyfire in forum Français
    Replies: 1
    Last Post: 2007-06-27, 07:08 AM
  2. IMAP and CURL not found
    By khinester in forum Help
    Replies: 10
    Last Post: 2006-10-31, 06:24 AM
  3. Cannot Login
    By Dillon in forum Help
    Replies: 16
    Last Post: 2004-10-13, 02:52 AM

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
  •