Hi
In my module I am adding a custom code button to ProspectLists detail view but when I do that it removes existing buttons and display only my button
CODE
function post_install(){
require_once('modules/ModuleBuilder/parsers/ParserFactory.php');
$parser = ParserFactory::getParser('detailview', 'ProspectLists');
$buttons = $parser->_viewdefs['templateMeta']['form']['buttons'];
$SQLButton =
array(
'customCode' => '<input type="button" class="button" onclick="location.href=\'index.php?module=ProspectLists&action=actionanem&record={$fields.id.value}\'"
value="Test Me">',
);
$numItems = count( $parser->_viewdefs['templateMeta']['form']['buttons']);
echo $numItems ." -first<br/>";
$parser->_viewdefs['templateMeta']['form']['buttons'][]['form']['buttons'][]= $SQLButton;
$parser->handleSave(false);
return;
}
the functions are working perfectly but only the button is the problem
Thanks