view/table master/detail no sel.checkboxes on master view

Hi all.
PHPMaker 2020.0.14 here.

My current project is a Master/Detail scenario,
where Master table is a View (view1) and Detail is a table (table1).

view1 is a GROUP BY of table1.

What I need to do is to be able to select (with Checkboxes)
view1 rows (master grouped), to let me then update data in table1 rows (detail).

So in view1 List_Page/Page_Load
I created a custom button:

$this->CustomActions[“ApproveAction”] = new ListAction(“ApproveAction”, “Approve”, IsLoggedIn(), ACTION_AJAX, ACTION_MULTIPLE, “Do you really want to approve?”, “fas fa-thumbs-up ew-icon”,$success=“myreload”);

Where “myreload” is a js function in Client Scripts/Pages_with_header/footer/Global Code, to force page reload.
function myreload(){
location.reload();
return “”;
}
(I first tried a new ListAction with ACTION_POSTBACK with no success)

In Server Events section I wrote:

function Row_CustomAction($action, $row) {
// Return FALSE to abort
if ($action == “ApproveAction”) { // Check action name
//perform some Updates on linked Rows
}
return TRUE;
}

Even though Row_CustomAction Server Event is present,
PHPMaker doesn’t seem to provide checkboxes on rows of view1.

Using jQuery (Client Scripts/List Page/Startup Script) I created the checkboxes myself to allow rows selection.
Apparently everything seems to work fine (checkbox selection, confirmation message), but when I click on
the ApproveAction button, the Row_CustomAction event is not triggered.

Am I doing something wrong? Or simply, it isn’t possible to do that?

Thanks in advance,
regards.
jta

Make sure you have selected primary key for the view or you cannot select records.

hi, your suggestion worked like a charm.
thank you
regards
jta