Results 1 to 3 of 3

Thread: popupdefs.php for Accounts

  1. #1
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default popupdefs.php for Accounts

    Hi,

    I tried to edit /custom/modules/Accounts/metadata/popupdefs.php to alter the search option and list view that appear when a user presses the select button to select an Account.

    I was able to succesfully edit the listviewdefs => array ( to suit my requirement, but was unable to add new search fields to the search part. I added the field I wanted into the searhdefs => array ( part but it didn't change anything.

    Where do I make this change or how can I tell the popupdefs.php to use the same search options as the basic search for Accounts.

    I should mention that the fields I wish to add are custom fields.
    I alway edited the whereClause to include my custom field from the custom accounts table just like to default ones are defined from the accounts table

    Rgds
    Chris
    Last edited by chrislynch8; 2009-06-04 at 02:11 PM.
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  2. #2
    crmsiva's Avatar
    crmsiva is offline A Sugar Hero
    Join Date
    Jan 2009
    Location
    Chennai, India
    Posts
    1,130

    Default Re: popupdefs.php for Accounts

    Hi Chris

    Can you post the code changes your doing?

  3. #3
    mryekhande is offline Junior Member
    Join Date
    Dec 2010
    Posts
    3

    Default Re: popupdefs.php for Accounts

    I add

    <td valign="top" class="{ROW_COLOR}S1" bgcolor="{BG_COLOR}">{MM_ACCOUNTS_PROD_FIELD_C}</td>

    in popup_picker.html

    and 'MM_ACCOUNTS_PROD_FIELD_C' => 'accounts_cstm.MM_ACCOUNTS_PROD_FIELD_C',

    in popupdefs.php

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Customizing PopupDefs
    By sid4it in forum Developer Help
    Replies: 4
    Last Post: 2009-05-25, 06:01 PM
  2. Multiselect in popupdefs.php.
    By shyam007 in forum Developer Help
    Replies: 0
    Last Post: 2009-05-16, 06:30 AM
  3. Getting popupdefs.php to access multiple tables
    By Durrill in forum Developer Help
    Replies: 7
    Last Post: 2009-05-13, 02:49 AM
  4. can I add a where clause to popupdefs.php
    By mikesolomon in forum Developer Help
    Replies: 5
    Last Post: 2008-10-27, 05:20 PM
  5. custom pop-up popupdefs.php for contacts
    By ezcurrax in forum Help
    Replies: 0
    Last Post: 2008-06-17, 09:39 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
  •