Perspective Alarm Status Table hide or display columns

Is there a way to toggle columns in the alarm status table through script/expression?
I tried an expression in the ‘columns’,‘active’ and for the test ‘priority’, ‘enabled’.
Toggling this bit in designer works but not in run time.
I want to remove columns based on screen width.