Results 1 to 2 of 2

Thread: custom Relate field -> Employees

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

    Default custom Relate field -> Employees

    Hi,

    In 5.0.0i I was able to create a custom relate field that was related to the Employee. Then in the Cases module I could select an Employee that was contacting support with an issue. I was able press select and search for an Emaployee by name.

    Now I've upgraded to 5.2.0k and when I press select I have nothing to search with. I have a search button and I have the list of Employees but I have no First Name, Last Name, that I had in the previous version.

    In 5.2.0k there is a new file called searchdefs.php in the Employee metadata (this is not in my 5.0.0 instance) I think I have to edit this to tell it what to search for but I can figure out the correct options..

    I've used the following in the 'basic_search' => array(

    PHP Code:
    'barsic_search' => array(
    'first_name',
    'last_name',
    ), 
    Is this correct, I think it is because the Employee module uses the User Module dictionary...


    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  2. #2
    ptemplin7 is offline Sugar Community Member
    Join Date
    Jun 2007
    Location
    Puget Sound Washington
    Posts
    380

    Default Re: custom Relate field -> Employees

    That sounds correct.

    Remember to put customizations int he custom directory! That way they are upgrade safe! You should be able to override the basic search in the custom directory.

    Good luck,

    Paris

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. relate field problem (users & Employees)
    By mikesolomon in forum Developer Help
    Replies: 0
    Last Post: 2010-01-22, 11:12 AM
  2. how can i make a field relate to employees?
    By oanaa11 in forum Developer Help
    Replies: 27
    Last Post: 2009-11-05, 09:15 PM
  3. custom relate field
    By cheku0228 in forum Developer Help
    Replies: 2
    Last Post: 2008-08-22, 09:38 AM
  4. custom module custom field relate type error
    By kidpollo in forum General Discussion
    Replies: 0
    Last Post: 2007-03-24, 02:14 AM
  5. Custom Field and Layout Editing on Employees
    By eduardobaer in forum Help
    Replies: 0
    Last Post: 2006-09-13, 01:48 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
  •