Results 1 to 2 of 2

Thread: what does related_fields means?

  1. #1
    enigma is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    between 1's and 0's
    Posts
    39

    Default what does related_fields means?

    what does related_fields means?

  2. #2
    DragonflyMaster is offline Sugar Community Member
    Join Date
    Dec 2007
    Location
    Rimini, Italy
    Posts
    1,421

    Default Re: what does related_fields means?

    From this page from the wiki:
    Relate The Relate field combines a blend of a text field with code to allow quicksearch. The quicksearch code is generated for EditViews (see include/TemplateHandler/TemplateHandler.php). There are also buttons to invoke popups and a button to clear the value. For DetailViews, the Relate field creates a hyperlink that will bring up a DetailView request for the field's value.


    Within the metadata file, the Relate field can be rendered with the snippet:


    array (
    array('name'=>'account_name',
    'type'=>'relate',
    'displayParams'=>array('allowNewValue'=>true)
    ),
    ),

    This will create a relate field that allows the user to input a value not found in the quicksearch list.


    name

    Standard name definition when Metadata definition is defined as an Array

    displayParams



    • required (optional) - Marks the field as required and applies clients side validation to ensure value is present when save operation is invoked from EditView.
    • readOnly (optional for editviewdefs.php file only) - Makes the text field input area readonly so that you have to just use the popup selection.
    • popupData - This field is generated for you by default. See include/SugarFields/Fields/SugarFieldRelate.php for more information. You should not need to override this setting.
    • allowNewValue (optional for editviewdefs.php file only) - This setting allows the user to specify a value that is not found from the quicksearch list of results.
    What do you think the cookie monster eats ?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. No Caching means slow pages
    By sunside in forum Help
    Replies: 2
    Last Post: 2007-08-29, 07:04 PM
  2. Any ideas what this means?
    By BenDov in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2006-11-30, 08:46 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
  •