-
-
Save pgorod/c838f258fadf9528b61183e763e978a8 to your computer and use it in GitHub Desktop.
HOWTO: Adding your own ListView action items - Part 2
This file contains hidden or 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
<?php | |
class CustomAccountsController extends SugarController | |
{ | |
public function action_displaypassedids() { | |
if ( !empty($_REQUEST['uid']) ) { | |
$recordIds = explode(',',$_REQUEST['uid']); | |
foreach ( $recordIds as $recordId ) { | |
$bean = SugarModule::get($_REQUEST['module'])->loadBean(); | |
$bean->retrieve($recordId); | |
echo "Sent Record ID {$bean->id}, name ".$bean->get_summary_text().""; | |
} | |
} | |
sugar_die(''); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From https://web.archive.org/web/20150727073955/http://developer.sugarcrm.com/2010/11/22/howto-adding-your-own-listview-action-items/
To be saved as
custom/modules/Accounts/controller.php