Pass Data from pop_up to a controller or an api endpoint.

Hi all, I'm on Sugar CRM 6.5

I have a module with a custom action shortcut.  The shortcut button has a onclick() event which runs a open_popup('GDLF_Gandalf_Table','600','400','',false,false,{ 'call_back_function':'set_return_and_save_targetlist', 'form_name':'targetlist_form','field_to_name_array':{'id':'prospect_list'}, 'passthru_data':{'do_contacts' : 1 } } );

I'd like to send the selected ID and the id of the GDL_GANDALF_Table that was picked to a controller or an API end point.

Anyone have any ideas?

Thank you.