This topic is locked

Hiding Columns

6/24/2009 9:21:15 AM
PHPRunner General questions
M
MaxxaM author

Hey everyone, I tried looking this up in the forums, couldn't find it so I asked support and Sergey answered it for me. I just thought I'd post the solution as I figured it was a common question.
To hide whole column on the list page you need to hide field header in the "List page: Before display" event and each row in the "List page: After record processed" event on the Events tab.

Here is a sample "List page: Before display" event:

$xt->assign("FieldName_fieldheadercolumn",false);

Here is a sample "List page: After record processed" event:

$record["FieldName_fieldcolumn"] = false;
Thank you Sergey!

A
ashipley 6/25/2009

If I understand what you want to do, you can either go back to the "Fields" tag and click the check box OFF in the column that you don't want to show up in the "List" page column. Alternately, you can go to the column in the visual editor and right click, and choose "Delete column". If you use the second method, however, and later to a page reset, the column will reappear and have to be deleted again I have not tried it, but you might also set the column width to zero (Loke on a spreadsheet), but I don't think that will work here.
Arthur

Sergey Kornilov admin 6/25/2009

Arthur,
MaxxaM is talking about hiding columns in runtime i.e. hiding columns from certain user types.