Results 1 to 3 of 3

Thread: [STUDIO] How to create a related field that depends on a dropdown list

  1. #1
    franquero is offline Senior Member
    Join Date
    Jan 2010
    Posts
    39

    Default [STUDIO] How to create a related field that depends on a dropdown list

    Hello, I need to add some modifications to the call module. For now everything is fine, but I need to add a field related to determine if the call has produced a new contact, a new call, a task, etc. It is something very usual in a standar clean installation of SugarCRM. Here you can see an image:



    I can create the related field, but it can only be related to the area I choose when I create the field, ie "contacts".

    I have also created a dropdown list item 'parent_type_display', but I´m not able to establish a relation between the list and the related field.

    Can someone give me a light about how to do this?

    Thanks in advance.


    Now I´m working in a local server: Sugar 5.2 - spanish language pack - Windows XP SP2, Apache 2.2
    In production I have Sugar 5.2 - spanish language pack - Centos and Apache 2.2
    Last edited by franquero; 2010-02-02 at 03:35 PM. Reason: Add an image

  2. #2
    matthew's Avatar
    matthew is offline Sugar Team Member
    Join Date
    Jul 2005
    Posts
    533

    Default Re: [STUDIO] How to create a related field that depends on a dropdown list

    franquero-

    In Studio there's a fieldtype called "Flex Relate" I don't know what the translation is in ES. That's the field you want.

    Chao,
    Matt

    Sugar University for training
    Sugar Wiki for developer and user help
    SugarForge for modules, themes, lang packs
    SugarExchange for production-ready extensions
    Enter/view bugs via the Sugar bug tracker

  3. #3
    franquero is offline Senior Member
    Join Date
    Jan 2010
    Posts
    39

    Question I cant select Data type 'Flex Relate' for a new field.

    Hello matthew, thanks for answer.
    When I go to Admin > Studio > Calls > Fields > Add field, I cant see in the 'Data type' list the option 'Flex Relate'.

    I have found a thread in the forum where jyim says:

    Quote Originally Posted by jyim View Post
    Just to clarify, the Flex Relate option for custom fields appears only for modules that do not already have a default parent_id field.

    The modules that contain parent_id fields by default are Accounts, Calls, Meetings, Notes and Tasks.

    Once you create a Flex Relate field for any of the other modules, and this creates a parent type field in the fields_meta_data table, the Flex Relate option will no longer be available for new custom fields for that module.
    Is there any way to avoid this restriction? Can someone figure out how to avoid it?

    Thanks in advance
    Last edited by franquero; 2010-02-03 at 07:56 AM. Reason: I found an answer

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 2009-11-18, 11:59 PM
  2. Replies: 14
    Last Post: 2008-04-04, 12:21 AM
  3. Replies: 6
    Last Post: 2008-02-20, 08:33 PM
  4. Related Dropdown List (conditioned)
    By nramirezf in forum Feature Requests
    Replies: 6
    Last Post: 2008-02-03, 11:01 AM
  5. Replies: 3
    Last Post: 2006-06-30, 08:43 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
  •