Results 1 to 2 of 2

Thread: Edit Contact Popup

  1. #1
    jafrazee is offline Junior Member
    Join Date
    Sep 2006
    Posts
    2

    Default Edit Contact Popup

    We are creating classifiers for our clients that will allow us (hopefully) send emails to specific groups.
    is there a way to edit the contact popup screen (when you press select address in email) to filter by our new fields.
    We have added them to the main contact and account searches but can not find a way in the popup.
    thanks for any help

  2. #2
    sagarladdha is offline Sugar Community Member
    Join Date
    Oct 2006
    Posts
    70

    Default Re: Edit Contact Popup

    Hi jafrazee,

    I have never done what you are asking about, but I am pretty sure, the only way out will be to write your own pop up handler. If you see any of the EditView.php files of any module having a button for pop-up, you will see some code like this:

    /// Users Popup
    $popup_request_data = array(
    'call_back_function' => 'set_return',
    'form_name' => 'EditView',
    'field_to_name_array' => array(
    'id' => 'assigned_user_id',
    'user_name' => 'assigned_user_name',
    ),
    );
    $xtpl->assign('encoded_users_popup_request_data', $json->encode($popup_request_data));

    This code handles pop-up. The assign function in the last line of the code prepares the sql query for reading the required data from the database. But I am not sure, if there is any mechanism in this function to specify a filter parameter. So, as far as I know, the only way out I can suggest at this point of time is to write your pop up handler and write a sql query that will return you the filtered data. I hope you know quite good amount of php. Because this will be a bit tricky job.

    Hope this helps

    Regards,

    Sagar Laddha
    India

Thread Information

Users Browsing this Thread

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

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
  •