This topic is locked

Hidden columns on detail listings

2/12/2018 12:21:23 PM
PHPRunner General questions
S
Scrolin author

I have a master/detail relationship between the teamscores table and the teammembers table.

Teams may be specified for various competition events. For some events all team members must be from the same group, for others team members may be from mixed groups.
This is indicated by the PermitMixedGroups yes/no column in the teamevents property table and my teamscores query inherits this field.

I therefore hide the Group column in the list page details column by putting the following code in the BeforeDisplay event of the teammembers List page

$masterdata = $pageObject->getMasterRecord();

if (!$masterdata["PermitMixedGroups"]) {

$pageObject->hideField("GroupID");

$pageObject->hideField("Group");

}


This successfully hides the GroupID and Group columns on the team list and edit pages
However putting the same code in the BeforeDisplay event of the teammembers Print page does not hide these columns when the teamscores table is printed with details expanded
Is this a discrepancy, or am I missing something?