This topic is locked

Hide list column when part of master view

8/7/2017 4:36:44 PM
PHPRunner General questions
P
Penultimatum author

Is it possible to hide columns in a list depending on the type of view? ie when the list is part of a master view there are certain columns which are not relevant, such as details of the master entry, is there a way I can hide these columns?
Thanks.
Jim.

Sergey Kornilov admin 8/7/2017

You can hide columns on List page from your code:

https://xlinesoft.com/phprunner/docs/hidefield.htm

romaldus 8/8/2017

Or you can hide field in detail table list page based on certain value in master table.

In detail table list page > before display event:



//get data from master table
$data = $pageObject->getMasterRecord();

$_SESSION["MySession"]=$data["your_field_name_in_master_table"];
//hide field in detail table

if($_SESSION["MySession"] == 'Some Value'){

$pageObject->hideField("field1");

$pageObject->hideField("field2");

$pageObject->hideField("field3");

};