Hello,
I create a view (MySql db) to list some aggregate data (no primary key used in the view) and I generate only the list page for this "View_Table".
In the List Page - Page_Load event I add this simple CustomAction fot testing purpose:
$this->CustomActions["ActTest2"] = new ListAction(
"ActTest2",
"",
true,
ACTION_POSTBACK,
ACTION_SINGLE,
"Test?",
"fa-solid fa-right-from-bracket",
"",
function($row){
Log("ROW",$row);
return true;
},
"NICE TEST!",
"ERROR"
);
It doesn't work, I see the action icon, it ask me to confirm with the popup but then the page reload and nothing is logged and the action icon disappear from the reloaded page. (I've to refresh the page to see it again).
If I use the same code in In the List Page - Page_Load event of other tables (not from views) the code works without issue.
So is not possible use custom action on list page from views?
Thanks!