Results 1 to 8 of 8

Thread: Overriding vardefs in non custom module

  1. #1
    MissAran is offline Sugar Community Member
    Join Date
    Jul 2010
    Posts
    24

    Default Overriding vardefs in non custom module

    Hi, sorry if this is a really silly question, but if you can provide an answer that would be fantastic.

    After following this thread regarding how to show the sub panels on Contacts to Accounts, to the point where if you select muliple accounts to one contact it shows on Contacts ListView multiple Contacts created by the relationship.
    http://www.sugarcrm.com/forums/showthread.php?t=29533
    The User suggested the patch he had on the thread, this works. However, does anyone know how this can be Upgrade safe? Basically, how to override the vardefs of the Contacts module to minus 'account_name' and 'account_id' so on Listview it doesn't appear and is upgrade safe.

    **EDIT**
    Last edited by MissAran; 2010-09-14 at 01:01 PM.

  2. #2
    eitrix's Avatar
    eitrix is offline Sugar Community Member
    Join Date
    Aug 2010
    Location
    Serbia
    Posts
    396

    Default Re: Overriding vardefs in non custom module

    use studio and just throw it out, it will be upgrade safe
    CRM Software Engineer
    Eontek - www.eontek.rs

  3. #3
    MissAran is offline Sugar Community Member
    Join Date
    Jul 2010
    Posts
    24

    Default Re: Overriding vardefs in non custom module

    Quote Originally Posted by eitrix View Post
    use studio and just throw it out, it will be upgrade safe
    Sorry, I don't know what you mean 'just throw it out'. Heh.

  4. #4
    eitrix's Avatar
    eitrix is offline Sugar Community Member
    Join Date
    Aug 2010
    Location
    Serbia
    Posts
    396

    Default Re: Overriding vardefs in non custom module

    use studio to edit listview of accounts module, you can edit the fields that show on subpanel also.

    There si default subpanel listview and specific views for some of the relationships.
    CRM Software Engineer
    Eontek - www.eontek.rs

  5. #5
    MissAran is offline Sugar Community Member
    Join Date
    Jul 2010
    Posts
    24

    Default Re: Overriding vardefs in non custom module

    Quote Originally Posted by eitrix View Post
    use studio to edit listview of accounts module, you can edit the fields that show on subpanel also.

    There is default subpanel listview and specific views for some of the relationships.
    I don't think I've explained myself well. I said ListView, but I should've said that on the index of the Contacts module shows all the contacts.

    The customization I want to change that 'list' of Contacts to not include the 'default' VarDefs of the Contacts module to not include $dictionary array items 'accounts_name' and 'accounts_id'.

    I'll edit my original post.

  6. #6
    eitrix's Avatar
    eitrix is offline Sugar Community Member
    Join Date
    Aug 2010
    Location
    Serbia
    Posts
    396

    Default Re: Overriding vardefs in non custom module

    yeah i know what you said, and i have told you how to do it...

    go to admin>studio>contacts>layouts>listview>EDIT!
    Attached Images Attached Images  
    CRM Software Engineer
    Eontek - www.eontek.rs

  7. #7
    MissAran is offline Sugar Community Member
    Join Date
    Jul 2010
    Posts
    24

    Default Re: Overriding vardefs in non custom module

    Sorry, that hasn't worked of me.

    In Studio I did just that. Contacts>Layouts>ListView>
    In there the account_name was already in the 'hidden' section. But I saved and Deploy to be sure. Then I go back to my Contacts index, and there were still the multiple records shown (I also repaired and rebuilt before this).

  8. #8
    eitrix's Avatar
    eitrix is offline Sugar Community Member
    Join Date
    Aug 2010
    Location
    Serbia
    Posts
    396

    Default Re: Overriding vardefs in non custom module

    jump into code then, first check custom/modules/Contacts/metadata/listview.php and after modules/Contacts/metadata/listview.php and remove it manualy.

    Repair after.
    CRM Software Engineer
    Eontek - www.eontek.rs

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Custom edit view not overriding
    By cmcassity10 in forum Developer Help
    Replies: 0
    Last Post: 2010-03-01, 08:45 PM
  2. Overriding save() method in standard module
    By logicasrl in forum Developer Help
    Replies: 16
    Last Post: 2009-11-06, 11:47 AM
  3. Vardefs for Custom Fields
    By chrislynch8 in forum Help
    Replies: 2
    Last Post: 2009-09-30, 01:52 PM
  4. Custom vardefs do not overwrite original vardefs
    By TheEyes in forum Developer Help
    Replies: 5
    Last Post: 2009-07-22, 09:56 AM
  5. Replies: 7
    Last Post: 2009-06-03, 08:42 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
  •