This topic is locked
[SOLVED]

 Make inline preview read only

10/30/2017 3:58:23 AM
PHPRunner General questions
V
veca author

Hi All,
I do like the "single link" way of presenting master-detail relation a lot, and use it in all my new projects.
But for some projects I want this preview being "read only" (like the popup preview if you define "single links")
This because the detail list screen has a lot of extra buttons, javascript logic, etc.
So, is there a way to prevent having edit, copy, add options in the inline preview?
Or, can I know in the "BeforeMoveNextList" event that the program is in the "preview" and not in the "real" detail list?
Br,
Geert

V
veca author 11/4/2017

I found the solution myself to detect "preview" or "list" screen
$listMode = "LIST";
if (@$_REQUEST["mode"]) {
$mode = $_REQUEST["mode"];

if ($mode == 'listdetails')

$listMode = "
PREVIEW";

}
$_SESSION["listMode"] = $listMode;