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
if ( typeof(MyCustomJs) == 'undefined' ) MyCustomJs = {}; | |
if ( typeof(MyCustomJs.Helper) == 'undefined' ) MyCustomJs.Helper = {}; | |
MyCustomJs.Helper.getCurrentModuleName = function() { | |
if (typeof module_sugar_grp1 != "undefined") { | |
return module_sugar_grp1; | |
} | |
var url = YAHOO.util.History.getBookmarkedState('ajaxUILoc'); |
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
<?php | |
require_once 'modules/ModuleBuilder/parsers/ParserFactory.php'; | |
$moduleName = 'Accounts'; | |
$buttonCode = 'TODO'; | |
$parser = ParserFactory::getParser("detailview", $moduleName); | |
$parser->_viewdefs['templateMeta']['form']['buttons']['buttonKeyCode'] = array ('customCode' => $buttonCode); | |
$parser->handleSave(false); |
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
<?php | |
$queryParams = array( | |
'module' => 'Accounts', | |
'action' => 'DetailView', | |
'record' => $recordId, | |
); | |
SugarApplication::redirect('index.php?' . http_build_query($queryParams)); |
NewerOlder