Results 1 to 5 of 5
Like Tree1Likes
  • 1 Post By rafael.q.g@hotmail.com

Thread: how to add extra lookup contact fields to a contract?

  1. #1
    raynor is offline Sugar Community Member
    Join Date
    Nov 2008
    Location
    sydney
    Posts
    71

    Default how to add extra lookup contact fields to a contract?

    We are about to start using the Contracts function.
    But the business area would like to add some extra fields to the Contract page:

    1. Business Contact
    2. Technical Contact

    They want these to be lookup fields - the ability to search through existing contacts, before linking them to the contact.

    Is that hard, or does it involve extra relationships?
    Can those two new contact fields be added to the display and edit layouts of Contracts - rather than appearing as a separate subpanel after saving the Contract?

    cheers

    v 6.1 Pro
    sugar professional 6.4.0

  2. #2
    rafael.q.g@hotmail.com's Avatar
    rafael.q.g@hotmail.com is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Florianópolis - Brazil
    Posts
    782

    Default Re: how to add extra lookup contact fields to a contract?

    Yes it can be easialy added.
    Basically you will need to create two fields fo type "relate" and associate them with contact module. And then include these fields in module layouts.

    You can add these fields from studio (under admin area), and there you also can set them on detail/edit views.
    raynor likes this.
    Rafael Queiroz Gonçalves
    Advanced OMG UML Certified Professional
    Sun Certified Enterprise Architect for the Java Platform
    Sun Certified Programmer for the Java 2 Platform
    IBM Certified Advanced Application Developer - Lotus Notes and Domino
    IBM Certified Application Developer - IBM WebSphere Portlet Factory
    Computer Science Mastering / UFSC - PPGCC

  3. #3
    raynor is offline Sugar Community Member
    Join Date
    Nov 2008
    Location
    sydney
    Posts
    71

    Default Re: how to add extra lookup contact fields to a contract?

    That worked, in terms of seeing the data on the screen.

    But when using the reports wizard to create reports, it will only show the contents of the field, as a link. It doesn't let us extract the actual contact details. ie, I can produce a report that I can export, but it only has the name. If I select Contacts within Contracts, it doesn't find any records at all.


    Whereas the other way of doing things, treating contacts as a relationship rather than a related lookup field, lets you attach contacts down in the separate panel, and lets you extract the phone and email addresses in the report wizard. But it doesn't let you specify a role for that particular contract: you can only use the one role for the user.

    Any way of getting the report wizard to extract lookup details?

    cheers
    sugar professional 6.4.0

  4. #4
    rafael.q.g@hotmail.com's Avatar
    rafael.q.g@hotmail.com is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Florianópolis - Brazil
    Posts
    782

    Default Re: how to add extra lookup contact fields to a contract?

    Unfortunately the reports module shows just fields which are stored on DB, so is not possible to have a function which dinamically reads the info from another module.

    What you can do is duplicate the wanted contact fields on your module via a logic_hook, and set these fields as reportable. Then you can display it on your reports.
    Rafael Queiroz Gonçalves
    Advanced OMG UML Certified Professional
    Sun Certified Enterprise Architect for the Java Platform
    Sun Certified Programmer for the Java 2 Platform
    IBM Certified Advanced Application Developer - Lotus Notes and Domino
    IBM Certified Application Developer - IBM WebSphere Portlet Factory
    Computer Science Mastering / UFSC - PPGCC

  5. #5
    raynor is offline Sugar Community Member
    Join Date
    Nov 2008
    Location
    sydney
    Posts
    71

    Default Re: how to add extra lookup contact fields to a contract?

    hi Rafael

    That sounds like a nice way of doing it.

    I've only done simple logic hooks - eg calculations within a module, before_save.

    Any details available on how one would duplicate the data from another module?

    cheers
    sugar professional 6.4.0

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Newbie question - Lookup lead/contact based on Caller ID
    By jasondeegan in forum General Discussion
    Replies: 2
    Last Post: 2010-05-20, 05:39 PM
  2. related account type lookup in contact record
    By Sunnsky in forum General Discussion
    Replies: 1
    Last Post: 2010-05-07, 04:57 AM
  3. forward lookup in dynamic fields
    By akkimca in forum Help
    Replies: 2
    Last Post: 2009-11-30, 03:56 AM
  4. email adds associates extra contact (S 4.01)
    By ricardo.reis in forum Help
    Replies: 0
    Last Post: 2006-02-07, 01:45 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
  •