Results 1 to 2 of 2

Thread: Relationships : Get in a variable the fields of "relate" records

  1. #1
    anokirda's Avatar
    anokirda is offline Senior Member
    Join Date
    Jan 2011
    Location
    Geneva, Switzerland
    Posts
    28

    Red face Relationships : Get in a variable the fields of "relate" records

    Hello everybody, first of all sorry for my english

    I'm developing in SugarCRM Professional 6.1, i have a little problem to retreive information about relate objects (in a view or elsewhere). I didn't find a simple way to do this in the official guide, maybe advanced Sugar Devs could help me.


    To simplify my problem : Module A and module B have a oneToMany relationship (for example, a module Hotel with a module Room, or a module Computer with a module Component).

    Is there a function to put (in a variable table) all the fields of the relate objects, when you consult the "main" module ?

    For example, in the DetailView of a record of the module Hotel, i would like to get in a variable all the fields of the records Room linked to that Hotel, by the relationship. It will allow me later to contruct customized dashboards for my different views (I have a lot of modules and a lot of relationships).

    I would like to avoid massive SQL request if possible ...

    Thanks by advance, and congratz for this very useful forum !


    Anokirda, Switzerland

  2. #2
    anokirda's Avatar
    anokirda is offline Senior Member
    Join Date
    Jan 2011
    Location
    Geneva, Switzerland
    Posts
    28

    Default Re: Relationships : Get in a variable the fields of "relate" records

    Hum this is not the right forum i guess, i'll repost is in the right section. Sorry.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 2010-02-18, 02:05 PM
  2. Replies: 6
    Last Post: 2009-05-10, 03:58 PM
  3. ZuckerDocs does not work, "Undefined variable" error
    By luong in forum Installation and Upgrade Help
    Replies: 1
    Last Post: 2008-05-29, 06:37 AM
  4. Replies: 2
    Last Post: 2006-12-15, 03:00 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
  •