Hello,
I am working on a master/detail page. I want to add a button for every row of details record. New button will be locate beside edit/view/delete button of each row. I wrote the below codes;
// ListOptions Load event
function ListOptions_Load()
{
$item = &$this->ListOptions->add("new");
$item->Header = "nProduction"; // Set the column header (for List page)
$item->OnLeft = true; // Link on left
$item->moveTo(1); // Move the column to the specified index
}
// ListOptions Rendered event
function ListOptions_Rendered()
{
// create new button on view page of Master/Detail record view page
$this->ListOptions->Items["nProduction"]->Body = "<a class='ew-row-link ew-detail-edit' title='nProduction' data-caption='nProduction' href='ProductionView/" . $this->gray_requisition_details_id->CurrentValue . "?showdetail='><i data-phrase='fas fa-edit' class = 'icon-edit ew-icon' data-caption='Production Specification'></i></a>";
}
after generating code, i do not see any new button. Can anyone identify where i made mistake. Please help.
Regards
Emran