Hiding an Icon

Hi

Using PHPMaker 2020

I have this page: duration_lookup10list.php and im using the Preview Extension, so when logged in and the page loads in addition to the Plus that I can click to preview the records I also have two other icons

1 - Edit and when clicked it takes me here and does what I want

duration_lookup10edit.php?showdetail=&event_id=4604316

2 - an Icon called Coincidence and when clicked it takes me here

duration_matched10list.php?showmaster=duration_lookup10&fk_match_id=901

Which does not actually work which is not a worry as I don’t want the second Icon

So i tried this

You may try to set the permissions of the detail table, e.g. you may try to use Page_Load() server event of the Preview page of the detail table and set:

Security()->setCanView(FALSE);

But it made no difference, pointers appreciated


Regards
John B

You may read the topic Server Events and Client Scripts → ListOptions_Load (example 3) in the help file.