Results 1 to 3 of 3

Thread: How to add relationship of a relate field?

  1. #1
    leowolff is offline Sugar Community Member
    Join Date
    Apr 2009
    Posts
    126

    Default How to add relationship of a relate field?

    Sugar CE 5.2.c

    Hello, I have a custom module (I will call it: order) that has a relationship of many-to-many with accounts module. There is alredy a relate field of accounts called company that is working properly, it relates the main account to the order, and if I go to the account page I can see the relationship between of the order and the account.

    I want to add another relate field of account module into my order module that will work as a secondary account. I am able to create a relate field and add it to the layouts, but the relationship doesnt stick to this new module. It will work if I use the sub-panel on the botton of the page, but I want to use the relate field in the middle of the page. What should I change to make that secondary relate field check the relationship and add it.

    Thanks in advance.

  2. #2
    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: How to add relationship of a relate field?

    Hi Leo

    I´m not sure if I got it.
    You would like to use the same Order subpanel under Accounts to manage both account relate fields into Order EditView.
    If not, please, clarify.

    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.

  3. #3
    leowolff is offline Sugar Community Member
    Join Date
    Apr 2009
    Posts
    126

    Default Re: How to add relationship of a relate field?

    Hey André, I know it would be dificult to understand. Lets try again:

    My problem is on the custom module called order. What I did was adding a related field of accounts using the studio into the order editview, the field itself works (open the account pop up, I can select and it will show in the middle of the editview) but it does not create a relationship, I mean if I click on that aaount the order will not be showing on the subpanel, or vice versa. Follow below a picture:


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 6
    Last Post: 2010-03-05, 12:38 PM
  2. Replies: 6
    Last Post: 2009-05-10, 03:58 PM
  3. relate Field -> Search Field
    By Mr.X in forum Developer Help
    Replies: 2
    Last Post: 2009-02-05, 07:04 AM
  4. creating relate fields/relationship in 5.1
    By mikesolomon in forum Help
    Replies: 5
    Last Post: 2008-11-27, 05:01 PM
  5. Allow New Value on Relate Field
    By jasv in forum Developer Help
    Replies: 0
    Last Post: 2008-11-26, 02:06 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
  •