Results 1 to 3 of 3

Thread: Adding "Member Of:" to advanced search.

  1. #1
    spectheintro is offline Sugar Community Member
    Join Date
    May 2006
    Posts
    59

    Default Adding "Member Of:" to advanced search.

    I've been trying to add "Member Of:" to the advanced search page in the Accounts module, because we have around 1000 accounts that are members of a much larger blanket account. Searching by the member of field would be incredibly helpful in pulling up one class of accounts. However, adding the following code to SearchForm.html has not produced any fruit.

    PHP Code:
    <tr><td  class="dataLabel"  colspan="1"><span sugar='slot89'>{MOD.LBL_MEMBER_OF}</span sugar='slot'></td><td  class="dataField"  colspan="1"><span sugar='slot89b'><input name='parent_name' tabindex='1' type="text" value="{PARENT_NAME}"></span sugar='slot'></span sugar='slot'></td
    Can anyone help me out? Am I not using the right nomenclature? I know the module has parent_ids so it stands that it should have parent_names, and I should be able to search by that, or at least I think so. Can anyone shed some light on this? Thanks!

  2. #2
    GameboyRMH is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    70

    Default Re: Adding "Member Of:" to advanced search.

    First off, I'm pretty sure you've gotten way ahead of yourself.

    Have you already checked out /custom/modules/Accounts/metadata/searchdefs.php? If it doesn't exist it means you've made no customizations to your search forms in Studio. Try adding a field so the file will be created and then you can edit it manually. This is in 5 beta 2 though, I don't know if it will work the same way in older versions.
    Server: Fedora
    Sugar 5 CE
    Apache 2.2.6
    MySQL 5.0.27

  3. #3
    spectheintro is offline Sugar Community Member
    Join Date
    May 2006
    Posts
    59

    Default Re: Adding "Member Of:" to advanced search.

    I've done some fairly heavy editing of the Advanced Search Page in Studio, but I do not have the option to add "Member Of" to the search, so I've tried adding the field manually, in the same manner that the Contacts search page has an "Account" field you can use to search. So far, I've been unsuccessful in doing so: I can create the field for searching but it won't match up with the actual value.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Advanced Search bug.
    By spectheintro in forum Help
    Replies: 6
    Last Post: 2007-10-27, 02:43 AM
  2. Adding Title to Advanced Search
    By skeohane in forum Help
    Replies: 1
    Last Post: 2006-10-03, 03:40 AM
  3. Replies: 1
    Last Post: 2006-09-11, 03:38 PM
  4. Adding a criteria in the advanced search
    By francois95 in forum Help
    Replies: 0
    Last Post: 2006-03-30, 11:22 AM
  5. Advanced Search - Search by User
    By JStinson in forum Help
    Replies: 0
    Last Post: 2005-01-26, 09:06 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
  •