Results 1 to 2 of 2

Thread: Making Name field dynamic / Accessing DetailView

  1. #1
    paulakg4 is offline Member
    Join Date
    Aug 2009
    Posts
    17

    Default Making Name field dynamic / Accessing DetailView

    Hi guys!

    OK here we go:

    Background:
    Im using Sugar for a non-profit child sponsorship organization. When a 'Sponsor' sponsors a child they contribute a monthly payment. Each child can have only one Sponsor. Each sponsor may have more than one child.

    Each child has a unique ChildID that is used to identify them.

    I created a new module called Child and used type: 'basic' then added the fields I need.
    Rather than using the 'name' field, I added the fields 'First Name', and 'Last Name'.


    My Problem;

    When I click on the Child tab and go to the List View, Im not able to go to the DetailView because there is no name field to click on.

    Is there a way to make the field 'ChildID' the field that gives you the DetailView?

    Ideally I would like to make the default 'Name' field generate itself with the Childs 'Child ID' + 'First Name' + 'Last Name'

    I would also like to do this for the 'Sponsors' name field ( SponsorID + First Name + Last Name)
    So that when I create the detailview for 'Child' I can create a field type called Sponsored By and relate it to the Sponsors 'Name' .

    Thanks in advance to the wonderful person that helps me with this.

  2. #2
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Making Name field dynamic / Accessing DetailView

    Check out fill_in_additional_list_fields in modules/Contacts/Contact.php for an example on how to override the name field. Here you can add your rules for how you want the name to be created and displayed.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 13
    Last Post: 2010-12-03, 11:17 AM
  2. Dynamic Calender input Field
    By atin in forum Help
    Replies: 4
    Last Post: 2008-05-14, 12:18 PM
  3. Replies: 2
    Last Post: 2007-08-31, 10:42 AM
  4. Replies: 7
    Last Post: 2007-07-13, 01:38 PM
  5. Bug in Dynamic Field template
    By yuri.gelman in forum Developer Help
    Replies: 3
    Last Post: 2007-03-30, 11:23 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
  •