This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Post Relationship | |
* @param string $key API Key | |
* @param string $time API Timestamp | |
* | |
* Required Parameters | |
* 'module1' = (string) Portal Module Name | |
* 'id1' = (string) Record Sugar ID | |
* 'module2' = (string) Portal Module Name | |
* 'id2' = (string) Record Sugar ID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Create the form field | |
* | |
* @param string $name | |
* @param array $args | |
*/ | |
protected function createField($name, $args) | |
{ | |
// If the user specifies an input type, we'll just use that. | |
// Otherwise, we'll take a best guess approach. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function set_relationship($module_name, $module_id, $link_field_name, $related_ids, $delete = 0){ | |
$call_arguments = array( | |
'session' => $this->session, | |
'module_name' => $module_name, | |
'module_id' => $module_id, | |
'link_field_name' => $link_field_name, | |
'related_ids' => array($related_ids), | |
'name_value_list' => array(), | |
'delete' => $delete, | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create a custom view to load popup widget js | |
custom/modules/{module}/views/view.detail.php | |
<?php | |
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); | |
require_once('include/json_config.php'); | |
require_once('include/MVC/View/views/view.detail.php'); | |
class po_purchaseOrdersViewDetail extends ViewDetail { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foreach ($clients as client){ | |
$m->to($client->email, $client->first_name . ' ' . $client->last_name); | |
} |