Results 1 to 5 of 5

Thread: Return more field in popup window of Relate Type

  1. #1
    Chien_Khmt's Avatar
    Chien_Khmt is offline Member
    Join Date
    Jun 2010
    Posts
    8

    Smile Return more field in popup window of Relate Type

    Hi all member! Can you send a few minute to help me thank so much.
    When I create relationship one to many between module Manager and module Employee
    In EditView of Employee, when click the button Select of Relate (Manager) then a popup window display,
    After I click the name of Manger then return only field Name and ID
    But I want return more fields like Address of Manager, what I need to do!
    Last edited by Chien_Khmt; 2010-06-21 at 05:27 AM.

  2. #2
    Chien_Khmt's Avatar
    Chien_Khmt is offline Member
    Join Date
    Jun 2010
    Posts
    8

    Default Re: Return more field in popup window of Relate Type

    So simple I did discovery
    Change the Red text in {} of Onclick Attribute of Button Select in Relate follow:


    open_popup("M10_Khachhang", 600, 400, "", true, false, {"call_back_function":"set_return","form_name":"Ed itView","field_to_name_array":{"id":"m10_khachh8a0bachhang_ida","name":"m10_khach hang_genps_dat_hang_san_pham_name","diemthuong":"c hiet_khau_c"}}, "single", true);


    You should use Javascript


    Two way to modify code in Sugar CRM by JavaScript:
    - Modify direct js file of Sugar
    - Change the event of item in Page Sugar and using your Javascript to process:
    Last edited by Chien_Khmt; 2010-06-21 at 05:20 AM.

  3. #3
    gregbaskind is offline Sugar Community Member
    Join Date
    Mar 2009
    Posts
    23

    Default Re: Return more field in popup window of Relate Type

    Where did you change the code?
    What is the name of the file with this code? :

    open_popup("M10_Khachhang", 600, 400, "", true, false, {"call_back_function":"set_return","form_name": "Ed itView","field_to_name_array":{"id":"m10_khachh8a0 bachhang_ida","name":"m10_khach hang_genps_dat_hang_san_pham_name","diemthuong":"c hiet_khau_c"}}, "single", true);

    ?

  4. #4
    Chien_Khmt's Avatar
    Chien_Khmt is offline Member
    Join Date
    Jun 2010
    Posts
    8

    Default Re: Return more field in popup window of Relate Type

    Quote Originally Posted by gregbaskind View Post
    Where did you change the code?
    What is the name of the file with this code? :

    open_popup("M10_Khachhang", 600, 400, "", true, false, {"call_back_function":"set_return","form_name": "Ed itView","field_to_name_array":{"id":"m10_khachh8a0 bachhang_ida","name":"m10_khach hang_genps_dat_hang_san_pham_name","diemthuong":"c hiet_khau_c"}}, "single", true);

    ?

    You go to dir include/javascript/sugar_grp1.js find the function open_popup()
    and do anything you want


  5. #5
    z3r0 is offline Sugar Community Member
    Join Date
    May 2009
    Posts
    189

    Question Re: Return more field in popup window of Relate Type

    Hi,
    i have the same problem, your solution is nice but a little bit dirty correct is displayParams in editviewdefs.php but my problem is that the fields which i want return from a popup already in popup not fill. Have you a solution for this too?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. custom field with data type: relate
    By 1joe in forum Developer Help
    Replies: 0
    Last Post: 2010-04-16, 01:59 AM
  2. customCode for a relate type field
    By gopalkalasa in forum Developer Help
    Replies: 0
    Last Post: 2009-06-10, 03:06 PM
  3. Changing input type for a relate field in search
    By Delos in forum Developer Help
    Replies: 5
    Last Post: 2008-11-13, 11:28 PM
  4. New field in popup window
    By fbrites in forum Help
    Replies: 10
    Last Post: 2008-06-26, 11:42 AM
  5. Field in popup window
    By fbrites in forum Developer Help
    Replies: 0
    Last Post: 2008-05-27, 03:47 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
  •