Results 1 to 2 of 2

Thread: Popup filter

  1. #1
    leowolff is offline Sugar Community Member
    Join Date
    Apr 2009
    Posts
    126

    Default Popup filter

    Hello, I have a custom module that has 2 relate fileds, one for accounts and one for contacts, what I want to do is: once I select the account, when I go and click on the contact button it would bring only the contacts of that account, because right now when I click the contacts button it brings all contacts.

    Is that possible? I guess I have to use logic hook?
    Regards,

    SugarCRM CE v.5.2.0c
    Windows platform
    MySQL v.5.0.37
    phpMyAdmin - 2.11.2.2
    Apache Server v.2.0

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Popup filter

    Hi Leo

    No way to use logic hook to accomplish this needs.
    You need to either customize the field template relate or create a new field template based on the Relate one to add a javascript event on contact relate field.
    This javascript event should add into initial_filter the id of the selected account on first related field.

    Regards
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Custom Popup Filter
    By hubcrm in forum Developer Help
    Replies: 12
    Last Post: 2009-08-14, 12:42 PM
  2. How create an filter for the popup
    By youn008 in forum Developer Help
    Replies: 6
    Last Post: 2009-06-25, 09:30 AM
  3. How to filter popup in module
    By vishwasrao in forum Developer Help
    Replies: 7
    Last Post: 2009-06-01, 06:51 PM
  4. filter popup data by relation
    By waverider in forum Developer Help
    Replies: 6
    Last Post: 2008-09-18, 02:23 PM
  5. how to filter popup
    By Mubi in forum Developer Help
    Replies: 1
    Last Post: 2008-09-11, 04:31 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
  •