Results 1 to 5 of 5

Thread: multi relate in edit view

  1. #1
    zaska's Avatar
    zaska is offline Senior Member
    Join Date
    Sep 2008
    Posts
    99

    Lightbulb multi relate in edit view

    Hi folks,

    I have 2 custom modules builded with the 'module builder' - services and contracts. They are related each other. In module "Services" I have for example "service1", "service2", etc. In module "Contracts" I have "contract1", "contract2", etc. When create and save a new contract then easy can relate it to some services (in detail view). But this is a 2 stage, I want to relate it when creating the new contract (in the edin view). Also to relate one contract to n services. In the default modules there's a field to relate to other module (the one with select and clear buttons) but it's for only one relationship (i.e. Contact to one Account). My question is how to make such field so I can relate my new contract to many services in the edit view?

    Cheers

    SugarCE Version 5.0.0g (Build 3391)

  2. #2
    veronicakatz is offline Senior Member
    Join Date
    Sep 2008
    Location
    Madrid - Spain
    Posts
    71

    Default Re: multi relate in edit view

    I'm also interested in this issue!!!
    Thanks for anyone who could help us.
    Verónica

  3. #3
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: multi relate in edit view

    Hi all

    You need to manually edit the vardefs of the modules and add the fields (id and name) and the relationships which implement them.
    Sugar defaults to create a single field and relationship related to another module, so it is necessary to understand the logic behind and create yourself the fields and relationships.
    You can do that in the Module Builder folder custom/modulebuilder/packages/<PackageName>/modules/<ModuleName>.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  4. #4
    zaska's Avatar
    zaska is offline Senior Member
    Join Date
    Sep 2008
    Posts
    99

    Default Re: multi relate in edit view

    Quote Originally Posted by andopes
    Hi all

    You need to manually edit the vardefs of the modules and add the fields (id and name) and the relationships which implement them.
    Sugar defaults to create a single field and relationship related to another module, so it is necessary to understand the logic behind and create yourself the fields and relationships.
    You can do that in the Module Builder folder custom/modulebuilder/packages/<PackageName>/modules/<ModuleName>.

    Cheers
    Yes, vardefs is the first step. Can you give me some hints

  5. #5
    veronicakatz is offline Senior Member
    Join Date
    Sep 2008
    Location
    Madrid - Spain
    Posts
    71

    Default Re: multi relate in edit view

    Hi, André, thanks a lot for your response.
    I think I will spend more time studying Sugar first so as to feel confident enough to go on with this issue
    May be in some time I will be able to do it...
    Thanks again,
    Verónica

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 24
    Last Post: 2008-08-20, 08:19 PM
  2. Default to Edit View
    By dameat in forum Developer Help
    Replies: 7
    Last Post: 2008-06-05, 11:10 PM
  3. Replies: 13
    Last Post: 2007-10-04, 05:53 AM
  4. edit view in studio not working
    By acox in forum Help
    Replies: 2
    Last Post: 2007-09-24, 06:44 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
  •