Add custom button by Add

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
sprocker
User
Posts: 38

Add custom button by Add

Post by sprocker »

How do I add a new button next to the "add" and "grid edit" buttons that will open a pop up window?

I already have the popup code so really just need to add a link to the page by the existing "add" button

ie
<a href="calc-results-all.php?coid=<?php echo $thisEmployer ?>" target="_blank" class="btn">Calculate All</a>

Thanks


danielc
User
Posts: 1601

Post by danielc »

To add your own button, put this code in Page_Render sever event:
$options = &$this->OtherOptions;
$option = $options["addedit"];
$item = &$option->Add("mybutton"); //add
$item->Body = "xxx"; // add your a tag content here

See Server event and Client script in help file.


Post Reply