Skip to content

Instantly share code, notes, and snippets.

@pgorod
Forked from jmertic/gist:3684162
Last active October 8, 2017 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pgorod/c838f258fadf9528b61183e763e978a8 to your computer and use it in GitHub Desktop.
Save pgorod/c838f258fadf9528b61183e763e978a8 to your computer and use it in GitHub Desktop.
HOWTO: Adding your own ListView action items - Part 2
<?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('');
}
}
@pgorod
Copy link
Author

pgorod commented Oct 8, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment